Loop! opss!!!

Loop! opss!!!

University

10 Qs

quiz-placeholder

Similar activities

KUIZ HARI KOKURIKULUM UNIT SUKAN 2021

KUIZ HARI KOKURIKULUM UNIT SUKAN 2021

12th Grade - University

10 Qs

Exoictic cars.

Exoictic cars.

5th Grade - Professional Development

10 Qs

Capital Budgeting and Capital Ratioining Quiz

Capital Budgeting and Capital Ratioining Quiz

University

10 Qs

Tasawwur Islam T4 (Akhlak Menurut Islam)

Tasawwur Islam T4 (Akhlak Menurut Islam)

1st Grade - University

10 Qs

Y más Bacon para la Nata

Y más Bacon para la Nata

KG - Professional Development

12 Qs

Ohio Valley College of Technology

Ohio Valley College of Technology

KG - University

10 Qs

Disney Personalities

Disney Personalities

5th Grade - University

15 Qs

Història de l'Infermeria

Història de l'Infermeria

University

15 Qs

Loop! opss!!!

Loop! opss!!!

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Farhana Johar

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  • Which of the following is a type of loop in most programming languages?

if loop

switch loop

for loop

goto loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of using loops in programming?

to create multiple function

to declare variables

to repeat a block of code

to debug code

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop is best used when the number of iterations is known beforehand?

while

for

switch

do-while

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the given code?

1 2 3

0 1 2

0 1 2 3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword can be used to end the program immediately?

break

continue

next

return

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct increment in a 'for loop'?

i=+1

i+=1

i+1=

i:+1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output?

infinite loop

no output

print "Hello" once

syntax error

Access all questions and much more by creating a free account

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

Already have an account?