CBSE Class 11 Computer Science — NCERT Solutions
CBSE Class 11 Computer Science NCERT solutions, chapter by chapter — 203 textbook questions solved across 11 chapters. Follows the CBSE syllabus.
About these solutions
203 NCERT textbook questions for CBSE Class 11 Computer Science, solved step by step across 11 chapters. Each chapter page has every exercise: half the solutions are open to read and the rest are free with a Super Tutor account.
Computer System
22 questions solved
- Exercise · 14 questions
- Explore Yourself · 8 questions
Q1.Name the software required to make a computer functional. Write down its two primary services.
Given: We need to identify the software that makes a computer functional and state its two primary services.
Answer:
The software required to make a computer functional is the Operating System (OS).
Examples: Windows, Linux, macOS, Ubuntu.
Two Primary Services of an Operating System:
- Process Management: The operating system manages the execution of processes (programs in execution). It schedules processes, allocates CPU time, and ensures that multiple processes can run efficiently without conflict.
- Memory Management: The operating system manages the primary (main) memory of the computer. It keeps track of each memory location — whether it is free or occupied — and allocates/deallocates memory to processes as needed, ensuring maximum utilisation of available memory.
Q2.How does the computer understand a program written in high level language?
Given: A program is written in a high-level language (e.g., Python, C++, Java).
Concept: A computer can only understand machine code (binary language — 0s and 1s). It cannot directly understand high-level language instructions.
Answer:
A program written in a high-level language (called source code) must be translated into machine code (binary code) before the computer can execute it. This translation is done by special system software called translators, which are of the following types:
- Compiler: Translates the entire source code into machine code at once, producing an executable file. The compiled machine code can then be executed directly by the CPU.
- Interpreter: Translates and executes the source code line by line, one statement at a time.
- Assembler: Converts assembly language code into machine code.
Thus, the computer understands a high-level language program only after it has been converted into machine code by a compiler or interpreter.
Encoding Schemes and Number System
17 questions solved
- EXERCISE — Encoding Schemes and Number System · 17 questions
Q1.Write base values of binary, octal and hexadecimal number system.
The base (radix) of a number system equals the total number of unique digits (symbols) it uses.
| Number System | Symbols Used | Base Value |
|---|---|---|
| Binary | 0, 1 | 2 |
| Octal | 0, 1, 2, 3, 4, 5, 6, 7 | 8 |
| Hexadecimal | 0–9, A, B, C, D, E, F | 16 |
- Binary base = 2
- Octal base = 8
- Hexadecimal base = 16
Q2.Give full form of ASCII and ISCII.
ASCII — American Standard Code for Information Interchange
ISCII — Indian Script Code for Information Interchange
ASCII is a 7-bit (or 8-bit extended) encoding scheme used to represent English characters and control characters. ISCII is an 8-bit encoding scheme developed to represent characters of Indian scripts.
Emerging Trends
17 questions solved
- Exercise — Emerging Trends (Computer Science Class 11) · 17 questions
Q1.List some of the cloud-based services that you are using at present.
Cloud-based services commonly used today include:
- Google Drive / OneDrive / Dropbox – Cloud storage for files, photos and documents.
- Gmail / Outlook – Web-based email services hosted on the cloud.
- Google Docs / Microsoft 365 – Online word processing, spreadsheets and presentations.
- YouTube / Netflix / Hotstar – Cloud-based video streaming platforms.
- Google Classroom / DIKSHA – Cloud-based e-learning platforms.
- WhatsApp / Telegram – Messaging apps that store media and chats on the cloud.
- iCloud / Google Photos – Automatic cloud backup of photos and contacts.
- Zoom / Google Meet – Cloud-based video conferencing services.
All these services allow users to access data and applications from any device connected to the internet, without needing local storage or processing power.
Q2.What do you understand by the Internet of Things? List some of its potential applications.
Internet of Things (IoT):
The Internet of Things (IoT) is a network of physical devices (things) embedded with sensors, software, and other technologies that enable them to connect and exchange data with other devices and systems over the internet — without requiring human-to-human or human-to-computer interaction.
Key idea: Everyday objects become 'smart' by being connected to the internet.
Potential Applications of IoT:
| Domain | Application |
|---|---|
| Smart Home | Smart lighting, smart locks, smart thermostats |
| Healthcare | Wearable health monitors, remote patient monitoring |
| Agriculture | Soil moisture sensors, automated irrigation systems |
| Transportation | GPS vehicle tracking, smart traffic management |
| Smart Cities | Smart parking, waste management, smart street lights |
| Education | Smart classrooms, e-attendance using wearables |
| Retail | Inventory tracking, smart shelves |
| Industry | Predictive maintenance of machines (Industrial IoT) |
Thus, IoT connects the physical world to the digital world, enabling automation and real-time monitoring across virtually every sector.
Introduction to Problem Solving
18 questions solved
- EXERCISE — Chapter 4: Introduction to Problem Solving · 18 questions
Q1.Write pseudocode that reads two numbers and divide one by another and display the quotient.
Given: Two numbers are to be read; one is divided by the other and the quotient is displayed.
Concept: Sequential algorithm with input, process, and output steps.
Pseudocode:
BEGIN
READ num1, num2
IF num2 ≠ 0 THEN
quotient ← num1 / num2
PRINT quotient
ELSE
PRINT "Division by zero is not allowed"
END IF
ENDExplanation:
num1andnum2are the two numbers entered by the user.- Before dividing, we check that the divisor (
num2) is not zero to avoid an undefined operation. - The result is stored in
quotientand then printed.
Getting Started with Python
22 questions solved
- Exercise — Getting Started with Python · 22 questions
Q1.Which of the following identifier names are invalid and why?
i. Serial_no.
ii. 1st_Room
iii. Hundred$
iv. Total Marks
v. Total_Marks
vi. total-Marks
vii. Percentage
viii. True
Rules for valid Python identifiers:
- Must begin with a letter (A–Z or a–z) or an underscore (_).
- Can contain letters, digits (0–9), and underscores only.
- Cannot be a Python keyword.
- No spaces or special characters allowed.
i. Serial_no. — Invalid. Contains a dot (.), which is not allowed in an identifier.
ii. 1st_Room — Invalid. Starts with a digit (1), which is not permitted.
**iii. Hundred), which is not allowed.
iv. Total Marks — Invalid. Contains a space, which is not allowed.
v. Total_Marks — Valid. Starts with a letter and contains only letters and an underscore.
vi. total-Marks — Invalid. Contains a hyphen (-), which is not allowed (it is interpreted as the minus operator).
vii. Percentage — Valid. Starts with a letter and contains only letters.
viii. True — Invalid. True is a reserved keyword in Python and cannot be used as an identifier.
Flow of Control
16 questions solved
- Exercise · 5 questions
- Programming Exercises · 10 questions
- Case Study-based Questions · 1 question
Q1.What is the difference between else and elif construct of if statement?
Given: Two constructs of the if statement — else and elif.
Concept: Both are used with the if statement for decision making, but they serve different purposes.
| Feature | else | elif |
|---|---|---|
| Full form | else | else if |
| Condition | Does not take any condition | Takes a condition to test |
| Purpose | Executes when the if (and all preceding elif) conditions are False | Executes when its own condition is True and all previous conditions are False |
| Number of times used | Only once at the end of an if block | Can be used multiple times |
| Alternative | Provides a single alternative | Provides multiple alternatives |
Example:
# Using else
x = 5
if x > 10:
print("Greater than 10")
else:
print("Not greater than 10") # This executes
# Using elif
marks = 75
if marks >= 90:
print("Grade A")
elif marks >= 75:
print("Grade B") # This executes
elif marks >= 60:
print("Grade C")
else:
print("Grade D")Conclusion: else provides one alternative when the if condition is False, whereas elif allows checking multiple conditions in sequence.
Functions
27 questions solved
- Exercise · 12 questions
- Activity-based Questions · 5 questions
- Suggested Lab Exercises · 8 questions
- Case Study-based Questions · 2 questions
Q1a.Observe the following program carefully, and identify the error:
def create (text, freq):
for i in range (1, freq):
print text
create(5) #function call
Errors identified:
print text— In Python 3,printis a function and must be called with parentheses. It should beprint(text).
create(5)— The functioncreateis defined with two parameters (textandfreq), but the function call passes only one argument. It should be something likecreate("Hello", 5).
range(1, freq)— This will printtextonlyfreq - 1times (from 1 to freq-1). If the intent is to printfreqtimes, it should berange(1, freq+1)orrange(freq).
Corrected Code:
def create(text, freq):
for i in range(1, freq + 1):
print(text)
create("Hello", 5) # function callStrings
7 questions solved
- Exercise · 2 questions
- Programming Problems · 5 questions
Q1.Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operations:
i. print(mySubject[0:len(mySubject)])
ii. print(mySubject[-7:-1])
iii. print(mySubject[::2])
iv. print(mySubject[len(mySubject)-1])
v. print(2*mySubject)
vi. print(mySubject[::-2])
vii. print(mySubject[:3] + mySubject[3:])
viii. print(mySubject.swapcase())
ix. print(mySubject.startswith('Comp'))
x. print(mySubject.isalpha())
Given: mySubject = "Computer Science"
The string has 16 characters (indices 0 to 15).
i. print(mySubject[0:len(mySubject)])
len(mySubject) = 16, so mySubject[0:16] returns the entire string.
Output:
Computer Scienceii. print(mySubject[-7:-1])
Negative index corresponds to index (character S) and corresponds to index (exclusive), so characters at indices 9 to 14 are returned: S, c, i, e, n, c.
Output:
Scienciii. print(mySubject[::2])
Slice with step 2 picks every alternate character starting from index 0:
- Indices: 0(
C), 2(m), 4(u), 6(e), 8(), 10(c), 12(e), 14(c)
Output:
Cmue ceiv. print(mySubject[len(mySubject)-1])
len(mySubject) - 1 = 15, so mySubject[15] = 'e' (last character).
Output:
e**v. print(2*mySubject)**
The * operator repeats the string 2 times.
Output:
Computer ScienceComputer Sciencevi. print(mySubject[::-2])
Slice with step starts from the last character (index 15) and moves backwards picking every alternate character:
- Indices: 15(
e), 13(n), 11(i), 9(S), 7(r), 5(t), 3(p), 1(o)
Output:
eniSrtpovii. print(mySubject[:3] + mySubject[3:])
mySubject[:3] = "Com" and mySubject[3:] = "puter Science". Concatenating them gives back the full string.
Output:
Computer Scienceviii. print(mySubject.swapcase())
swapcase() converts uppercase letters to lowercase and vice versa.
C→c,o→O,m→M,p→P,u→U,t→T,e→E,r→R, space stays,S→s,c→C,i→I,e→E,n→N,c→C,e→E
Output:
cOMPUTER sCIENCEix. print(mySubject.startswith('Comp'))
startswith() returns True if the string starts with the given prefix. "Computer Science" does start with "Comp".
(Note: The question has a typo startsworth; the correct method is startswith.)
Output:
Truex. print(mySubject.isalpha())
isalpha() returns True only if all characters are alphabetic. "Computer Science" contains a space, so it returns False.
Output:
FalseLists
22 questions solved
- Exercise · 12 questions
- Programming Problems · 10 questions
Q1(i).What will be the output of the following statements?
list1 = [12,32,65,26,80,10]
list1.sort()
print(list1)
Given: A list list1 = [12,32,65,26,80,10]
Concept: list1.sort() sorts the list in-place in ascending order and modifies the original list.
Working:
- Original list:
[12, 32, 65, 26, 80, 10] - After
list1.sort(): elements are arranged in ascending order →[10, 12, 26, 32, 65, 80] print(list1)prints the modified list.
Output:
[10, 12, 26, 32, 65, 80]Tuples and Dictionaries
14 questions solved
- Exercise · 8 questions
- Programming Problems · 5 questions
- Case Study-Based Question (SMIS System) · 1 question
Q1.Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statements:
i. print(tuple1.index(45))
ii. print(tuple1.count(45))
iii. print(tuple1 + tuple2)
iv. print(len(tuple2))
v. print(max(tuple1))
vi. print(min(tuple1))
vii. print(sum(tuple2))
viii. print(sorted(tuple1)) then print(tuple1)
Given:
i. print(tuple1.index(45))
The index() method returns the index of the first occurrence of the given element.
In tuple1, 45 first appears at index 2 (0-based indexing).
ii. print(tuple1.count(45))
The count() method returns the number of times the element appears in the tuple.
45 appears at indices 2, 4, and 7 — a total of 3 times.
iii. print(tuple1 + tuple2)
The + operator concatenates two tuples.
iv. print(len(tuple2))
The len() function returns the number of elements in the tuple.
tuple2 has 2 elements: 100 and 200.
v. print(max(tuple1))
The max() function returns the largest element.
Elements of tuple1: 23, 1, 45, 67, 45, 9, 55, 45. The maximum is 67.
vi. print(min(tuple1))
The min() function returns the smallest element.
Elements of tuple1: 23, 1, 45, 67, 45, 9, 55, 45. The minimum is 1.
vii. print(sum(tuple2))
The sum() function returns the sum of all elements.
viii. print(sorted(tuple1)) then print(tuple1)
The sorted() function returns a new sorted list from the tuple elements; the original tuple remains unchanged.
Sorted elements of tuple1 in ascending order: 1, 9, 23, 45, 45, 45, 55, 67.
Output of print(sorted(tuple1)): [1, 9, 23, 45, 45, 45, 55, 67]
Output of print(tuple1): (23, 1, 45, 67, 45, 9, 55, 45)Societal Impact
21 questions solved
- Exercise — Societal Impact (Chapter 11) · 21 questions
Q1.After practicals, Atharv left the computer laboratory but forgot to sign off from his email account. Later, his classmate Revaan started using the same computer. He is now logged in as Atharv. He sends inflammatory email messages to few of his classmates using Atharv's email account. Revaan's activity is an example of which of the following cyber crime? Justify your answer.
a) Hacking
b) Identity theft
c) Cyber bullying
d) Plagiarism
Correct Answer: (b) Identity theft
Justification:
- Identity theft means using someone else's personal information (such as login credentials, email account, etc.) without their permission to impersonate them or carry out activities in their name.
- Revaan did not hack into Atharv's account by breaking any password or security system. He simply found the account already logged in and used it to send emails as if he were Atharv.
- By sending emails from Atharv's account, Revaan is pretending to be Atharv — this is a classic case of identity theft.
- It is not hacking (no security was broken), not plagiarism (no copying of content), and although the emails are inflammatory, the primary crime here is impersonating Atharv, i.e., identity theft.
Conclusion: Revaan's activity is an example of Identity Theft because he used Atharv's identity (email account) without authorisation to send messages, thereby misrepresenting himself as Atharv.
Get chapter-wise help for CBSE Class 11 Computer Science
Super Tutor gives you chapter summaries, revision notes, practice quizzes and flashcards, organised around the CBSE syllabus. Free to start.
Try Super Tutor freeFrequently Asked Questions
Where can I find CBSE Class 11 Computer Science NCERT Solutions?
This page has NCERT solutions for 11 chapters of CBSE Class 11 Computer Science for the 2026-27 session. Each chapter links to its own page with the full set.
How should I prepare for CBSE Class 11 Computer Science exams?
Go through the syllabus first, then work chapter by chapter: learn the ideas, practise questions, and revise with notes and flashcards. Leave time at the end to revise every chapter once more under timed conditions.
Are the CBSE Class 11 Computer Science NCERT Solutions free?
Half of the solutions on each chapter page are open to read. The rest are free with a Super Tutor account — signing up is free and needs no card.
Browse NCERT Solutions by Chapter
11 chapters
More Computer Science Resources
CBSE Class 11
Practice Quiz
Test yourself with quick quizzes
Important Questions
Exam-style questions with answers
Revision Notes
Key concepts and quick revision points
Formula Sheet
The formulas of each chapter in one place
Chapter Summary
Understand each chapter at a glance
Concept Maps
Diagrams showing how topics connect
Study Plan
Week-by-week preparation schedule
Flashcards
Quick-fire cards for active recall practice
Syllabus
Chapter list and the topics in each