Week 5.1

Week 5.1

Professional Development

10 Qs

quiz-placeholder

Similar activities

ESP_Diseño de mundos Fantásticos Pro M2L4

ESP_Diseño de mundos Fantásticos Pro M2L4

Professional Development

8 Qs

Co wiesz o Pythonie

Co wiesz o Pythonie

Professional Development

8 Qs

Intermediate HTML/CSS Class 1

Intermediate HTML/CSS Class 1

KG - Professional Development

12 Qs

Scratch TEST - 2

Scratch TEST - 2

KG - Professional Development

11 Qs

L1_W6_Time_Machine

L1_W6_Time_Machine

Professional Development

12 Qs

JavaScript

JavaScript

Professional Development

15 Qs

Day 5 C Programming Quiz

Day 5 C Programming Quiz

Professional Development

10 Qs

Python loops

Python loops

Professional Development

6 Qs

Week 5.1

Week 5.1

Assessment

Quiz

Computers

Professional Development

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?