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
Python: Built-In Functions and Upto Tuple

Quiz
•
University
45 questions
TECHNICAL QUIZ

Quiz
•
University
50 questions
Information systems and technologies

Quiz
•
University
50 questions
DDPTJKT - Latihan Soal PTS Genap

Quiz
•
10th Grade - University
55 questions
Python

Quiz
•
University
55 questions
JAVASCRIPT LONG

Quiz
•
University
50 questions
Finite Automata

Quiz
•
University
45 questions
CPT 236 Test 3 Review

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University