
CODE BREAKER
Quiz
•
Other
•
University
•
Practice Problem
•
Easy
Akhila H
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which among the following statements may result in an error?
Assume that the statements are executed in the order in which it is written.
a.list1=[5,10,15,20,25]
b. print(len(list1))
c. print(list1[4])
d. print(list1[5])
e. print(list1[4:5])
f. list1[2]=12
g. print(list1)
h. list1=list1+[8,9]
d
a
h
g
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the output of the below code snippet.
my_list=[0]*5
for index in range(1,5):
my_list[index]=(index-1)*10
print(my_list)
[0, 0, 0, 0, 0]
[10,20,30,40,50]
[0, 0, 10, 20, 30]
[0,10,20,30,40,50]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which among the following statements will cause execution to stop as a result of an error?
Assume that the statements are executed in the order in which it is written.
a.tuple1=(5,10,15,20,25)
b. print(len(tuple1))
c.tuple1[2]=100
d. print(tuple1[5])
e. tuple1=tuple1+(8,9,"h")
a & e
b & c
e &b
c & d
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the output of the code given below.
num1=100
num2=0
try:
result=num1/num2
print(result)
except ZeroDivisionError:
print("Zero Division Error Occurred")
100
Zero Division Error Occurred
0
no output
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find the error form the following
a. n=int(input())
b. l=len(n)
c. new=(l%10)+n
a
b
c
no error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find the error from the following:
a. num=int(input())
b. 1list=[]
c. for i in range(1,num+1):
d .if num%i==0:
e.print("Factor")
d
a
c
b
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code snippet?
my_dict={'a':1, 'b':2, 'c':3}
print(my_dict['d'])
None
KeyError
0
{}
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
10 questions
Listas de Control de Acceso _1
Quiz
•
University
10 questions
Sustainable Construction - Design & Delivery
Quiz
•
University
10 questions
DHP I - Semana 10 - Errores semánticos
Quiz
•
University
11 questions
Usługi finansowe
Quiz
•
University
15 questions
Tax Goes to School
Quiz
•
University
10 questions
Estructura atómica y electrónica..
Quiz
•
University
12 questions
Basic Food Safety (GMP, ISO, HACCP)
Quiz
•
University - Professi...
10 questions
4.5 Engineering professional bodies
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
