Quiz 4 Edhesive Review

Quiz 4 Edhesive Review

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

FOR Loops Python

FOR Loops Python

9th - 12th Grade

12 Qs

Python - Loops & Lists

Python - Loops & Lists

7th - 11th Grade

15 Qs

Loops

Loops

9th - 12th Grade

10 Qs

C# Loops (All)

C# Loops (All)

9th - 12th Grade

15 Qs

python loops

python loops

7th - 12th Grade

14 Qs

while loop

while loop

9th Grade

10 Qs

Programming - Iteration, Basic Programming Constructs & Loop

Programming - Iteration, Basic Programming Constructs & Loop

2nd - 12th Grade

10 Qs

Quiz 13 - For Loops

Quiz 13 - For Loops

11th Grade

10 Qs

Quiz 4 Edhesive Review

Quiz 4 Edhesive Review

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Katy Fleming

Used 96+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Loops are used to _____________ code.

repeat

initialize

test

incriment

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Setting a starting value for a variable is called _____________.

initializing

repeating

testing

incrementing

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which of the following is the variable controlling the loop?

int

sum

num

x

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Why do we use 'while' loops?

Because of efficiency.

Because computers can do calculations humans can't.

Because programs need to make decisions.

Because programming is an important skill.

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is NOT true about 'while' loops?

Use conditions like if statements

A way of repeating a code

Give us more control over how the program runs

Used to find remainders

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

It should print out:

Next number: 10 Next number: 9 Next number: 8 Next number: 7 Next number: 6 What is wrong?

It should be c = c + 1

Nothing, the code runs as it should.

c = 10 should be c = 1

The c = c - 1 is not inside the loop. This will cause the loop not to stop.

7.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

Media Image

1

2

3

4

5

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?