cubes = [1, 8, 27]
cubes.append(4 ** 3)
print(cubes)
Python Rating_Cases

Quiz
•
Professional Development
•
Professional Development
•
Medium
Gürkan Çanakçı
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
[64,1, 8, 27]
[1, 8, 27, 12]
[1, 8, 27, 64]
[12 ,1, 8, 27]
2.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
word = "galaxy"
print(word[4:50])
axyaxy
axy
xy
xyxy
3.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
x = 51 % 3
print(x)
17
0
4.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
def if_confusion(x, y):
if x > y:
if x - 5 > 0:
x = y
return "A" if y == y + y else "B"
elif x + y > 0:
while x > y: x -= 1
while y > x: y -= 1
if x == y:
return "E"
else:
if x - 2 > y - 4:
x_old = x
x = y * y
y = 2 * x_old
if (x - 4) ** 2 > (y - 7) ** 2:
return "C"
return "D"
return "H"
print(if_confusion(3, 7))
C
D
E
H
5.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
x = 'cool'
print(x[-1] + x[-2]
+ x[-4] + x[-3])
cool
colo
loco
looc
6.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
words = ['cat', 'mouse']
for word in words:
print(len(word))
1
3
2
4
3
5
4
4
7.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
word = "galaxy"
print(word[:-2] + word[-2:])
yxalag
yxa
gal
galaxy
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Lazada PH Quiz 1: Seller Journey

Quiz
•
Professional Development
20 questions
Basic 2 Python

Quiz
•
12th Grade - Professi...
30 questions
Session 1LNMIIT

Quiz
•
Professional Development
25 questions
WSC Group 4 Level 1_1-25

Quiz
•
Professional Development
20 questions
Digital Marketing Review

Quiz
•
Professional Development
20 questions
VCE TalentNext-2021 Quiz-2

Quiz
•
Professional Development
25 questions
PSUEDOCODE 2 CAPGEMINI

Quiz
•
Professional Development
28 questions
java Programming1

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade