Python Flashcard

Python Flashcard

Assessment

Flashcard

Professional Development

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

25 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the correct way to declare a variable in Python? Options: var x = 5, x := 5, x = 5, int x = 5

Back

x = 5

2.

FLASHCARD QUESTION

Front

Which of the following is used for single-line comments in Python: //, #, /* */, None of the above?

Back

#

3.

FLASHCARD QUESTION

Front

What is the correct way to call a function in Python?

Back

function name()

4.

FLASHCARD QUESTION

Front

What is the output of print(2 ** 3)?

Back

8

5.

FLASHCARD QUESTION

Front

Which of these is NOT a valid Python data type? int, float, complex, char

Back

char

6.

FLASHCARD QUESTION

Front

What is the correct way to create an empty list in Python? Options: list = []; list = list(); list = {};

Back

Both A and B

7.

FLASHCARD QUESTION

Front

What is the correct syntax to import a module in Python?

Back

import module

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?

Discover more resources for Professional Development