What will be the output of the following Python code?
>>> a=(1,2,3,4)
>>> del(a[2])
Understanding the concept of list
Quiz
•
Information Technology (IT)
•
11th Grade
•
Medium
KV Churu Activities
Used 6+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
>>> a=(1,2,3,4)
>>> del(a[2])
Now, a=(1,2,4)
Now, a=(1,3,4)
Now a=(3,4)
Error as tuple is immutable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct way to access value 20 from the following tuple
tuple1= ("Orange", [10, 20, 30], (5, 15, 25))
tuple1[1:2](1)
tuple1[1:2][1]
tuple1[1][1]
All of the above
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the output:
1
2
[13, 18, 11, 16, 13, 18, 13, 2]
0
2
[13, 18, 11, 16, 13, 18, 13, 3]
5
2
[13, 18, 11, 16, 13, 18, 13, 3]
1
2
[13, 18, 11, 16, 13, 18, 13, 3]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following code result in?
True
[9, 7, 5, 3, 1]
False
[9, 7, 5, 3, 1]
True
[1, 3, 5, 7, 9]
None of the above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Out of the following, what is correct syntax to copy one list into another?
listA=listB[]
listA=listB[:]
listA=listB[]()
listA=list(listB)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What gets printed?
H
a
Hasan
Dia
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of following Python code?
(15,11,16,12)
(15,11,17,16)
(15,11,17,16,12)
Error
20 questions
MS Excel
Quiz
•
11th Grade - University
20 questions
Kelas 8 - Halaman 10 (UH Bab 1)
Quiz
•
8th Grade - University
20 questions
Kelas 9 - Halaman 23 (UH Bab 1)
Quiz
•
9th Grade - University
20 questions
KUIS RUMUS DAN FUNGSI
Quiz
•
11th Grade
24 questions
RETURN 15-БӨЛІМ
Quiz
•
11th Grade
25 questions
Ujian Kompetensi Skakes Airlangga
Quiz
•
9th - 12th Grade
20 questions
Kuis Ms Word 1
Quiz
•
7th Grade - University
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON
Quiz
•
10th Grade - University
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