Which of the following represents control flow statements in js ?
Quiz3

Quiz
•
Professional Development
•
1st - 3rd Grade
•
Hard
Anantha edupuganti
Used 9+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
simple if
if else
else if ladder
switch
simple if
if else
nested if
if-elif-else
simple if
if-elif-else
switch
None of the above
2.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of these belong to looping statements in JS ?
for
for in
for of
for else
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Find the output of the following code snippet?
<script>
var a=[1.1,2,5,'gec',99.5,'it'];
for(var x in a)
document.write(x+" "); //output1
for(var x of a)
document.write(x+" "); //output2
</script>
1.1 2 5 gec 99.5 it
0 1 2 3 4 5
1.1 2 5 gec 99.5 it
0 1 1 2 3 4
0 1 2 3 4 5
1.1 2 5 gec 99.5 it
0 1 2 3 4 5
1,1 2 5 gec 99.5 it
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which keyword is used to create functions in Javascript ?
def
define
func
function
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Guess the Output for the following code snippet ?
<html>
<script>
function reverse(x){
var s=0;
while(x>0){
s=s*10+x%10;
x=x/10;
}
return s;
}
document.write("Reverse is: "+reverse(123));
</script>
</html>
Reverse is: NaN
Reverse is: 321.000
Reverse is: Infinity
Reverse is: undefined
Reverse is: 321
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is abbrevation of DOM ?
Domain Object Model
Document Object Model
Discriptive Oreintation Model
Discriptive Object Model
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
<html>
<script>
var x=" 68.3";
var b=Number(x);
var a=parseInt(x);
document.write(b+" ");
document.write(a);
</script>
</html>
Predict the Output ?
68 68.3
68.3 68
68 68
68.3 68.3
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Build Web Apps - Quiz 2

Quiz
•
1st - 2nd Grade
10 questions
TEST SEGUNDO PARCIAL

Quiz
•
2nd Grade - University
10 questions
BWA Laravel - 1

Quiz
•
1st - 2nd Grade
15 questions
GitHub - VSCode

Quiz
•
3rd Grade
10 questions
Unable To Obtain IP

Quiz
•
1st Grade
10 questions
Moments Education - EA Quiz

Quiz
•
KG - 1st Grade
15 questions
Ch 14 Teori -Akuntansi Internasional

Quiz
•
KG - Professional Dev...
12 questions
Conceitos HTML

Quiz
•
1st Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Professional Development
5 questions
Basement Basketball

Quiz
•
3rd Grade
20 questions
Parts of Speech

Quiz
•
3rd - 6th Grade
20 questions
Fun Trivia

Quiz
•
2nd - 4th Grade
16 questions
Animals

Quiz
•
2nd Grade
20 questions
Context Clues

Quiz
•
3rd Grade
20 questions
Kids Movie Trivia

Quiz
•
3rd Grade
20 questions
Synonyms and Antonyms

Quiz
•
2nd Grade
13 questions
Multiplication Facts Practice

Quiz
•
3rd Grade