Python Programming Quiz

Python Programming Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

Comp Sci Tomfoolerly

Comp Sci Tomfoolerly

Professional Development

20 Qs

Sequences

Sequences

Professional Development

10 Qs

Python Fundamental 1

Python Fundamental 1

Professional Development

10 Qs

python quiz

python quiz

6th Grade - Professional Development

10 Qs

Digital Citizenship - Reminders & Tips

Digital Citizenship - Reminders & Tips

Professional Development

10 Qs

la messagerie électronique

la messagerie électronique

Professional Development

19 Qs

Python Quiz

Python Quiz

Professional Development

10 Qs

Python Quiz

Python Quiz

Professional Development

10 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

Professional Development

Medium

Created by

ERROL ANTONIO

Used 7+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get user input in Python 3?

input()

raw_input()

scan()

read()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to check if x is equal to 10?

x = 10:

x == 10:

x := 10:

x === 10:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation in Python?

^

**

pow

^^

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(5 // 2)?

2.5

2

3

2.0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will float(3) return?

"3.0"

3.0

"3"

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function converts a string "10" into an integer?

str("10")

int("10")

integer("10")

str(int("10"))

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to write a single-line comment in Python?

/* comment */

""" comment """

#comment

// comment //

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?