
Python Rating_Cases
Authored by Gürkan Çanakçı
Professional Development
Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
cubes = [1, 8, 27]
cubes.append(4 ** 3)
print(cubes)
cubes = [1, 8, 27]
cubes.append(4 ** 3)
print(cubes)[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])
word = "galaxy"
print(word[4:50])axyaxy
axy
xy
xyxy
3.
MULTIPLE CHOICE QUESTION
0 sec • 2 pts
x = 51 % 3
print(x)
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))
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
0 sec • 2 pts
x = 'cool'
print(x[-1] + x[-2]
+ x[-4] + x[-3])
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))
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:])
word = "galaxy"
print(word[:-2] + word[-2:])yxalag
yxa
gal
galaxy
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?
Similar Resources on Wayground
25 questions
Product Knowledge Suzuki
Quiz
•
12th Grade - Professi...
25 questions
POST TEST- Platihan Kumer 2024
Quiz
•
Professional Development
25 questions
Quiz PK Refreshment Asya - Mei 2024
Quiz
•
Professional Development
25 questions
COMMUNICATION U6 OPA3
Quiz
•
Professional Development
25 questions
Karakteristik Pribadi 2
Quiz
•
Professional Development
25 questions
STIN (EM24) - Sistemas de Información (T1)
Quiz
•
University - Professi...
25 questions
Final Quiz
Quiz
•
Professional Development
25 questions
Quiz Refreshment SDP Asya Februari 2024
Quiz
•
Professional Development
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