Quiz 4 Edhesive Review

Quiz 4 Edhesive Review

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Flow Charts

Flow Charts

1st - 10th Grade

10 Qs

Programming terminology

Programming terminology

9th Grade

15 Qs

Computing Creative Design Quiz

Computing Creative Design Quiz

2nd Grade - University

11 Qs

L.7.LOOPING STRUCTURE

L.7.LOOPING STRUCTURE

12th Grade

10 Qs

Hour of Code

Hour of Code

6th - 12th Grade

12 Qs

Python Loops

Python Loops

9th - 11th Grade

12 Qs

Programming Basics

Programming Basics

10th Grade

9 Qs

CodeHS Python Unit 7 Looping Quiz Review

CodeHS Python Unit 7 Looping Quiz Review

9th - 12th Grade

15 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?