JavaScript - Control Statements

Quiz
•
Computers
•
8th Grade
•
Hard
Meenakshi Sharma
Used 10+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which is the right way to make a for loop?
Alienisation, The End, Rebels
Installation, Ending, Timer
Initialisation, Condition, Iteration
Initialisation, Counter, End Condition
2.
MULTIPLE SELECT QUESTION
10 sec • 1 pt
Which of the below are types of loops
If then Else
Switch Case
for loop
Conditional Operator
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Nested loops are
Multiple independent loops
Conditions in a loop
Loop in a Loop
Loop in a condition
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
for ( var i = 0; i < 50; i++ )
How many times will this loop execute
51 times
49 times
50 times
0 times
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the iterations runs 25 times
for ( var i = 2; i < 26; i ++ )
for ( var i = 0; i < 25; i ++ )
for ( var i = -1 ; i > 25 ; i -- )
for ( var i = 0; i <= 25; i --)
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
One of the below functions lets you climb 1000 feet
for ( var count = 0; count > 999; count --)
moveUpOneFoot();
}
for ( var count = 2; count <= 1002; count ++)
moveUpOneFoot();
}
for ( var count = 1000; count < 1; count --)
moveUpOneFoot();
}
for ( var count = 0; count < 1000; count ++)
moveUpOneFoot();
}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in MakeCode?
function = climbUp();
fun = "climbUp";
function climbUp();
fun = (climbUp());
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Computational Thinking

Quiz
•
8th - 12th Grade
17 questions
Coding 2 and 4

Quiz
•
7th Grade - University
16 questions
Kiểu Xâu

Quiz
•
8th - 11th Grade
10 questions
FOR LOOPS and Angles with Tracy (PYTHON)

Quiz
•
7th - 8th Grade
10 questions
Pseudocode - Iteration

Quiz
•
7th - 11th Grade
19 questions
AQA GCSE Computer Science - 3.1.1 Representing Algorithms

Quiz
•
8th - 10th Grade
10 questions
Basic Coding Terms

Quiz
•
6th - 8th Grade
14 questions
p5.js Week1 PREtest

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade