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

26 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which operator is generally faster, is or ==, and why?
Back
is, because it only compares memory addresses
Answer explanation
is only checks if two variables point to the same object in memory → Faster
is only checks if two variables point to the same object in memory → Faster
==compares values, which can be slower if objects are large (like lists or dictionaries).
2.
FLASHCARD QUESTION
Front
What is Python?
Back
A high-level programming language
3.
FLASHCARD QUESTION
Front
What is the output of print(2 + 3 * 4)?
Back
14
4.
FLASHCARD QUESTION
Front
Which of the following statements is used to exit from a loop in Python? stop, exit, break, end
Back
break
5.
FLASHCARD QUESTION
Front
What will be the output of the following code?
x = [1, 2, 3]
x.append([4, 5])
print(x)
Back
[1, 2, 3, [4, 5]]
6.
FLASHCARD QUESTION
Front
Which of the following is the best way to check if a variable is None?
if x == None:
if x is None:
if x == "None":
if x is "None":
Back
if x is None:
7.
FLASHCARD QUESTION
Front
What will be printed?
python
CopyEdit
t1 = (1, 2, 3)
t2 = (1, 2, 3)
l1 = [1, 2, 3]
l2 = [1, 2, 3]
print(t1 is t2)
print(l1 is l2)
Back
True, False
Create a free account and access millions of resources
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?
Similar Resources on Wayground
20 questions
Describing People
Flashcard
•
7th Grade
20 questions
Pearson repetytorium ósmoklasisty unit 5 Świat przyrody
Flashcard
•
8th Grade
20 questions
Changes in States of Matter
Flashcard
•
3rd Grade
20 questions
Amplify Magnetic Fields Chapter 2 Review
Flashcard
•
8th Grade
20 questions
Prepositions of place
Flashcard
•
1st - 4th Grade
20 questions
Cooking utensils
Flashcard
•
University
20 questions
Основы логарифмов для 10 класса
Flashcard
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
30 questions
ServSafe Manager Practice Test 2021
Quiz
•
11th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
Professional Development
60 questions
Christmas Fun!
Quiz
•
4th Grade
21 questions
Name that Holiday Movie
Quiz
•
Professional Development