Python Programming Quiz

Python Programming Quiz

University

51 Qs

quiz-placeholder

Similar activities

Python Programming Quiz

Python Programming Quiz

University

49 Qs

READING ROCKS

READING ROCKS

KG - University

56 Qs

Information and communications technology

Information and communications technology

University

50 Qs

OOP Midterms

OOP Midterms

University

50 Qs

Python quiz

Python quiz

University

50 Qs

Python Functions Quiz

Python Functions Quiz

University

48 Qs

Câu hỏi về danh sách trong Python

Câu hỏi về danh sách trong Python

University

46 Qs

ENCFAP2L Final Quiz 1

ENCFAP2L Final Quiz 1

University

50 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?