Q. JavaScript allows you to work with __________ primitive data types.

  • (A) 1
  • (B) 2
  • (C) 3
  • (D) 4
πŸ’¬ Discuss
βœ… Correct Answer: (C) 3

Q. JavaScript also defines _______ trivial data types.

  • (A) 1
  • (B) 2
  • (C) 3
  • (D) 4
πŸ’¬ Discuss
βœ… Correct Answer: (B) 2

Q. Variables are declared with the _______ keyword.

  • (A) new
  • (B) var
  • (C) int
  • (D) this
πŸ’¬ Discuss
βœ… Correct Answer: (B) var

Q. Storing a value in a variable is called ?

  • (A) variable initialization
  • (B) variable store
  • (C) variable destroyed
  • (D) variable declaration
πŸ’¬ Discuss
βœ… Correct Answer: (A) variable initialization

Q. JavaScript is untyped language.

  • (A) Yes
  • (B) No
  • (C) can be yes or no
  • (D) Can not say
πŸ’¬ Discuss
βœ… Correct Answer: (A) Yes

Q. A ___________ has global scope which means it can be defined anywhere in your JavaScript code.

  • (A) complex variable
  • (B) simple variable
  • (C) global variable
  • (D) local variable
πŸ’¬ Discuss
βœ… Correct Answer: (C) global variable

Q. Which of the following true about JavaScript variable?

  • (A) JavaScript variable names are case-sensitive
  • (B) JavaScript variable names should not start with a numeral
  • (C) You should not use any of the JavaScript reserved keywords as a variable name.
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

Q. Which of the following are javaScript reserved words?

  • (A) enum
  • (B) long
  • (C) finally
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

Q. byte is reserved word in Javascript?

  • (A) Yes
  • (B) No
  • (C) Can be yes or no
  • (D) Can not say
πŸ’¬ Discuss
βœ… Correct Answer: (A) Yes

Q. 123test is an valid variable name?

  • (A) True
  • (B) False
  • (C) Can be true or false
  • (D) Can not say
πŸ’¬ Discuss
βœ… Correct Answer: (A) True