Repetition and Loops Quiz

Repetition and Loops Quiz

12th Grade

55 Qs

quiz-placeholder

Similar activities

Rogic

Rogic

12th Grade - University

60 Qs

UAS TIK KELAS IX GANJIL 2024/2025

UAS TIK KELAS IX GANJIL 2024/2025

9th Grade - University

50 Qs

Latihan USP Informatika IX paket 2

Latihan USP Informatika IX paket 2

9th Grade - University

50 Qs

Dell Techcrew Certification Exam Practice

Dell Techcrew Certification Exam Practice

12th Grade

50 Qs

MID GENAP - PWPB XII RPL 2025

MID GENAP - PWPB XII RPL 2025

12th Grade

50 Qs

Ujian Sekolah 12 RPL SMK YPI AL Mubarak

Ujian Sekolah 12 RPL SMK YPI AL Mubarak

12th Grade

50 Qs

Informatika X-2

Informatika X-2

10th Grade - University

50 Qs

Latihan USP Informatika IX paket 1

Latihan USP Informatika IX paket 1

9th Grade - University

50 Qs

Repetition and Loops Quiz

Repetition and Loops Quiz

Assessment

Quiz

Information Technology (IT)

12th Grade

Medium

Created by

Duan Steyn

Used 2+ times

FREE Resource

55 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of a loop in programming?

To execute a block of code repeatedly

To store data temporarily

To manage memory allocation

To create a user interface

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type of loop?

For loop

While loop

Switch loop

Do...While loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a counted loop require to function correctly?

A string variable

A user input

A random number generator

A counter variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a for loop, what does STEP 1 signify?

Resetting the counter

Decrementing the counter

Stopping the loop

Incrementing the counter

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following loop:
For x = 0 TO 4 STEP 1
Display x

0 1 2 3 4

0 1 2 3 4 5

1 2 3 4 5

5 4 3 2 1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a sentinel value?

A value that indicates the end of a loop

A value that starts a loop

A random number

A string input

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop will execute at least once regardless of the condition?

Do While loop

While loop

Counted loop

For loop

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?