Python quiz - 1

Python quiz - 1

University

10 Qs

quiz-placeholder

Similar activities

quiz - 2

quiz - 2

12th Grade - University

10 Qs

Intro to Python Programming Quiz 9B

Intro to Python Programming Quiz 9B

10th Grade - University

14 Qs

Intro to Python Programming Quiz 9C

Intro to Python Programming Quiz 9C

10th Grade - University

12 Qs

METHODOLOGIES

METHODOLOGIES

University

15 Qs

MEET AND GREET!

MEET AND GREET!

University

15 Qs

HIMSI Webinar Series 4

HIMSI Webinar Series 4

University

15 Qs

Functions

Functions

University

15 Qs

among us

among us

1st Grade - Professional Development

10 Qs

Python quiz - 1

Python quiz - 1

Assessment

Quiz

Other

University

Medium

Created by

Tharun AmiReddy

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python supports the creation of anonymous functions at runtime, using a construct called

pi

anonymous

lambda

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following character is used to give single-line comments in Python?

//

#

!

/*

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of the following Python expression?

4 + 3 % 5

2

7

4

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of Programming does Python support?

object-oriented programming

structured programming

functional programming

all of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who developed Python Programming Language?

Wick van Rossum

Rasmus Lerdorf

Guido van Rossum

Niene Stom

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

def foo():

try:

return 1

finally:

return 2

k = foo()

print(k)

error, there is more than one return statement in a single try-finally block

3

2

1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python expression?

round(4.576)

4

4.6

5

4.5

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?