Python Loops 2

Python Loops 2

University

30 Qs

quiz-placeholder

Similar activities

UTS PYTHON

UTS PYTHON

12th Grade - University

25 Qs

latihan PHP tahap 2

latihan PHP tahap 2

11th Grade - University

25 Qs

Python: Control Structures Review

Python: Control Structures Review

9th Grade - University

34 Qs

Java Review

Java Review

9th Grade - University

25 Qs

FINAL_EXAM (CFP_122)

FINAL_EXAM (CFP_122)

University

35 Qs

Fundamentos de Programación

Fundamentos de Programación

University

25 Qs

Python Function

Python Function

University

30 Qs

UAS DASPRO

UAS DASPRO

University

25 Qs

Python Loops 2

Python Loops 2

Assessment

Quiz

Computers

University

Hard

Created by

Elaine Cortez

Used 15+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The equivalent of the above for loop using the while syntax would be

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The program above prints each number between 1 and 10

as many times as the number itself

10 times

11 times

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The program above prints each number between 1 and 10

as many times as the number itself

10 times

11 times

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in 100 :

print ( i )

Syntax error

prints numbers 0 to 100

prints numbers 1 to 100

prints numbers 0 to 99

prints numbers 1 to 99

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

A while loop equivalent of the for loop above is

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image
What will print to the screen in this code?
18
-25
-10
-15

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In programming, what is iteration?
The repetition of steps within a program
The order in which instructions are carried out
A decision point in a program
Testing a program to make sure it works

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?