1. Which of the following would give an error?

Python Quiz

Quiz
•
Computers
•
Professional Development
•
Medium
Glenson Rodrigues
Used 23+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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?
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?
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) ?
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
Create a free account and access millions of resources
Similar Resources on Quizizz
6 questions
Python Quiz

Quiz
•
Professional Development
12 questions
Python8

Quiz
•
Professional Development
15 questions
Data Science / AI

Quiz
•
Professional Development
14 questions
ABREDES - Devasc Python

Quiz
•
Professional Development
7 questions
Demo Quiz Ashv

Quiz
•
Professional Development
10 questions
Batch 1

Quiz
•
Professional Development
10 questions
Python

Quiz
•
Professional Development
10 questions
BoostHours Python 09/04

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade