
Session 5
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
Mimansha Ramcharn
Used 5+ times
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are true of Python lists?
All elements must be of the same type
These represent the same list: ['a', 'b', 'c'] and ['c', 'a', 'b']
A list may contain any type except another list
There is no conceptual limit to the size of a list
A given object may appear in a list more than once
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
List a is defined as follows: a = [1, 2, 3, 4, 5]
Statements that remove the middle element 3 from a:
a.remove(3)
del a[2]
a[2] = [ ]
a[2:2] = [ ]
a[2:3] = [ ]
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
List a is defined as follows: a = ['a', 'b', 'c']
To add 'd' and 'e' to the end, so that the answer is a = ['a', 'b', 'c', 'd', 'e']
Which statements are true?
a += ['d', 'e']
a.append(['d', 'e'])
a = ['a', 'b', 'c', 'd', 'e']
a[len(a):] = ['d', 'e']
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which function counts elements in a list?
find()
index()
count()
len()
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Let list1 = [2, 4, 6, 8, 10].
What will print(list1[-2]) result in?
6
8
error
-2
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which statement is NOT correct?
A list is mutable
The append function is used to add an element
A tuple is immutable
The extend function adds an element to a tuple
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Can lists contain tuples and vice versa?
Yes
No
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
15 questions
Java_MCQ_3
Quiz
•
University
15 questions
Questionário sobre Inteligência Artificial
Quiz
•
University
12 questions
PYTHON APTITUDE
Quiz
•
University
18 questions
Asesmen Harian Informatika Kelas 7
Quiz
•
7th Grade - University
10 questions
Татаал издөө сурамдары
Quiz
•
7th Grade - University
10 questions
Evaluación Sumativa Taller de Cultura Digital Categoria C
Quiz
•
11th Grade - University
15 questions
LibreOffice Writer Styles Quiz
Quiz
•
10th Grade - University
16 questions
Metode BK
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
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
