gs gs106 Lexical Structures - JavaScript Loops - Quiz No.1

gs gs106 Javascript Quiz

Online Quizzes Preparation

This quiz belongs to book/course code gs gs106 Javascript of gs organization. We have 121 quizzes available related to the book/course Javascript. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Lexical Structures. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.

NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.

Question 1: What will be the output of the following JavaScript code?

 function printArray(a) { var len = a.length, i = 0; if (len == 0) console.log("Empty Array"); else { do { console.log(a[i]); } while (++i < len); } } 
Question 2: What are the three important manipulations done in a for loop on a loop variable?
Question 3: What will the following JavaScript code snippet work? If not, what will be the error?

 function tail(o) { for (; o.next; o = o.next) ; return o; } 
Question 4: What will be the equivalent code of the following JavaScript code?

 for(var p in o) console.log(o[p]); 
Question 5: One of the special features of an interpreter in reference with the for loop is that ___________
Question 6: What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?
Question 7: What will be the step of the interpreter in a jump statement when an exception is thrown?
Question 8: What will be the role of the continue keyword in the following JavaScript code snippet?

 while (a != 0) { if (a == 1) continue; else a++; } 
Question 9: What could be the task of the statement debugger in the following JavaScript code?

 function f(o) { if (o === undefined) debugger; } 


Online Quizzes of gs106 Javascript

Other WEB related online quizzes

Other categories of gs Online Quizzes

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background