Skip to main content
Chapter 10 of 11
Flashcards

Tuples and Dictionaries

CBSE · Class 11 · Computer Science

Flashcards for Tuples and Dictionaries — CBSE Class 11 Computer Science. Quick Q&A cards covering key concepts, definitions, and formulas.

42 questions22 flashcards5 concepts
22 Flashcards
Card 1Tuple Basics

What is a tuple in Python and how do you create one?

Answer

A tuple is an ordered sequence of elements of different data types (integer, float, string, list, or even another tuple). Elements are enclosed in parentheses () and separated by commas. Example: tupl

Card 2Tuple Properties

What is the main difference between lists and tuples in terms of mutability?

Answer

Lists are mutable (can be changed after creation) while tuples are immutable (cannot be changed after creation). Example: list1[0] = 10 works, but tuple1[0] = 10 gives TypeError. This makes tuples fas

Card 3Tuple Operations

How do you access elements in a tuple? Give examples with both positive and negative indexing.

Answer

Elements are accessed using indexing starting from 0. Positive indexing: tuple1[0] (first element), tuple1[3] (fourth element). Negative indexing: tuple1[-1] (last element), tuple1[-2] (second last el

Card 4Tuple Operations

What happens when you try to concatenate two tuples using the + operator?

Answer

The + operator joins two tuples to create a new tuple containing all elements from both tuples in order. Example: tuple1 = (1,3,5) and tuple2 = (2,4,6), then tuple1 + tuple2 = (1,3,5,2,4,6). The origi

Card 5Tuple Operations

Explain tuple repetition with the * operator and provide an example.

Answer

The * operator repeats tuple elements a specified number of times. Syntax: tuple * n (where n is integer). Example: tuple1 = ('Hello', 'World'), then tuple1 * 3 = ('Hello', 'World', 'Hello', 'World',

Card 6Tuple Operations

How do membership operators (in and not in) work with tuples?

Answer

The 'in' operator returns True if element exists in tuple, False otherwise. The 'not in' operator returns True if element doesn't exist, False if it exists. Example: For tuple1 = ('Red', 'Green', 'Blu

Card 7Tuple Operations

What is tuple slicing and how does it work? Provide syntax and examples.

Answer

Tuple slicing extracts a portion of tuple using [start:end:step] syntax. Examples: tuple1 = (10,20,30,40,50), tuple1[1:4] = (20,30,40), tuple1[:3] = (10,20,30), tuple1[2:] = (30,40,50), tuple1[::2] =

Card 8Tuple Methods

List the built-in functions that work with tuples: len(), max(), min(), sum(), sorted()

Answer

len(tuple): returns number of elements. max(tuple): returns largest element. min(tuple): returns smallest element. sum(tuple): returns sum of numeric elements. sorted(tuple): returns new sorted list f

+14 more flashcards available

Practice All

Get detailed flashcards for Tuples and Dictionaries

Super Tutor gives you interactive content for every chapter of CBSE Class 11 Computer Science — summaries, quizzes, flashcards, and more.

Try Super Tutor — It's Free

Frequently Asked Questions

What are the important topics in Tuples and Dictionaries for CBSE Class 11 Computer Science?

Tuples and Dictionaries covers several key topics that are frequently asked in CBSE Class 11 board exams. Focus on the core concepts listed on this page and practise related questions to build confidence.

Start by understanding all key concepts. Practise previous year questions from this chapter. Revise formulas and definitions regularly. Use flashcards for quick revision before the exam.

There are 22 flashcards for Tuples and Dictionaries covering key definitions, formulas, and concepts. Use them daily for 10–15 minutes for best results.

Sources & Official References

Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.