Q. Which one of the following utilize the CPU cycles in a massive manner?

  • (A) GUI (Graphic User Interface)
  • (B) Statically generated graphics
  • (C) Generic scoping
  • (D) Dynamically generated graphics
πŸ’¬ Discuss
βœ… Correct Answer: (D) Dynamically generated graphics

Q. In JavaScript, what kind of scoping is used?

  • (A) Literal scoping
  • (B) Sequential scoping
  • (C) Segmental scoping
  • (D) Lexical scoping
πŸ’¬ Discuss
βœ… Correct Answer: (D) Lexical scoping

Q. What are the closures?

  • (A) Both Function objects and Scope where function's variables are resolved
  • (B) Scope where function's variables are resolved
  • (C) Function objects
  • (D) Function return value
πŸ’¬ Discuss
βœ… Correct Answer: (C) Function objects

Q. Which one of the following can be considered as the opposite approach of the Lexical Scoping?

  • (A) Dynamic scoping
  • (B) Literal scoping
  • (C) Static scoping
  • (D) Generic scoping
πŸ’¬ Discuss
βœ… Correct Answer: (A) Dynamic scoping

Q. Which one of the following algorithmic languages is not the lexical scoping standardized in?

  • (A) Html
  • (B) Ada
  • (C) Pascal
  • (D) Modula2
πŸ’¬ Discuss
βœ… Correct Answer: (A) Html

Q. What will be the output of the following JavaScript code?

Code:
var o =newF();  // statement 1  
o.constructor=== F // statement 2 
  • (A) False
  • (B) 1
  • (C) 0
  • (D) True
πŸ’¬ Discuss
βœ… Correct Answer: (D) True

Q. Which one of the given options can be considered as the correct output for the following JavaScript code?

Code:
const obj1 =  
{  
    a:10,  
    b:15,  
    c:18  
};  
const obj2 =Object.assign({c:7, d:1}, obj1);  
const obj2 =Object.assign({c:7, d:1}, obj1);  
console.log(obj2.c, obj2.d);  
  • (A) Undefined
  • (B) 18,1
  • (C) 7,1
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 7,1

Q. Which of the following POSIX signals generate events?

  • (A) SIGINT
  • (B) SIGDOWN
  • (C) SIGFLOAT
  • (D) SIGSHORT
πŸ’¬ Discuss
βœ… Correct Answer: (A) SIGINT

Q. Which HTML element is used to put the JavaScript code?

  • (A) <javascript>
  • (B) <js>
  • (C) <scripting>
  • (D) <script>
πŸ’¬ Discuss
βœ… Correct Answer: (D) <script>

Q. Which of the following statement is not correct in the case of JavaScript?

  • (A) JavaScript is a light-weighted and interpreted language.
  • (B) JavaScript is a high-level programming language.
  • (C) JavaScript is a case-sensitive language.
  • (D) JavaScript provides reasonable control to the users over the web browsers.
πŸ’¬ Discuss
βœ… Correct Answer: (B) JavaScript is a high-level programming language.