
CODE BREAKER

Flashcard
•
Other
•
University
•
Hard
Wayground Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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] Options: d, a, h, g
Back
d
2.
FLASHCARD QUESTION
Front
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)
Back
[0, 0, 10, 20, 30]
3.
FLASHCARD QUESTION
Front
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") Options: a & e , b & c, e &b, c & d
Back
c & d
4.
FLASHCARD QUESTION
Front
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")
Back
Zero Division Error Occurred
5.
FLASHCARD QUESTION
Front
Find the error from the following:
a. n=int(input())
b. l=len(n)
c. new=(l%10)+n
Back
b
6.
FLASHCARD QUESTION
Front
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")
Back
b
7.
FLASHCARD QUESTION
Front
What will be the output of the following code snippet?
my_dict={'a':1, 'b':2, 'c':3}
print(my_dict['d'])
Back
KeyError
Create a free account and access millions of resources
Similar Resources on Wayground
7 questions
Python dictionary

Flashcard
•
University
9 questions
flashcard - 7(exceptions and file handling)

Flashcard
•
12th Grade - University
15 questions
Python Programming Flashcard

Flashcard
•
University
12 questions
Topic 1 C++ Programming

Flashcard
•
12th Grade
10 questions
FILE TYPES

Flashcard
•
12th Grade
9 questions
Physics Measurement

Flashcard
•
University
10 questions
CBSE Class 12 Computer Science Flashcard

Flashcard
•
12th Grade
10 questions
Ôn tập chủ đề F

Flashcard
•
KG
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

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

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade
Discover more resources for Other
36 questions
USCB Policies and Procedures

Quiz
•
University
4 questions
Benefits of Saving

Quiz
•
5th Grade - University
20 questions
Disney Trivia

Quiz
•
University
2 questions
Pronouncing Names Correctly

Quiz
•
University
15 questions
Parts of Speech

Quiz
•
1st Grade - University
1 questions
Savings Questionnaire

Quiz
•
6th Grade - Professio...
26 questions
Parent Functions

Quiz
•
9th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University