Module 1-Flow Control_5th_Semseter

Module 1-Flow Control_5th_Semseter

University

10 Qs

quiz-placeholder

Similar activities

Sports

Sports

University

10 Qs

KCOC MITIGASI RISIKO PBJ

KCOC MITIGASI RISIKO PBJ

University

10 Qs

Error Correction Test

Error Correction Test

University

15 Qs

SBITP QUIZZIZ

SBITP QUIZZIZ

University

10 Qs

CHAPTER 3: ACCOUNTING CYCLE

CHAPTER 3: ACCOUNTING CYCLE

University

10 Qs

INTERNATIONAL LAW UTS

INTERNATIONAL LAW UTS

University

10 Qs

Affirmative Action

Affirmative Action

University

10 Qs

Chương trình gặp mặt Đại sứ học tập và sinh viên

Chương trình gặp mặt Đại sứ học tập và sinh viên

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?