JavaScript

Total: 9 questions

1. What is Javascript (Just google: wikipedia javascript and read first four paragraphs)

a. High-level, often just-in-time compiled, and multi-paradigm programming language

b. Dynamic typing, prototype-based object-orientation programming language

c. A multi-paradigm language that supports event-driven, functional, and imperative programming styles

d. All the above

2. Which one is not a type of variable?

a. boolean

b. bulbuli

c. number

d. string

3. Which method is used to convert a string to an integer?

a. parseFloat()

b. parseString()

c. parseNumber()

d. parseInt()

4. Which company developed JavaScript? (feel free to google it)

a. Netscape

b. Google

c. Facebook

d. Firefox

5. Which one is not a mathematical operator in JS?

a. /

b. %

c. *

d. \

6. What does it mean by writing two plus signs after a number type variable?

a. Set the value to 0

b. Increase the value by 1

c. Decrease the value by 1

d. White plus toothpaste

7. If you have a var age = 21; and then you write age += 8; now what will be the value of the variable age?

a. 21

b. 8

c. 218

d. 29

8. Which one is an acceptable variable name?

a. mobile-price

b. 1bookName

c. user9

d. “temperature”

9. What will be the output of the code: console.log(17%5)

a. 7

b. 2

c. 5

d. 3