Quiz of JavaScript

βœ… 0 ❌ 0

Quiz 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

Quiz 2 : Which one is not a type of variable?

πŸ‘€
a. boolean
b. bulbuli
c. number
d. string

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

πŸ‘€
a. parseFloat()
b. parseString()
c. parseNumber()
d. parseInt()

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

πŸ‘€
a. Netscape
b. Google
c. Facebook
d. Firefox

Quiz 5 : Which one is not a mathematical operator in JS?

πŸ‘€
a. /
b. %
c. *
d. \

Quiz 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

Quiz 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

Quiz 8 : Which one is an acceptable variable name?

πŸ‘€
a. mobile-price
b. 1bookName
c. user9
d. β€œtemperature”

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

πŸ‘€
a. 7
b. 2
c. 5
d. 3