Fundamentals in Javascript

@T-Bone

This question paper focuses on the "Fundamentals" of Javascript. These Multiple Choice Questions (mcq) should be practiced to improve the Javascript skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

This question paper focuses on the "Fundamentals" of Javascript. These Multiple Choice Questions (mcq) should be practiced to improve the Javascript skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

Questions

1. Which of the following is a JavaScript data type?

Mark the correct option

2. What will be the output of the below code ? console.log( typeof( '5' + 5))

Mark the correct option

3. What will be the output of the below code ? var package; console.log("Package: " + package) console.log("Amount: " + amount);

Mark the correct option

4. What will be the output of the below code ? var i=true; var j=false; var k=true; if( i || J && K){ a=10; b="True"; } else { a=20; b="False"; } console.log(a+","+b);

Mark the correct option

5. The statement is an example of: while (3==3) {}

Mark the correct option

6. Which of the following is a syntactically correct for loop?

Mark the correct option

7. What are the three important manipulations done in a for loop on a loop variable?

Mark the correct option

8. What will the following JavaScript code snippet do? If not, what will be the error? function letsfindcourse(lfc) { for (; lfc.next; lfc = lfc.next) ; return lfc; }

Mark the correct option

9. What will be the output of the following JavaScript code? function fun_range(int l) { int p=2; for(int x=0;x { console.log(p); } } range(4);

Mark the correct option

10. What will be the output of the following JavaScript code? int x=0; for(x;x<10;x++); console.log(x);

Mark the correct option

Index of Questions