Tuples in Python Class 11 MCQ

Teachers and Examiners (CBSESkillEduction) collaborated to create the Tuples in Python Class 11 MCQ. All the important Information are taken from the NCERT Textbook Computer Science (083) class 11.

Tuples in Python Class 11 MCQ

1. A ________ is an ordered sequence of elements of different data types, such as integer, float, string or list.
a. Tuple 
b. Dictionaries
c. List
d. None of the above

Show Answer ⟶
a. Tuple

2. Elements of a tuple are enclosed in ________ and are separated by ________.
a. Parenthesis and commas 
b. Curly Brackets and commas
c. Both a) and b)
d. None of the above

Show Answer ⟶
a. Parenthesis and commas

3. In Tuple, If we assign the value without comma it is treated as ________.
a. Integer 
b. String
c. Decimal
d. None of the above

Show Answer ⟶
a. Integer

4. In Tuple, Sequence without parenthesis is treated as _________.
a. Tuple Error
b. Tuple by default 
c. Both a) and b)
d. None of the above

Show Answer ⟶
b. Tuple by default

5. Elements of a tuple can be accessed in the same way as a list or string using ________.
a. Indexing
b. Slicing
c. Both a) and b) 
d. None of the above

Show Answer ⟶
c. Both a) and b)

6. Tuple is __________ data types.
a. Immutable
b. Mutable
c. Both a) and b) 
d. None of the above

Show Answer ⟶
c. Both a) and b)

7. Immutable means __________.
a. Tuple cannot be changed after it has been created 
b. Tuple can be changed after it has been created
c. Both a) and b)
d. None of the above

Show Answer ⟶
a. Tuple cannot be changed after it has been created

8. Python allows us to join tuples using __________ operator.
a. Assignment
b. Concatenation 
c. Repetition
d. None of the above

Show Answer ⟶
b. Concatenation

9. ________ operator can also be used for extending an existing tuple.
a. Assignment
b. Concatenation 
c. Repetition
d. None of the above

Show Answer ⟶
b. Concatenation

11. Concatenation operator depicted by symbol ________.
a. –
b. *
c. + 
d. /

Show Answer ⟶
c. +

12. Repetition operation is depicted by the symbol ________.
a. –
b. * 
c. +
d. /

Show Answer ⟶
b. *

13. ______ operator help to repeat elements of a tuple.
a. Assignment
b. Concatenation
c. Repetition 
d. None of the above

Show Answer ⟶
c. Repetition

14. In python, the repetition operator requires the first operand to be a tuple and the second operand to be _________ only.
a. String
b. Decimal
c. Integer 
d. None of the above

Show Answer ⟶
c. Integer

15. The ________ operator checks if the element is present in the tuple.
a. In 
b. Not in
c. Out
d. Not Out

Show Answer ⟶
a. In

16. The ________ operator returns True if the element is not present in the tuple, else it returns False.
a. In
b. Not in 
c. Out
d. Not Out

Show Answer ⟶
b. Not in

17. _________ returns the length or the number of elements of the tuple.
a. tuple()
b. len() 
c. count()
d. index()

Show Answer ⟶
b. len()

18. ________ returns the number of times the given element appears in the tuple
a. tuple()
b. len()
c. count() 
d. index()

Show Answer ⟶
c. count()

19. _________ returns the index of the first occurrence of the element in the given tuple.
a. tuple()
b. len()
c. count()
d. index() 

Show Answer ⟶
d. index()

20. ________ returns minimum or smallest element of the tuple.
a max()
b. min() 
c. sum()
d. None of the above

Show Answer ⟶
b. min()

21. ________ returns maximum or largest element of the tuple.
a max() 
b. min()
c. sum()
d. None of the above

Show Answer ⟶
a max()

22. _________ returns sum of the element of the tuple.
a max()
b. min()
c. sum() 
d. None of the above

Show Answer ⟶
c. sum()

23. A tuple inside another tuple is called a _______.
a. Tuple Leader
b. Nested Tuple 
c. Inner Tuple
d. None of the above

Show Answer ⟶
b. Nested Tuple

24. In python, tuples values are enclosed in _______.
a. Curly brackets
b. Parenthesis 
c. Square brackets
d. None of the above

Show Answer ⟶
b. Parenthesis

25. What will be the output of the following code.
str = tuple(“Python”)
print(tuple)
a. [‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’]
b. (‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’) 
c. Python
d. None of the above

Show Answer ⟶
b. (‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’)

26. Which of the following is not a function of tuple?
a. sum()
b. max()
c. min()
d. delete() 

Show Answer ⟶
d. delete()

27. Which of the following belong to tuple?
a. Elements are enclosed in Parenthesis
b. Tuple is immutable
c. Tuple is a sequence data types
d. All of the above 

Show Answer ⟶
d. All of the above

28. Which of the following is the correct syntax to declare tuple?
a. t = 1,2,3
b. t = (‘a’,’b’,’c’)
c. t = (1,2,3)
d. All of the above 

Show Answer ⟶
d. All of the above

