Python Programming Quiz

Python Programming Quiz

University

13 Qs

quiz-placeholder

Similar activities

Data Type Review

Data Type Review

KG - Professional Development

12 Qs

Game Quizizz

Game Quizizz

KG - Professional Development

8 Qs

French Beginner

French Beginner

4th Grade - Professional Development

15 Qs

Python MCQ

Python MCQ

University

10 Qs

Intro to Python Programming Quiz 9D

Intro to Python Programming Quiz 9D

1st Grade - University

14 Qs

among us

among us

1st Grade - Professional Development

10 Qs

Basics of Python

Basics of Python

University

8 Qs

C++  quiz

C++ quiz

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?