Python debugging
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
vijayanandh ece
Used 261+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Find the output of the code:
# abc.py
def func(n):
return n + 10
func('Hello')
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Find the output of the code:
nameList = ['Harsh', 'Pratik', 'Bob', 'Dhruv']
print nameList[1][-1]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the code:
for i in range(2):
print i
for i in range(4,6):
print i
0,1,4,5
0,1,2,4,5,6
0,1,2,3,4,5,6
2,4,6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the code:
geekCodes = [1, 2, 3, 4]
geekCodes.append([5,6,7,8])
print len(geekCodes)
4
5
6
8
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the code:
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
10
11
12
13
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is the output of the code:
d1 = {"john":40, "peter":45}
d2 = {"john":466, "peter":45}
print d1 > d2
True
False
Not applicable
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the code:
D = {1 : 1, 2 : '2', '1' : 1, '2' : 3}
D['1'] = 2
print(D[D[D[str(D[1])]]])
2
3
'2'
Key error
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
GAME QUIZ!!
Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
10 questions
Information systems concepts
Quiz
•
University
10 questions
Soal SKD
Quiz
•
University - Professi...
12 questions
Porcentajes
Quiz
•
University
13 questions
L1 - Computer Networks
Quiz
•
University
15 questions
DBC CHAPTER 3 - REVISION
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
