CP M4 Repetition & Loops

CP M4 Repetition & Loops

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

IGCSE Comp Sci -  Security revision

IGCSE Comp Sci - Security revision

9th - 11th Grade

10 Qs

Arithmetic Operators in C

Arithmetic Operators in C

12th Grade

10 Qs

MULTIMEDIA

MULTIMEDIA

10th Grade

20 Qs

College Football

College Football

5th - 12th Grade

11 Qs

WWW

WWW

6th - 10th Grade

15 Qs

Mid Semester Simulasi Digital

Mid Semester Simulasi Digital

12th Grade - University

20 Qs

แบบทดสอบวิทยาการคำนวณ ชั้นมัธยมศึกษาปีที่ 5

แบบทดสอบวิทยาการคำนวณ ชั้นมัธยมศึกษาปีที่ 5

11th Grade

15 Qs

GGHS HTML Test

GGHS HTML Test

7th - 10th Grade

20 Qs

CP M4 Repetition & Loops

CP M4 Repetition & Loops

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Marcia Bernas

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

A __________________ is a collection of commands that are given a name.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False. Every WHILE loop can be replaced with FOR loop.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variable used to end the loop

Loop control variable

count variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

While loops should always be:

output

indented

calculated

input

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For a loop to stop, the loop control variable must ________________.

change

be input from the keyboard

be true

change inside the loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with:

x = 1

while (x < 20):

print (x)

There is no x = 0 before the loop

The loop will not stop since the condition is wrong

x should be c

The loop will not stop since x never changes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use loops?

Because computers can do calculations humans can't.

Because programming is an important skill

Because of efficiency.

Because programs need to make decisions.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?