
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
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?
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 Wayground
11 questions
Python Libraries Series - Pandas

Quiz
•
Professional Development
13 questions
Python Final Quiz

Quiz
•
Professional Development
15 questions
PHP Tours & TCC #39 Apéro

Quiz
•
Professional Development
10 questions
CodeMonkey Platform Management & Resources

Quiz
•
Professional Development
10 questions
Avaliação Pensamento Computacional - Prático

Quiz
•
1st Grade - Professio...
11 questions
Sains Komputer Tingkatan 4 - 1.7.1 Menghuraikan setiap fasa

Quiz
•
1st Grade - Professio...
15 questions
Python Class 1

Quiz
•
Professional Development
10 questions
. Python бағдарламалау тілі

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade