Podcast
Questions and Answers
In programming, what is the purpose of a "closure"?
In programming, what is the purpose of a "closure"?
- To encapsulate data within a function. (correct)
- To prevent code from executing until a condition is met.
- To pass arguments to a function by reference.
- To create parallel execution of code blocks.
Which of the following JavaScript data types is not considered a primitive type?
Which of the following JavaScript data types is not considered a primitive type?
- String
- Number
- Boolean
- Array (correct)
What is the difference between "null" and "undefined" in JavaScript?
What is the difference between "null" and "undefined" in JavaScript?
- They are essentially the same and can be used interchangeably.
- "Null" indicates the absence of a value, while "undefined" means a variable has been declared but not assigned a value. (correct)
- "Null" is a primitive data type, while "undefined" is an object.
- "Undefined" is a keyword used for function parameters, while "null" is used for variable declarations.
In CSS, what is the purpose of the "z-index" property?
In CSS, what is the purpose of the "z-index" property?
In SQL, what does the "JOIN" clause do?
A.
B.
C.
D.
In SQL, what does the "JOIN" clause do? A. B. C. D.
In Node.js, what is the purpose of the "cluster" module?
In Node.js, what is the purpose of the "cluster" module?