29. How you can delete tuple with single element?
a. t = 1,
b. t = (1,)
c. Both a) and b) 
d. t = [1]Show Answer ⟶

c. Both a) and b)

30. What will be the output of the following code.
t = (30)
type(t)
a. <class ‘float’>
b. <class ‘string’>
c. <class ‘int’> 
d. None of the above

Show Answer ⟶
c. <class ‘int’>

31. What will be the output of the following code.
t1 = (‘Computer’, ‘Science’)
t2 = (85, 65)
print(t1+t2)
a. (‘Computer’, ‘Science’, 85, 65) 
b. [‘Computer’, ‘Science’, 85, 65]
c. {‘Computer’, ‘Science’, 85, 65}
d. None of the above

Show Answer ⟶
a. (‘Computer’, ‘Science’, 85, 65)

32. Which of the following operator is used to replicate a tuple?
a. Modular
b. Exponent
c. Addition
d. Multiplication 

Show Answer ⟶
d. Multiplication

33. What will be the output of the following code.
t = (‘1’, ‘2’, ‘3’)
print(tuple(“Python”) + t)
a. [‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’, ‘1’, ‘2’, ‘3’]
b. (‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’, ‘1’, ‘2’, ‘3’) 
c. {‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’, ‘1’, ‘2’, ‘3’}
d. None of the above

Show Answer ⟶
b. (‘P’, ‘y’, ‘t’, ‘h’, ‘o’, ‘n’, ‘1’, ‘2’, ‘3’)

34. Which of the following python function returns the length of tuple?
a. len() 
b. length()
c. leng()
d. None of the above

Show Answer ⟶
a. len()

35. What will be the output of the following code.
t1 = (1, 2, 3)
t2 = (4, 5, 6)
print(t1==t2)
a. True
b. False 
c. No Output
d. None of the above

Show Answer ⟶
b. False

36. What will be the output of the following code.
t1 = (1, 2, 3)
t2 = (1, 2, 3)
print(t1 == t2)
a. True 
b. False
c. No Output
d. None of the above

Show Answer ⟶
a. True

37. Which of the following function is used to delete the tuple name.
a. del 
b. delete
c. remove
d. None of the above

Show Answer ⟶
a. del

38. What will be the output of the following code.
t = (1, 2, 3, 4, 5)
print(max(t))
a. 1
b. 2
c. 4
d. 5 

Show Answer ⟶
d. 5

39. What will be the output of the following code.
t = (1, 2, 3, 4, 5)
print(min(t))
a. 1 
b. 2
c. 4
d. 5

Show Answer ⟶
a. 1

40. What will be the output of the following code.
t = (1, 2, 3, 4, 5)
print(sum(t))
a. 11 
b. 12
c. 14
d. 15 

Show Answer ⟶
d. 15

41. In tuple, which function is used to return the frequency of particular elements.
a. count() 
b. max()
c. min()
d. sum()

Show Answer ⟶
a. count()

42. Which of the following operation used in tuples?
a. Repetition
b. Concatenation
c. Slicing
d. All of the above 

Show Answer ⟶
d. All of the above

43. What will be the output of the following code.
t = (‘Computer’, ‘Science’)
print(max(t))
a. Computer
b. Science 
c. No Output
d. None of the above

Show Answer ⟶
b. Science

44. What will be the output of the following code.
t = (1, 2, 3)
print(t[1:3])
a. (1, 2)
b. (2, 3) 
c. (1, 3)
d. None of the above

Show Answer ⟶
b. (2, 3)

45. What will be the output of the following code.
t = (1, 2, 3)
print(t[1:-1])
a. (1, )
b. (2, ) 
c. (3, )
d. None of the above

Show Answer ⟶
b. (2, )

46. What will be the output of the following code.
t1 = (1, 2, 3)
t2 = (3, 2, 1)
print(t1>t2)
a. True
b. False 
c. No Output
d. None of the above

Show Answer ⟶
b. False

47. What will be the output of the following code.
t = (1, 2, 3)
print(sum(t, 3))
a. 3
b. 6
c. 9 
d. No Output

Show Answer ⟶
c. 9

48. What will be the output of the following code.
t1 = (1, 2)
t2 = 2 * t1
print(t2)
a. (1, 2, 1, 2) 
b. (1, 2, 2, 2)
c. (1, 1, 1, 2)
d. None of the above

Show Answer ⟶
a. (1, 2, 1, 2)

49. What will be the output of the following code.
t = (1, 2) * 3
print(t)
a. [1, 2, 1, 2, 1, 2]
b. (1, 2, 1, 2, 1, 2) 
c. {1, 2, 1, 2, 1, 2}
d. Error

Show Answer ⟶
b. (1, 2, 1, 2, 1, 2)

50. What will be the output of the following code.
t1 = (1,2,3)
t2 = slice(1,2)
print(t1[t2])
a. (1, )
b. (2, ) 
c. (3, )
d. None of the above

Show Answer ⟶
b. (2, )
Computer Science Class 11 Notes
Computer Science Class 11 MCQ
Computer Science Class 11 NCERT Solutions

Computer Science Class 11 Practical Questions and Answers

error: Content is protected !!