
Python 2A

Quiz
•
Information Technology (IT)
•
11th Grade
•
Hard

Динара Тлеккабылова
Used 1+ times
FREE Resource
80 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the best description of a list in Python?
A list is a collection of data that has an order and can be changed
A list is a lot of variables
I have no idea
A list is a collection of data that cannot hold duplicated data and cannot be changed
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct code for creating a list of names?
nameList = John, Harry, Jesse, John, Harry, Harry
nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList = [John, Harry, Jesse, John, Harry, Harry]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would this out put? print(users[0][0])
smith
ben
sam
james
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The list needs one more name added to the end - "Marina". Which piece of code below would do this?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList.append(Marina)
append(nameList,"Marina")
nameList.append["Marina",7]
nameList.append("Marina")
nameList.append("Marina", "Marina", "Marina", "Marina", "Marina", "Marina")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would this out put? print(users[2][1])
error
16
brown
smith
something
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to add an element to the end of a list in Python?
`insert()`
`append()`
`extend()`
`add()`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python my_list = [1, 2, 3] my_list.insert(1, 4) print(my_list) ```
`[1, 4, 2, 3]`
`[1, 2, 3, 4]`
`[4, 1, 2, 3]`
`[1, 2, 4, 3]`
Create a free account and access millions of resources
Similar Resources on Wayground
85 questions
Câu hỏi trắc nghiệm Tin học 11

Quiz
•
11th Grade
77 questions
Unit 2 Review

Quiz
•
11th Grade
77 questions
Trắc nghiệm Tin học 11

Quiz
•
11th Grade
75 questions
tin học b1

Quiz
•
11th Grade
84 questions
Bank Soal Informatika 9 SMT 1

Quiz
•
9th Grade - University
75 questions
Digital Society Revision

Quiz
•
11th Grade
78 questions
Câu hỏi về cơ sở dữ liệu và phần mềm

Quiz
•
11th Grade
85 questions
AS_Ch11_Programming

Quiz
•
11th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade