Module 1-Flow Control_5th_Semseter

Module 1-Flow Control_5th_Semseter

University

10 Qs

quiz-placeholder

Similar activities

Python Variable and Datatype Quiz

Python Variable and Datatype Quiz

University

11 Qs

csi events

csi events

University

10 Qs

Kuis 1 Statistika Pendidikan

Kuis 1 Statistika Pendidikan

University

15 Qs

Pop Quiz Topic 1 & 2

Pop Quiz Topic 1 & 2

University

10 Qs

Video - Desarrollador en python

Video - Desarrollador en python

University

10 Qs

Python Compound Data Types and their Method Set-2

Python Compound Data Types and their Method Set-2

11th Grade - University

10 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

LECCIÓN MACRO

LECCIÓN MACRO

University

8 Qs

Module 1-Flow Control_5th_Semseter

Module 1-Flow Control_5th_Semseter

Assessment

Quiz

Education

University

Medium

Created by

Hemanth Kumar

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.Which of the following is a valid boolean value in Python?
"True"
False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. What will not True evaluate to?
False
True

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3.What will be the result of the expression 3 < 5 or 7 < 4?
True
False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4.Which keyword is used to define a function in Python?
Define
def
func

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5.Which of the following is used to handle exceptions in Python?
try-except
if-else

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. What is the role of the break statement in Python?
To continue to the next iteration of a loop
To exit the program

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. What is the purpose of the randint(a, b) function in the random module?
Generates a random integer in the range [a, b)
Generates a random integer in the range (a, b]
Generates a random integer in the range [a, b]

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?