Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
4 views

Python Control Structures _ Quizizz

AAA

Uploaded by

esraayaksiz
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Python Control Structures _ Quizizz

AAA

Uploaded by

esraayaksiz
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

çalışma sayfaları İsim

Python Control Structures


Sınıf
Toplam questions: 20
Çalışma sayfası süresi: 10dakika
Tarih
Eğitmen adı: Doodle with me

1. What are the three main programming structures?

a) Java, Python, Visual Basic b) Sequence, selection, iteration

c) Machine, assembly, high-level d) Structured, object-oriented, procedural

2.

What is the Output if the user enters:


Yes

a) Leave umbrella at home b) Take an umbrella

3. In a Python program , a control structure:

a) directs the order of execution of the statements in b) dictates what happens before te program starts and
the program after it terminates

c) defines program-specific data structures d) manages the input and output of control characters

https://quizizz.com/print/quiz/630600875f280a001d10a6b4 1/5
19.01.2025 20:41 Python Control Structures | Quizizz

4.

What is the output of the above program ?

a) Or here ? Or over here ? b) Am I here ? Or here ?

c) Am I here? d) Or here ?

5.

If the user inputs : 2<Enter> , what does the following code snippet print ?

a) May be b) Nothing printed

c) No d) Yes

e) Error

6. Function range(3) is equivalent to "

a) range(1,3,0) b) range(0,3,1)

c) range(1,3) d) range(0,3)

7. This operator means that one value is not equal to another value

a) >= b) !=

c) <= d) ==

8.

What is the output?

a) Program has a syntax error. b) True

c) 3 > 2 d) condition

https://quizizz.com/print/quiz/630600875f280a001d10a6b4 2/5
19.01.2025 20:41 Python Control Structures | Quizizz

9.

What is the output?

a) spam b) more than 23

c) 7 d) more than 7

10.

What is the output?

a) 3 b) 3
5
7

c) 7 d) 3
7

11.

What is the output?

a) NIL b) True
NIL

c) True d) True
NIL
NIL

https://quizizz.com/print/quiz/630600875f280a001d10a6b4 3/5
19.01.2025 20:41 Python Control Structures | Quizizz

12.

What is the output?

a) level 3 b) level 3
level 2
level 1
NIL

c) level 3 d) level 3
level 1 level 1
NIL

13. An If statement can be executed multiple times

a) FALSE b) TRUE

14. The ‘else’ statement is optional in Python

a) FALSE b) TRUE

15. It is possible to execute both the statements under if and else at the same time.

a) TRUE b) FALSE

16. There can be an else statement without an if statement

a) TRUE b) FALSE

17. The program generates an error message if the "else" statement is not defined

a) TRUE b) FALSE

18. Python supports ................ types of loops

Cevap.

https://quizizz.com/print/quiz/630600875f280a001d10a6b4 4/5
19.01.2025 20:41 Python Control Structures | Quizizz

19.

What is the output?

a) Hello world! b) Hello world


Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
......(repeated continuously)

c) Hello world! d) Error

20.

What is the output if the user types "Python"?

a) Try again! b) Welcome

c) Error d) Enter your password

https://quizizz.com/print/quiz/630600875f280a001d10a6b4 5/5

You might also like