Loop! opss!!!

Loop! opss!!!

University

10 Qs

quiz-placeholder

Similar activities

Java set3

Java set3

University

10 Qs

HTML PHP C++

HTML PHP C++

University

10 Qs

Web Dev

Web Dev

University

15 Qs

POST TEST MODULE 4

POST TEST MODULE 4

University

10 Qs

CABG SURGEY

CABG SURGEY

University

14 Qs

Match Exercises

Match Exercises

1st Grade - University

11 Qs

Java Lesson 8

Java Lesson 8

5th Grade - University

13 Qs

Mastering Python Loops

Mastering Python Loops

University

10 Qs

Loop! opss!!!

Loop! opss!!!

Assessment

Quiz

Other

University

Medium

Created by

Farhana Johar

Used 1+ times

FREE Resource

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

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?