PYTHON QUIZ3
Quiz
•
Computers
•
University - Professional Development
•
Hard
MSK PSGRKCW
Used 6+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1. Find the output of the following program:
nameList = ['Harsh', 'Pratik', 'Bob', 'Dhruv']
print nameList[1][-1]
h
k
v
b
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2. Find the output of the following program:
input = [1, 2, 3, 4]
input. append([5,6,7,8])
print(input)
[1,2,3,4,5,6,7,8]
[1,2,3,4]
[1,2,3,4,[5,6,7,8]]
[1,2,3,4][5,6,7,8]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
3. Find the output of the following program:
list1 = range(100, 110)
print (list1.index(105))
105
5
106
4
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
4. Find the output of the following program
list1 = [1, 2, 3, 4, 5]
list2 = list1
list2[0] = 0;
print( list1)
[1, 2, 3, 4, 5, 0]
[0,1, 2, 3, 4, 5]
[0, 2, 3, 4, 5]
[1, 2, 3, 4, 0]
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
5. Find the output of the following code
list1 = [1998, 2002]
list2 = [2014, 2016]
print ((list1 + list2)*2)
[1998, 2002, 2014, 2016, 1998, 2002, 2014, 2016]
[1998, 2002, 2014, 2016]
[1998, 2002, 1998, 2002]
[2014, 2016, 2014, 2016]
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
6. A Program Runs And, During Running, Is Asked To Divide By Zero. The Program Crashes. This Is An Example Of ----------
Runtime Error
Logic Error
Syntax Error
semantic Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
7. What will be output for the folllowing code?
try:
print(x)
except:
print("An exception occurred")
x
An exception occurred
Error
None of the above
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
11 questions
What is a computer
Quiz
•
KG - University
15 questions
Web Dev Midterm Quiz
Quiz
•
University
12 questions
ASAS SAINS KOMPUTER : TINGKATAN 3
Quiz
•
4th Grade - University
14 questions
Semi-Long Quiz#1 - SAM, NW3A-3E
Quiz
•
University
12 questions
CIS1103 Week 9_10 CLO3 Part 1
Quiz
•
University
10 questions
Computer Hardware and Software Quiz
Quiz
•
Professional Development
15 questions
Microcontroller
Quiz
•
University
10 questions
pointers and structures
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
