Quiz on Tuples vs Lists
FREE Online Courses: Click for Success, Learn for Free - Start Now!
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 15
1. Question
- Which of the following is a property of a list but not a tuple?
CorrectIncorrect -
Question 2 of 15
2. Question
- Which of the following operations can be applied to tuples?
CorrectIncorrect -
Question 3 of 15
3. Question
- Which of the following is not true about lists?
CorrectIncorrect -
Question 4 of 15
4. Question
- Which of the following is not true about tuple?
CorrectIncorrect -
Question 5 of 15
5. Question
What is the type of the following variable?
var=(4)
CorrectIncorrect -
Question 6 of 15
6. Question
What is the output of the following code?
var=[1,2,3,4,5,6]
var[-4:-1]CorrectIncorrect -
Question 7 of 15
7. Question
Which of the following execute without an error if
var=[‘a’,’e’,’i’,’o’,’u’]
var1=(‘a’,’e’,’i’,’o’,’u’)?
CorrectIncorrect -
Question 8 of 15
8. Question
- Which of the following is an advantage of tuples over lists.
CorrectIncorrect -
Question 9 of 15
9. Question
What is the output of the following code?
var=[[1,2,3],[4,5,6,7]]
print(var[-1][3])CorrectIncorrect -
Question 10 of 15
10. Question
What is the output of the following code?
var=((1,2,3),(4,5,6,7))
print(var[0][3])CorrectIncorrect -
Question 11 of 15
11. Question
Which of the following gives an error if
seq1=[1,2,3,4,5]
seq2=(1,2,3,4,5)
CorrectIncorrect -
Question 12 of 15
12. Question
What is the output of the following code?
seq=([‘a’,’y’,’l’],[‘t’,’o’],[‘e’,’w’,’n’])
seq1=[(‘a’,’y’,’l’),(‘t’,’o’),(‘e’,’w’,’n’)]print(seq[1],end=” “)
print(seq1[-3])CorrectIncorrect -
Question 13 of 15
13. Question
- Which of the following is a way to add ‘y’ to the sequence seq=(‘r’,5,’y’,8)?
CorrectIncorrect -
Question 14 of 15
14. Question
What is the output of the following code?
tuple(“PythonGeeks”)
CorrectIncorrect -
Question 15 of 15
15. Question
Which of the following gives the output as 3 if
seq1=[1,3,5,3,5,7,3,0]
seq2=(1,3,5,3,5,7,3,0)
CorrectIncorrect