
python 1

Quiz
•
Arts
•
1st Grade
•
Hard
Nagendrapatel Puppala
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program?
D = {1 : 1, 2 : '2', '1' : 2, '2' : 3}
D['1'] = 2
print(D[D[D[str(D[1])]]])
2
3
'2'
error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program?
D = {1 : {'A' : {1 : "A"}, 2 : "B"}, 3 :"C", 'B' : "D", "D": 'E'}
print(D[D[D[1][2]]], end = " ")
print(D[D[1]["A"][2]])
D C
D E
D B
ERROR
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program?
D = dict()
for i in range (3):
for j in range(2):
D[i] = j
print(D)
{0: 0, 1: 0, 2: 0}
{0: 1, 1: 1, 2: 1}
{0: 0, 1: 0, 2: 0, 0: 1, 1: 1, 2: 1}
TypeError: Immutable object
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
count = 1
def doThis():
global count
for i in (1, 2, 3):
count += 1
doThis()
print (count)
OUTPUT=??
3
5
4
NONE
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
check1 = ['Learn', 'Quiz', 'Practice', 'Contribute']
check2 = check1
check3 = check1[:]
check2[0] = 'Code'
check3[1] = 'Mcq'
count = 0
for c in (check1, check2, check3):
if c[0] == 'Code':
count += 1
if c[1] == 'Mcq':
count += 10
print (count)
OUTPUT=???
34
5
24
12
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
a = "MLRITM"
b = 13
print (a + b)
OUTPUT=??
ERROR
12
24
98
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
what is the output of the program??
import numpy as np
a = np.array([1.0, 2.0, 3.0])
# Example 1
b = 2.0
print(a * b)
# Example 2
c = [2.0, 2.0, 2.0]
print(a * c)
[ 5. 4. 6.] [ 8. 4. 6.]
[ 2. 4. 8.] [ 2. 4. 7.]
[ 2. 4. 6.] [ 2. 4. 6.]
none
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Fryderyk Chopin - życie i twórczość

Quiz
•
1st - 10th Grade
20 questions
python 3

Quiz
•
1st Grade
16 questions
Revision

Quiz
•
1st Grade
20 questions
c coding round 2

Quiz
•
1st Grade
15 questions
TIK KELAS 4 SEMESTER 2 BAB 2

Quiz
•
1st Grade
19 questions
RUNG CHUÔNG VÀNG 5 TUỔI A2

Quiz
•
1st Grade
20 questions
NHANH NHƯ CHỚP NHÍ VÒNG 5

Quiz
•
1st Grade
20 questions
NHANH NHƯ CHỚP NHÍ VÒNG 3

Quiz
•
1st Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Arts
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade