
python1
Quiz
•
Computers
•
KG - 4th Grade
•
Hard
jo denayer
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
x = 5
y = x
x = 6
what is y
5
6
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
a = 5
for x in range(10):
a = a if x != 0 else 0
What is the value of a at the end?
0
5
9
10
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
l1 = [1,2,3,4]
l2 = [1,2,3,4]
what will the following statement result in?
l1 is l2
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
10 // 3
0
10
3
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
x = 10
y = 5
if y == 5:
print('five')
elif x == 10:
print('ten')
elif y==5 and x == 10:
print('fifteen')
What gets printed?
'five'
'ten'
'fifteen'
all of the other answers together
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
def add():
x = 5
y = 8
val = x + x * y
Calling this function returns?
80
45
Nothing
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
what is the data type of the following?
aTuple = (1,'Jhon', 1+3j)
print(type(aTuple[2:3]))
list
complex
tuple
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Python Quiz
Quiz
•
Professional Development
15 questions
Manipução de arrays e listas em Python
Quiz
•
KG - University
15 questions
Problem Solving using Python and R - UNIT II - Tuples
Quiz
•
12th Grade
10 questions
Python Unit 3
Quiz
•
University
14 questions
Python: списки, кортеж, словник, множина
Quiz
•
9th - 12th Grade
10 questions
soal essai pyton informatika
Quiz
•
10th Grade
7 questions
Python Day 8
Quiz
•
University
10 questions
Data Structures Quiz
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade