Search Header Logo

Module 1-Flow Control_5th_Semseter

Authored by Hemanth Kumar

Education

University

Used 2+ times

Module 1-Flow Control_5th_Semseter
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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]

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?