Module 1-Flow Control_5th_Semseter

Module 1-Flow Control_5th_Semseter

University

10 Qs

quiz-placeholder

Similar activities

GFG Final Quiz

GFG Final Quiz

University

10 Qs

LECCIÓN MACRO

LECCIÓN MACRO

University

8 Qs

Image Compression

Image Compression

12th Grade - University

11 Qs

Weekly Contest #11

Weekly Contest #11

University

10 Qs

Python - Data Types

Python - Data Types

12th Grade - University

11 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 Internship Quiz

Python Internship Quiz

12th Grade - University

15 Qs

Exploring Python Data Types

Exploring Python Data Types

11th Grade - University

10 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?