'PYTHON _WORLD'
Quiz
•
Other
•
6th - 8th Grade
•
Practice Problem
•
Hard
Джаврият Халикова
Used 2+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
nameList = ['Саша', 'Джек', 'Кирилл', 'Борис']
pos = nameList.index("Джейкоп")
print (pos * 3)
Джейк
Саша, Саша, Саша
KeyError
Ошибка значения
Борис * 3
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code snippet?
d1 = [10, 20, 30, 40, 50]
d2 = [1, 2, 3, 4, 5]
subtracted = list(
for d1, d2 in zip(d1, d2):
item = d1 - d2
subtracted.append(item)
print(subtracted)
[10, 20, 30, 40, 50]
[1, 2, 3, 4, 5]
[10, 20, 30, 40, 50, -1, -2, -3, -4, -5]
9, 18, 27, 36, 45
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code snippet?
data = [x for x in (x for x in 'Geeks 22966 for Geeks' if x.isdigit()) if
(x in ([x for x in range(20)]))]
print(data)
[2, 2, 9, 6, 6]
[ ]
Compilation Error
Runtime Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the outcome of the following code snippet?
A = {0, 2, 4, 6, 8}
B = {1, 2, 3, 4, 5};
print( A - B)
{0, 1, 2, 3, 4, 5, 6, 8}
{0, 8, 6}
{2, 4}
{0, 1, 3, 5, 6, 8}
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Can you guess the output of the following code snippet?
def REVERSE(L):
L.reverse()
return(L)
def ABCDEF(L):
List = []
List.extend(REVERSE(L))
print(List)
L = [1, 3.1, 5.31, 7.531]
ABCDEF(L)
Index Error
[1, 3.1, 5.31, 7.531]
Attribute Error: 'NoneType' object has no attribute 'REVERSE'
[7.531, 5.31, 3.1, 1]
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code snippet?
temp = ['Geeks', 'for', 'Geeks']
arr = [i[0].upper() for i in temp]
print(arr)
['GEEKS', 'FOR','GEEKS']
[‘G’, ‘F’, ‘G’]
Compilation Error
['GEEKS']
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Can you find the output of the following game?
numberGames = {}
numberGames[(1,2,4)] = 8
numberGames[(4,2,1)] = 10
numberGames[(1,2)] = 12
sum = 0
for k in numberGames:
sum += numberGames[k]
print (len(numberGames) + sum)
33
12
10
8
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
15 questions
Pseudocódigo: Elementos básicos
Quiz
•
7th - 9th Grade
15 questions
Naród ipaństwo
Quiz
•
8th Grade
15 questions
Kamienie na szaniec
Quiz
•
7th - 9th Grade
16 questions
ՏԵՔՍՏԱՅԻՆ ԽՄԲԱԳՐԻՉՆԵՐ 6ՐԴ ԴԱՍԱՐԱՆ
Quiz
•
6th Grade
10 questions
Урок Янка Мавр "Сын воды"
Quiz
•
1st - 10th Grade
14 questions
Pesach Basics
Quiz
•
3rd - 8th Grade
13 questions
Among Us
Quiz
•
1st Grade - Professio...
10 questions
M1 第二课
Quiz
•
7th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd 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
Discover more resources for Other
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
15 questions
scatter plots and trend lines
Quiz
•
8th Grade
23 questions
Academic Vocabulary Pre-assessmsent
Quiz
•
6th Grade
21 questions
Convert Fractions, Decimals, and Percents
Quiz
•
6th Grade
20 questions
Solving Systems of Equations by Graphing
Quiz
•
8th Grade
20 questions
Exponents
Quiz
•
6th Grade
