Control Structure

Control Structure

University

20 Qs

quiz-placeholder

Similar activities

Conditionals Unit Quiz

Conditionals Unit Quiz

9th Grade - University

15 Qs

HTML BASICS 1

HTML BASICS 1

University

15 Qs

Основы Python

Основы Python

University

19 Qs

Python if/else

Python if/else

University

20 Qs

EXCEPTION HANDLING IN PYTHON

EXCEPTION HANDLING IN PYTHON

University

22 Qs

SS JainCollege

SS JainCollege

University

20 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python if statement

Python if statement

University

15 Qs

Control Structure

Control Structure

Assessment

Quiz

Other, Computers

University

Hard

Created by

Afifah Nailah

Used 14+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do we use to control the number of repetition in while structure? 
Counter
Programmer
me
Officer

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image
Which code line is not correct in calculator program?
2
3
1
4

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image
How many times will it repeat displaying the text(I deserve a good education) on the screen?
4
5
6
infinite

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result?
number_of_coins = 10                           . 
if number_of_coins == 6:                       .
.          print("You can buy some gum")
else:                                                                      .
if number_of_coins == 10:
.      print("You are rich")
else:                                               .
.  print("Get a job!")
You can buy some gum
You are rich
Get a job!
You are rich
Get a job!

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result?
number_of_coins = 1                           . 
if number_of_coins == 6:                       .
.          print("You can buy some gum")
else:                                                                      .
if number_of_coins == 10:
.      print("You are rich")
else:                                               .
.  print("Get a job!")
You can buy some gum
You are rich
Get a job!
You are rich
Get a job!

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result?
number_of_coins = 6                           . 
if number_of_coins > 6:                       .
.          print("You can buy some gum")
else:                                                                      .
if number_of_coins < 10:
.      print("You are rich")
else:                                               .
.  print("Get a job!")
You can buy some gum
You are rich
Get a job!
You are rich
Get a job!

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result?
number_of_coins = 2                           . 
if number_of_coins > 6:                       .
.          print("You can buy some gum")
else:                                                                      .
if number_of_coins < 10:
.      print("You are rich")
. print("Get a job!")
You can buy some gum
You are rich
Get a job!
Nothing prints

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?