What is the output of print([1, 2, 3] + [4, 5, 6])?
NRIT_Python_Quiz02

Quiz
•
Computers
•
University
•
Medium
Yohoshiva Basaraboyina
Used 1+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
[1, 2, 3, 4, 5, 6]
[5, 7, 9]
[4, 5, 6, 1, 2, 3]
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does list1.append(5) do?
Adds 5 to the end of list1
Inserts 5 at index 0
Deletes index 5
Raises an error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(len([1, [2, 3], 4]))?
3
4
5
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you remove an element from a list by value?
list.remove(value)
list.delete(value)
list.pop(value)
del list[value]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of list1 = [1, 2, 3] and list1 * 2?
[1, 2, 3, 1, 2, 3]
[1, 2, 3, 2]
[1, 2, 3, 1]
[2, 4, 6]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of dict1 = {'a':1, 'b':2}; print(dict1['a'])?
'a'
1
2
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you get all the keys of a dictionary?
dict.keys()
dict.values()
dict.items()
dict.get()
Create a free account and access millions of resources
Similar Resources on Quizizz
46 questions
Ôn tập

Quiz
•
10th Grade - University
51 questions
EINSTEIN 2ND PERIODICAL TEST

Quiz
•
9th Grade - University
50 questions
Python Basic

Quiz
•
University
50 questions
codinggss

Quiz
•
University
45 questions
TECHNICAL QUIZ

Quiz
•
University
49 questions
Quiz on C Operators

Quiz
•
University
50 questions
Python and C Programming Quiz

Quiz
•
University
50 questions
Python: Built-In Functions and Upto Tuple

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade