
Week 5.1

Quiz
•
Computers
•
Professional Development
•
Medium

Poul Nichols
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a while loop and a do-while
There is no difference
A do-while loop always executes at least once
A while loop always executes at least once
A do-while loop can only be used for counting
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to set up a while loop?
for
while
do
until
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code snippet?
var count = 0; while (count < 5) {
document.write( count + "</br>");
count++; }
0
1
2
3
4
0 1 2 3 4
1 2 3 4 5
1
2
3
4
5
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code snippet?
var i = 0;
do {
document.write(i + "<br>")
i++;
} while (i < 0);
0
0
1
2
3
4
5
An infinite loop
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
document.write("5" + 5);
5
5
"5" + 5
"55"
10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
document.write(5 + 5);
5
5
"5" + 5
"55"
10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which logical operator would you use to invert the truth value of a condition?
&&
||
!
==
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Javascript Array and Object

Quiz
•
University - Professi...
12 questions
BFM3002 - QUIZ 2

Quiz
•
University - Professi...
10 questions
Day 3

Quiz
•
Professional Development
11 questions
Word Processing Software Trivia

Quiz
•
4th Grade - Professio...
10 questions
C Programming

Quiz
•
Professional Development
10 questions
Python Lesson 1

Quiz
•
Professional Development
6 questions
python

Quiz
•
Professional Development
8 questions
Class 5 Review

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade