Python List

Quiz
•
Computers
•
12th Grade
•
Hard
Jumanah Alqurnah
Used 46+ times
FREE Resource
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
1. Which of these collections defines a LIST?
{"numbers": "omar", "Ali": "Ahmed"}
["omar", "Ali": "Ahmed"]
("omar", "Ali": "Ahmed")
{"omar", "Ali": "Ahmed"}
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
1. How can you print the second and the third items in the list example ?
print(example[2,3],example[3])
echo(example[3][2])
print(example[1],example[2])
print(example(2))
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following are true of Python lists?
These represent the same list: ['a', 'b', 'c'], ['c', 'a', 'b']
A given object may appear in a list more than once
There is no conceptual limit to the size of a list
A list may contain any type of object except another list
a) All elements in a list must be of the same type
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the answer of print (list(range(1, 6)))
[1, 2, 3, 4, 5]
[2, 3, 4]
[1, 3, 2, 4, 5]
[ 2, 3, 4, 5, 1]
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose the correct definition for Python List
A collection which is ordered and unchangeable
A collection which is ordered and changeable.
A collection which is unordered, changeable and indexed.
A collection which is unordered and un-indexed.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code snippet:
x = ["Omar", "Ali", "Ahmed"]
print(x[1])
print(x[-2])
print(x[-2][-1])
Ali
Omar
A
Ali
Ali
i
Omar
Omar
r
Ali
Ali
Ali
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose the correct python program that has the output A
print("A".lower())
Print("A")
x=["Ali"]
print(x[0])
x=["Ali"]
print(x[--3])
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
CONDITIONAL STATEMENTS

Quiz
•
11th - 12th Grade
27 questions
Turtle Python Quiz 1

Quiz
•
10th - 12th Grade
26 questions
Python middle

Quiz
•
8th Grade - University
24 questions
Ôn tập cuối kì Mùa Xuân Tin học 10.1

Quiz
•
10th Grade - University
30 questions
REVISÃO PYTHON

Quiz
•
9th - 12th Grade
27 questions
variables , if … else, while and loop for_HKICO_Python

Quiz
•
12th Grade
25 questions
Empowerment Technology (SUMMATIVE)

Quiz
•
12th Grade - University
23 questions
Ôn tập kì Xuân Tin học 10. 2

Quiz
•
10th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University