What will be the output of following program:
list1 = ["python", "list", 1952, 2323, 432]
print(list1[1:4])
list
Quiz
•
Computers
•
11th Grade
•
Medium
Ms.Haseeba Computer
Used 13+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of following program:
list1 = ["python", "list", 1952, 2323, 432]
print(list1[1:4])
["python","list",1952,2323]
[1952,2323,432]
["list",1952,2323]
["list",1952,2323,432]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of following program:
list1 = ["python", "list", 1952, 2323, 432]
print(list1[-5])
list
1952
432
python
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of following code-
a,b=[3,1,2],[5,4,6]
print(a+b)
[3,1,2]+[5,4,6]
(3,1,2,5,4,6)
[3,1,2,5,4,6]
[54,6,3,1,2]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of following code-
list1=[1, 3, 2]
list1 * 2
[1,3,2][1,3,2]
[1,3,2]*2
[1,3,2,1,3,2]
( [1,3,2] )([1,3,2])
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
theList=[1, 2, [1.1, 2.2]]
print(len(theList))
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of following program:
data = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
print(data[1][0][0])
2
5
1
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of following program:
a=[2,3]
a.append(7)
print(a))
(2,3)
[2,7]
[2,3,7]
[7,2,3]
10 questions
TOPOLOGI JARINGAN
Quiz
•
11th Grade
10 questions
ArrayLists
Quiz
•
11th - 12th Grade
10 questions
Python List Quiz
Quiz
•
11th Grade
10 questions
Python Quiz for Grade 11 List, Tuple & Strings
Quiz
•
11th Grade
10 questions
PRACTICA GEOMETRIA PRE
Quiz
•
11th Grade
10 questions
List - Class XI
Quiz
•
11th Grade
10 questions
ArrayLists
Quiz
•
11th - 12th Grade
10 questions
List quiz1
Quiz
•
9th - 12th Grade
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