

MCQOPTIONS
Saved Bookmarks
This section includes 15 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
A __________ will be visible only within a function where it is defined. |
A. | global variables |
B. | local variable |
C. | Both A and B |
D. | None of the above |
E. | |
Answer» C. Both A and B | |
2. |
Which of the following statement is true about BitWise OR? |
A. | It performs a Boolean AND operation on each bit of its integer arguments |
B. | It is a unary operator and operates by reversing all the bits in the operand. |
C. | Both A and B |
D. | It performs a Boolean OR operation on each bit of its integer arguments. |
Answer» E. | |
3. |
Logical AND : If both the operands are non-zero, then the condition becomes true. |
A. | Yes |
B. | No |
C. | Can be yes or no |
D. | Can not say |
Answer» B. No | |
4. |
Which operator checks if the value of the left operand is greater than the value of the right operand? |
A. | Equal |
B. | Greater than |
C. | Less than |
D. | Greater than or Equal to |
Answer» C. Less than | |
5. |
which operator outputs the remainder of an integer division? |
A. | Add |
B. | Subtraction |
C. | Modulus |
D. | Increment |
Answer» D. Increment | |
6. |
State whether the following statements are True or False for strict equality operator(= = =). i) If the two values have different types they are equal. ii) If both values are null or both values are undefined, they are equal. |
A. | True True |
B. | False False |
C. | True False |
D. | False True |
Answer» E. | |
7. |
If an operator is NaN or converts to NaN, what wil comparison operator always returns ? |
A. | True |
B. | False |
C. | Undefined |
D. | NAN |
Answer» C. Undefined | |
8. |
What will be the output if we compare "ten" and 10 with less then comparison operator("ten"<10)? |
A. | True |
B. | False |
C. | undefined |
D. | error |
Answer» C. undefined | |
9. |
If var A={B:3, C:5}, how to use the delete operator to delete one of the properties of an object. |
A. | delete |
B. | delete A |
C. | delete A.B |
D. | delete A[0] |
Answer» D. delete A[0] | |
10. |
which operator evaluates its operands, then discards the value and returns undefined? |
A. | In |
B. | Comparison |
C. | Eval |
D. | Void |
Answer» E. | |
11. |
If the operator value is null, then the unary operator returns the typeof _________. |
A. | undefined |
B. | object |
C. | boolean |
D. | string |
Answer» C. boolean | |
12. |
When using comparative operators,if after object to primitive conversion, at least one operand is not a string, both operands are converted to? |
A. | String |
B. | Boolean |
C. | Number |
D. | Object |
Answer» D. Object | |
13. |
Which operator will return false if two value are equal? |
A. | ! |
B. | != |
C. | !== |
D. | All of the above |
Answer» C. !== | |
14. |
Which operator is known as the strict equality operator, which checks whether its two operators are identical or not? |
A. | = |
B. | == |
C. | === |
D. | && |
Answer» D. && | |
15. |
Which operator is known as the equality operator, which checks whether its two operators are "equal"? |
A. | = |
B. | == |
C. | === |
D. | && |
Answer» C. === | |