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
What is the output of print([1, 2, 3] + [4, 5, 6])?
[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 Wayground
50 questions
Java Programming Quiz 2-6

Quiz
•
University
50 questions
Orientation Quiz

Quiz
•
University - Professi...
50 questions
Quiz

Quiz
•
University
51 questions
Python тіліндегі жолдар мен тізімдер

Quiz
•
University
50 questions
Dasar Pemrograman Java

Quiz
•
University
50 questions
Python бағдарламалау негіздері

Quiz
•
University
50 questions
JavaScript-ITELECTIVE

Quiz
•
University
45 questions
Quiz Informatika Dasar

Quiz
•
8th Grade - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade