
Python Quiz
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Glenson Rodrigues
Used 23+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Which of the following would give an error?
1. Which of the following would give an error?
A. list1=[]
B. list1=[]*3
C. list1=[2,8,7]
D. None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.Which of the following is True regarding lists in Python?
2.Which of the following is True regarding lists in Python?
A. Lists are immutable.
B. size(list1) command is used to find the size of lists.
C. Size of the lists must be specified before its initialization
D. Elements of lists are stored in contagious memory location.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. Suppose l is [1, 3, 2], What is l * 2?
3. Suppose l is [1, 3, 2], What is l * 2?
A. [2, 6, 4]
B. [1, 3, 2, 1, 3]
C. [1, 3, 2, 1, 3, 2]
D. [1, 3, 2, 3, 2, 1]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. Suppose list1 is [1, 5, 9], what is sum(list1) ?
4. Suppose list1 is [1, 5, 9], what is sum(list1) ?
A. 1
B. 9
C. 15
D. Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. Which of the following will give output as [23,2,9,75] ?
If l=[6,23,3,2,0,9,8,75]
A. l[1:7:2]
B. l[0:7:2]
C. l[1:8:2]
D. l[0:8:2]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. What will be the output of the following Python code?
>>>l1 = [11, 2, 23]
>>>l2 = [11, 2, 2]
>>>l1 < l2
A. True
B. False
C. Error
D. None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. In Python, list is mutable
A. True
B. False
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
Khám phá máy tính lớp 5
Quiz
•
10th Grade - Professi...
10 questions
C++Quiz#1
Quiz
•
Professional Development
16 questions
L4 Ôn tập HK 2 - 22-23
Quiz
•
Professional Development
10 questions
all star
Quiz
•
Professional Development
10 questions
Hàm
Quiz
•
Professional Development
15 questions
U.T. 4: Nivel de enlace - Subcapas LLC y MAC - ARP
Quiz
•
Professional Development
15 questions
Javascript basics
Quiz
•
Professional Development
10 questions
Què en saps de GSuite?
Quiz
•
University - Professi...
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 Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
