TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Lists, Tuples, Sets and Dictionary: Online Practice Test

Share this chapter: Telegram

Pick how many questions you want and set a time limit, then start. You'll get your score at the end with the correct answer and an explanation for every question. Free, in Tamil and English — 27 questions available.

Set up your test

Time remaining00:00
Q1
Pick odd one in connection with collection data type
Q2
Let list1=[2, 4, 6, 8, 10], then print(list1[-2]) will result in
Q3
Which of the following function is used to count the number of elements in a list?
Q4
If List=[10, 20, 30, 40, 50] then List[2]=35 will result
Q5
If List=[10, 20, 30, 40, 50] then List.append(32) will result
Q6
Which of the following Python function can be used to add more than one element within an existing list?
Q7
What will be the result of the following Python code? S=[x**2 for x in range(5)] print(S)
Q8
What is the use of type() function in python?
Q9
Which of the following statement is not correct?
Q10
Let setA = {3,6,9}, setB = {1,3,9}. What will be the result of the following snippet? print(setA|setB)
Q11
Which of the following set operation includes all the elements that are in two sets but not the one that are common to two sets?
Q12
The keys in Python dictionary are specified by
Q13
Which of the following Python methods can be used to duplicate all items of a list into a new list without modifying the original list?
Q14
If a Python list is defined as MyList = [2, 10, 15, 20, 10], what will be the output of MyList.index(10)?
Q15
In Python, creating a tuple with a single element is called a "Singleton" tuple. Which of the following is the correct way to define a singleton tuple with the value 50?
Q16
Which of the following statement is true regarding the execution speed of iterating over Tuples compared to Lists in Python?
Q17
Consider the Python expression: S = [x**3 for x in range(1, 5) if x % 2 == 0]. What will be the final contents of the list S?
Q18
What will be the output when the following Python code is executed? S1 = {10, 20, 30} S2 = {20, 30, 40} print(S1 ^ S2)
Q19
Which Python list function removes all the elements of a list but retains the empty list structure itself?
Q20
What is the output of the following dictionary deletion operation? Dict = {'Reg_No': '1221', 'Name': 'Tamilselvi'} Dict.clear() print(Dict)
Q21
Which of the following set operations is correctly paired with its corresponding Python operator?
Q22
If a Python list is Numbers = [10, 20, 30, 40, 50], what will be the result of the slice operation Numbers[-3:-1]?
Q23
Which of the following statement is correct about dictionary keys in Python?
Q24
What will be stored in x after executing the following Python code? MyTuple = (10, 20, 30) x = MyTuple + (40,)
Q25
Which Python function can convert a List or a Tuple into a Set, thereby eliminating duplicate elements?
Q26
What is the correct output when the following Python code is run? list1 = [5] * 3 print(list1)
Q27
Consider the following dictionary comprehension: Dict = {x: x * x for x in range(1, 4)}. What is the value of Dict[3]?

More for this chapter

Book Back Questions12 textbook MCQs · solved Additional MCQs15 extra MCQs · solved Book Back TestTest yourself on the textbook set Additional MCQ TestTest yourself on the extra set Study NotesConcepts & methods Formula SheetAll key formulas

About this Lists, Tuples, Sets and Dictionary test

This free online practice test covers Lists, Tuples, Sets and Dictionary from the 12th Standard Computer Science (Samacheer Kalvi) syllabus. Choose the number of questions and an optional time limit, then answer and submit — everything is checked in your browser, with the correct answers and a worked explanation shown at the end. For the full solutions to every question in this set, see the solved MCQs page.

More chapters in Computer Science

View all
1 Function 2 Data Abstraction 3 Scoping 4 Algorithmic Strategies 5 Python -Variables and Operators 6 Control Structures 7 Python functions 8 Strings and String manipulation 10 Python Classes and objects 11 Database Concepts 12 Structured Query Language (SQL) 13 Python and CSV files 14 Importing C++ programs in Python. 15 Data manipulation through SQL 16 Data visualization using pyplot: line chart, pie chart and bar chart