Python Programming Quiz

Python Programming Quiz

University

51 Qs

quiz-placeholder

Similar activities

Research (Prelim)

Research (Prelim)

University

55 Qs

PYTHON QUIZ

PYTHON QUIZ

University

50 Qs

GRAMMAR

GRAMMAR

University

48 Qs

Quiz #1

Quiz #1

University

50 Qs

Google Certified Educator Level 1 Study

Google Certified Educator Level 1 Study

University

52 Qs

Python Programming Quiz

Python Programming Quiz

University

49 Qs

Information and communications technology

Information and communications technology

University

50 Qs

Print Date Quiz #2

Print Date Quiz #2

10th Grade - University

48 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Other

University

Medium

Created by

Steffan Limon

Used 2+ times

FREE Resource

51 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

What is the command to mount Google Drive in Google Colab?

drive.load('/content/drive')

google.colab.mount('/content/drive')

load.drive('/content/drive')

drive.mount('/content/drive')

2.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which of the following is a valid integer declaration in Python?

x = 5

x = True

x = '5'

x = 5.0

3.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Boolean: What is the output of print(3 * 2 == 7)?

True

False

None

Error

4.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which of the following is NOT a basic data type in Python?

int

float

char

bool

5.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

What will be the output of print(10 // 3)?

Error

3

4

3.33

6.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

What is the purpose of the str() function in Python?

Convert a number to a string

None of the above

Check the type of a variable

Convert a string to a number

7.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which operator is used for floor division in Python?

/

//

**

%

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?