

Python Flashcard
Flashcard
•
Professional Development
•
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?