Python Programming Quiz

Python Programming Quiz

University

13 Qs

quiz-placeholder

Similar activities

Mastering Python Basics

Mastering Python Basics

University

12 Qs

Python-Sec3-Sec4

Python-Sec3-Sec4

University

17 Qs

French Greetings

French Greetings

University

16 Qs

python

python

3rd Grade - University

12 Qs

Python Programming Quiz

Python Programming Quiz

University

10 Qs

magyk

magyk

KG - Professional Development

10 Qs

Ball Python Morphs

Ball Python Morphs

KG - University

10 Qs

Greek Theatre Vocab Quiz 1

Greek Theatre Vocab Quiz 1

8th Grade - University

15 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Other

University

Hard

Created by

EC M

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct variable name according to Python naming conventions?

1variable

variable_name

VariableName

variable-name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the recommended indentation level in Python according to PEP8?

2 spaces

4 spaces

8 spaces

Tabs

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

int

float

list

char

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type would you use to store a sequence of characters in Python?

int

float

str

bool

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: type(3.14)?

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a mutable data type in Python?

tuple

list

str

int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

// This is a comment

/* This is a comment */

# This is a 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?