πŸ“Š Web Technology
Q. The “var” and “function” are
  • (A) Keywords
  • (B) Declaration statements
  • (C) Datatypes
  • (D) Prototypes
πŸ’¬ Discuss
βœ… Correct Answer: (B) Declaration statements
πŸ“Š Web Technology
Q. A conditional expression is also called a
  • (A) Alternate to if-else
  • (B) Immediate if
  • (C) If-then-else statement
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Immediate if
πŸ“Š Web Technology
Q. JavaScript is a _______________ language
  • (A) Object-Oriented
  • (B) High-level
  • (C) Assembly-language
  • (D) Object-Based
πŸ’¬ Discuss
βœ… Correct Answer: (D) Object-Based
πŸ“Š Web Technology
Q. A function definition expression can be called
  • (A) Function prototype
  • (B) Function literal
  • (C) Function definition
  • (D) Function declaration
πŸ’¬ Discuss
βœ… Correct Answer: (B) Function literal
πŸ“Š Web Technology
Q. Consider the following statements var text = "testing: 1, 2, 3"; // Sample text var pattern = /\d+/g In order to check if the pattern matches with the string “text”, the statement is
  • (A) text==pattern
  • (B) pattern.test(text)
  • (C) text.test(pattern)
  • (D) text.equals(pattern)
πŸ’¬ Discuss
βœ… Correct Answer: (B) pattern.test(text)
πŸ“Š Web Technology
Q. The snippet that has to be used to check if “a” is not equal to “null” is
  • (A) if(a!=null)
  • (B) if (!a)
  • (C) if(a!null)
  • (D) if(a!==null)
πŸ’¬ Discuss
βœ… Correct Answer: (D) if(a!==null)
πŸ“Š Web Technology
Q. The escape sequence ‘\f’ stands for
  • (A) Floating numbers
  • (B) Representation of functions that returns a value
  • (C) \f is not present in JavaScript
  • (D) Form feed
πŸ’¬ Discuss
βœ… Correct Answer: (D) Form feed
πŸ“Š Web Technology
Q. JavaScript Code can be called by using
  • (A) RMI
  • (B) Triggering Event
  • (C) Preprocessor
  • (D) Function
πŸ’¬ Discuss
βœ… Correct Answer: (D) Function