
Week 4.2
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Poul Nichols
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax of a for loop in JavaScript?
for (initialization; condition; increment/decrement) { // Block of Code }
for { // Block of Code } (initialization; condition; increment/decrement)
for [initialization; condition; increment/decrement] { // Block of Code }
for (condition; initialization; increment/decrement) { // Block of Code }
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a for loop?
To execute a block of code repeatedly while a condition is true
To execute a block of code repeatedly until a condition is true
To execute a block of code once
To execute a block of code randomly
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between i++ and ++i in a for loop?
There is no difference
i++ increments i after the expression is evaluated, while ++i increments i before the expression is evaluated
i++ increments i by 2, while ++i increments i by 1
i++ decrements i, while ++i increments i
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
for (let i = 0; i < 5; i++) { console.log(i); }
0 1 2 3 4
1 2 3 4 5
0 1 2 3 4 5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about a nested for loop in JavaScript?
It is a loop inside another loop.
It can only iterate over arrays.
It can only iterate over objects.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
for (var i = 1; i <= 10; i++) {
if (i == 3) { document.write("*");}
}
*
*****
**********
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
for (var i = 3; i >= 1; i--) {
for (var j = 1; j <= i; j++) {document.write("*"); }
document.write("<br>"); }
*
***
***
***
*
**
***
***
**
*
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Kodlama ve Bilişim
Quiz
•
Professional Development
12 questions
DECI - Week 5 - Time Machine
Quiz
•
Professional Development
12 questions
Python8
Quiz
•
Professional Development
10 questions
OMSPAN DAK DD
Quiz
•
Professional Development
15 questions
AWS ACF PT-BR Módulo 3 - Visão da Infraestrutura Global AWS
Quiz
•
Professional Development
15 questions
Quiz on Operating System Services
Quiz
•
Professional Development
10 questions
LOGOS AND SLOGANS
Quiz
•
KG - Professional Dev...
11 questions
FDE cycle
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
