Repetition and Loops Quiz

Repetition and Loops Quiz

12th Grade

55 Qs

quiz-placeholder

Similar activities

Latihan USP Informatika IX paket 2

Latihan USP Informatika IX paket 2

9th Grade - University

50 Qs

Certification Bank of Questions_Part1

Certification Bank of Questions_Part1

9th - 12th Grade

60 Qs

ASSESMEN SUMATIF AKHIR SEMESTER - INFORMATIKA 8A

ASSESMEN SUMATIF AKHIR SEMESTER - INFORMATIKA 8A

8th Grade - University

51 Qs

Sumatif Akhir 9

Sumatif Akhir 9

9th Grade - University

50 Qs

Data Science-Spreadsheet Functions

Data Science-Spreadsheet Functions

12th Grade

50 Qs

Selamat mengerjakan

Selamat mengerjakan

10th Grade - University

50 Qs

Rogic

Rogic

12th Grade - University

60 Qs

Python Basics Quiz

Python Basics Quiz

12th Grade

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