Quiz on Python Tuples
FREE Online Courses: Elevate Skills, Zero Cost. Enroll 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 not a feature of a tuple?
CorrectIncorrect -
Question 2 of 15
2. Question
- Which of the following functions and methods cannot be applied to tuples?
CorrectIncorrect -
Question 3 of 15
3. Question
- Choose the cases where we can use tuples?
CorrectIncorrect -
Question 4 of 15
4. Question
- Which of the following represent an empty and a tuple with single element respectively?
CorrectIncorrect -
Question 5 of 15
5. Question
What will be the output of the following code?
tup=(1,’t’,8.5,6,’y’,True)
tup[:-2]CorrectIncorrect -
Question 6 of 15
6. Question
Which of the following give the output as the number y if
tup=(1,’t’,8.5,6,’y’,True)?
CorrectIncorrect -
Question 7 of 15
7. Question
- Which of the following is an advantage of a tuple over a list?
CorrectIncorrect -
Question 8 of 15
8. Question
What will be the output of the following code?
tup=(‘a’,)
tup*3CorrectIncorrect -
Question 9 of 15
9. Question
- Which of the following is a correct way to add elements to a tuple at the end of the tuple?
CorrectIncorrect -
Question 10 of 15
10. Question
What will be the output of the following code?
tup1=(1,2,3,5)
tup2=(1,2,4,1)print(tup1<tup2,end=” “)
print(tup1[:-2]==tup2[:-2])
CorrectIncorrect -
Question 11 of 15
11. Question
- Which of the following codes give an error on operating on tup=(1,2,’3′,4,’5′)?
CorrectIncorrect -
Question 12 of 15
12. Question
What will be the output of the following code?
tup=(1,’t’,’s’,3,5,8,1.0,4,’l’,[1])
tup.count(1)CorrectIncorrect -
Question 13 of 15
13. Question
Which of the following coding snippet do not give any error on executing?
a.
tup=(1,4,2,y,8.4)
tup[1]
b.
tup=(3,’t’,6,9.0,3)
tup[5]
c.
tup=(‘True’,4.3,6,9,1.2)
tup[3:3]
CorrectIncorrect -
Question 14 of 15
14. Question
- Which of the following is a correct way to find the maximum value of the elements of the tuple named ‘tup’?
CorrectIncorrect -
Question 15 of 15
15. Question
What will be the output of the following code?
tup=(1,2,[3,4],(5),{6,7,8})
tup[3][0]CorrectIncorrect