

MCQOPTIONS
Saved Bookmarks
This section includes 27 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
1. |
Let A(1), A(2), A(3),…….., A(100) be 100 sets such that number of elements in A(i)=i+1 and A(1) is subset of A(2), A(2)is subset of A(3),….., A(99) is subset of A(100). The number of elements in union of the all the sets are: n(A(1) U A(2) U A(3) …..U A(100)). |
A. | 99 |
B. | 100 |
C. | 101 |
D. | 102 |
Answer» D. 102 | |
2. |
If A={1, 2, 3, 4}, then the number of the subsets of A that contain the element 2 but not 3, is? |
A. | 16 |
B. | 4 |
C. | 8 |
D. | 24 |
Answer» C. 8 | |
3. |
Let the set be A= {a, b, c, {a,b}} then which of the following is false? |
A. | {a, b} Є A |
B. | a Є A |
C. | {a} Є A |
D. | b, c ЄA |
Answer» D. b, c ЄA | |
4. |
Let a set be A={1, 2, 3} then the number of subsets containing two elements will be _________ |
A. | 4 |
B. | 3 |
C. | 5 |
D. | 8 |
Answer» C. 5 | |
5. |
The number of subsets of a set can be odd or even. |
A. | True |
B. | False |
Answer» B. False | |
6. |
The number of subsets of a set is 5. |
A. | True |
B. | False |
Answer» C. | |
7. |
If the number of subsets of a set are 4 then the number of elements in that sets are _________ |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» C. 3 | |
8. |
If a set is empty then number of subsets will be _________ |
A. | 1 |
B. | 2 |
C. | 0 |
D. | 4 |
Answer» B. 2 | |
9. |
The set containing all the collection of subsets is known as _________ |
A. | Subset |
B. | Power set |
C. | Union set |
D. | None of the mentioned |
Answer» C. Union set | |
10. |
If a set contains 3 elements then the number of subsets is? |
A. | 6 |
B. | 3 |
C. | 12 |
D. | 8 |
Answer» E. | |
11. |
IF_A={1,_2,_3,_4}_,THEN_THE_NUMBER_OF_THE_SUBSETS_OF_A_THAT_CONTAIN_THE_ELEMENT_2_BUT_NOT_3,_IS:?$ |
A. | 16 |
B. | 4 |
C. | 8 |
D. | 24 |
Answer» C. 8 | |
12. |
WHICH_WAS_ONE_OF_THE_FIRST_SECURITY_SUBSETS_PROPOSED??$ |
A. | FBJS |
B. | Caja |
C. | dojox.secure |
D. | ADSafe |
Answer» E. | |
13. |
Let_A(1),_A(2),_A(3),……..,A(100)_be_100_sets_such_that_number_of_elements_in_A(i)=i+1_and_A(1)_is_subset_of_A(2),_A(2)is_subset_of_A(3),…..,A(99)_is_subset_of_A(100)._The_the_number_of_elements_in_union_of_the_all_the_sets_are:_n(A(1)_U_A(2)_U_A(3)_…..U_A(100)):$# |
A. | 99 |
B. | 100 |
C. | 101 |
D. | 102 |
Answer» D. 102 | |
14. |
Which_is_the_subset_that_transforms_web_content_into_secure_modules_that_can_be_safely_hosted_on_a_web_page?$ |
A. | Microsoft Web Sandbox |
B. | ADsafe |
C. | Caja |
D. | dojox.secure |
Answer» E. | |
15. |
Let the set be A= {a , b, c, {a,b}} then which of the following is fals? |
A. | {a, b} –Ñ A |
B. | a –Ñ A |
C. | {a} –Ñ A |
D. | b, c –ÑA |
Answer» D. b, c ‚Äö√Ñ√¨‚àö√´A | |
16. |
Which is the object that defines methods that allow complete control over page content? |
A. | The client-side <strong>document</strong> object |
B. | The server-side <strong>document</strong> object |
C. | Both client-side and server-side <strong>document</strong> object |
D. | Web document object |
Answer» B. The server-side <strong>document</strong> object | |
17. |
Let a set be A={1, 2, 3} then the number of subsets containing two elements will be |
A. | 4 |
B. | 3 |
C. | 5 |
D. | 8 |
Answer» C. 5 | |
18. |
Which are the two functions that are not allowed in any secure subset? |
A. | evaluate() and restrict() |
B. | eval() and the Function() constructor |
C. | debugger() and test() |
D. | eval() and debugger() |
Answer» C. debugger() and test() | |
19. |
Why is this keyword not preferred in JavaScript? |
A. | Highly memory consuming |
B. | Functions should access the global objects |
C. | Functions should not access the global objects |
D. | Very inefficient to use |
Answer» D. Very inefficient to use | |
20. |
Which is the subset that is a secure container designed for the purpose of safely running untrusted JavaScript? |
A. | Sandbox |
B. | The Good Parts |
C. | Both Sandbox and Good Parts |
D. | Web browser |
Answer» B. The Good Parts | |
21. |
If the number of subsets of a set are 4 then the number of elements in that sets are |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» C. 3 | |
22. |
Why was “The Good Parts” designed as a language subset in JavaScript?$ |
A. | To improve programmer flexibility |
B. | To balance the workload of the programmer |
C. | To create an in-built compiler and interpreter |
D. | To improve programmer productivity |
Answer» E. | |
23. |
If a set is empty then number of subsets will be |
A. | 1 |
B. | 2 |
C. | 0 |
D. | 4 |
Answer» B. 2 | |
24. |
What is being imposed on each subset to ensure that it conforms to the subset? |
A. | A parser to parse the code |
B. | A parser that parses and adds to the subset |
C. | A static verifier that parses code |
D. | A predefined function to parse the code |
Answer» D. A predefined function to parse the code | |
25. |
The set containing all the collection of subsets is known as |
A. | Subset |
B. | Power set |
C. | Union set |
D. | None of the mentioned |
Answer» C. Union set | |
26. |
What does javascript use instead of == and !=? |
A. | It uses bitwise checking |
B. | It uses === and !== instead |
C. | It uses equals() and notequals() instead |
D. | It uses equalto() |
Answer» C. It uses equals() and notequals() instead | |
27. |
The Crockford’s subset does not include which function in JavaScript? |
A. | eval() |
B. | coeval() |
C. | equal() |
D. | equivalent() |
Answer» B. coeval() | |