All Questions

3
answers

Difference in the practice of arithmetic and assignment operators

package entities; public class Product { public String name; public double price; public int quantity; public double totalValueInStock() { return price * quantity; } public void addProducts(int quant...
asked on 11.12.2018 / 01:22
3
answers

How to insert an extended value into a table in a column of type varbinary?

A table has a varbinary (max) column, I need it to have an entry with 400MB of data in this column. How do I create this data? Does the Insert statement have to have the data in full or can I use a loop or a function that manages this data...
asked on 12.12.2013 / 13:09
3
answers

Print html code

How to print html code? Example: <div id="css"><link rel="stylesheet" href="jquery.css.css"></div> It does not print the link tag, it links to another css, I want to write that tag pro user read ...     
asked on 16.04.2014 / 01:48
3
answers

Linking resources, such as CSS, within the structure of a site

I'm a beginner and I'm having trouble linking scripts, CSS, and images. I have the following structure in my site folders, just an example: - Pasta Raiz --cadastro --- cadastro.html --images --- icon.png --script...
asked on 24.06.2014 / 21:03
3
answers

Command "npm" is not recognized by Command Prompt

I have a project with a package.json , in it I have everything configured. I just made the clone of this same project on another machine, my git clone worked without problems. But when I give the command npm install in...
asked on 02.06.2014 / 23:00
2
answers

Is there an Excel function that associates letters with numbers (A = 1, B = 2, C = 3 etc.)?

Is there an Excel function that associates letters with numbers in alphabetical order (that is, f(A) = 1, f(B) = 2, f(C) = 3 and so on)?     
asked on 01.11.2018 / 13:52
2
answers

Word Filter

How can I make a Javascript word filter? For example, I have a div and within that div I do not want to have certain words that are inside an array: var badWords = ['teste', 'teste1', 'oteste2']; How do I check if these words...
asked on 09.07.2014 / 19:35
5
answers

Beginner in Python, else, and elif

idade = int(input("Insira sua idade:")) if(idade<=0): print("Sua idade nao pode ser 0 ou menos de zero") elif(idade>150): print("sua idade nao pode ser maior de 150 anos") elif(idade<18): print("voce precisa ter mais de 18 a...
asked on 18.01.2017 / 22:14
2
answers

What will be the result of $ a?

I was studying PHP and seeing questions, to improve my knowledge in the area. Here is an excerpt of an issue:    Given a snippet of code written in the PHP language, like the one below: $a = array("a", "b", "c", "d"); $a[] = "e"; The...
asked on 18.08.2017 / 21:40
2
answers

Is there a difference in how the polymorphism in Java and C # is applied?

I'm studying the concepts of OOP and it gave me a question. In Java I believe I can access all methods and attributes declared as public in a subclass even when I use a superclass type variable to reference this subclass. But in C # I can...
asked on 31.05.2017 / 19:09