Chp. 4 Alice Loop Structures

Chp. 4 Alice Loop Structures

12th Grade

21 Qs

quiz-placeholder

Similar activities

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

AP CSP Unit 6

AP CSP Unit 6

9th - 12th Grade

17 Qs

C++ Loop

C++ Loop

12th Grade

20 Qs

Pipeline, Scalar & Vector Processor

Pipeline, Scalar & Vector Processor

University

20 Qs

Python while loops

Python while loops

12th Grade

20 Qs

Intro to Programming with Karel

Intro to Programming with Karel

9th - 12th Grade

24 Qs

oop with c++

oop with c++

University

20 Qs

Algorithm and Agile

Algorithm and Agile

10th - 12th Grade

22 Qs

Chp. 4 Alice Loop Structures

Chp. 4 Alice Loop Structures

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Melissa Perkes

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of structure is used to execute the same set instructions more than once?

Decision structure

Sequence structure

Repetition structure

Do together structure

None of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following loop would execute how many times? Loop index from 0 up to (but not including) 3 times incrementing by 1

1

2

3

4

None of these

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following loop would execute how many times? Loop index from 0 up to (but not including) 4 times incrementing by 2

1

2

3

4

None of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following loop would execute how many times? Loop 1 times times

1

2

3

4

None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of instruction will cause a set of instructions to execute as long as a specified Boolean expression is true?

If/Else

Loop

Repeat

While

None of these

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of an infinite loop?

for (int i = 0; i < 10; i++) { }

while (true) { }

for (int i = 0; i < 10; i--) { }

do { } while (false);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid While loop condition?

While 1 > 2

While 2 < 1

While 1 == 1

Loop 1000 times times

None of these

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?