Class 11 Computer Science | कम्प्यूटर विज्ञान
RBSE 2026–27 • Illustrated Digital Study Guide • Part 1
टीम शिक्षा जगत1. परीक्षा योजना
| इकाई | अंक |
|---|---|
| Computer Systems and Organisation (1–3) | 10 |
| Computational Thinking and Programming–1 (4–10) | 45 |
| Society, Law and Ethics (11) | 15 |
| Theory (3 घंटे 15 मिनट) | 70 |
| Practical (4 घंटे) | 30 |
विषय कोड 03। Programming का सैद्धांतिक अंकभार 64.29% है।
Chapter 1 — Computer System
कम्प्यूटर एक प्रोग्राम योग्य इलेक्ट्रॉनिक प्रणाली है जो डेटा ग्रहण, प्रसंस्करण, संग्रहण और परिणाम प्रदान करती है। गलत डेटा या निर्देश से गलत परिणाम (GIGO) प्राप्त हो सकता है।




| घटक | कार्य |
|---|---|
| ALU | गणितीय एवं तार्किक क्रियाएँ |
| CU | निर्देशों का नियंत्रण |
| Registers | अत्यंत तेज छोटे संग्रहण स्थान |
| Cache | औसत मेमोरी एक्सेस समय कम करना |
| Motherboard | घटकों का संयोजन |
| RAM slots | संगत RAM लगाना |
| PCIe | विस्तार कार्ड जोड़ना |
Instruction cycle: Fetch → Decode → Execute → Store (यदि आवश्यक)। Clock speed अकेले प्रदर्शन निर्धारित नहीं करती; architecture, cores, cache और workload भी महत्त्वपूर्ण हैं।
| Input | Output |
|---|---|
| Keyboard, Mouse, Scanner | Monitor, Printer |
| Microphone, Barcode reader, OMR, MICR | Speaker, Plotter |
| Touchscreen | Input और Output दोनों |
OCR चित्र में पाठ पहचानता है; OMR निर्धारित चिह्न पढ़ता है।
Evolution of Computers





Abacus → Pascaline → Difference Engine → Analytical Engine की परिकल्पना → इलेक्ट्रॉनिक कम्प्यूटर। Difference Engine गणितीय सारणियों हेतु था; Analytical Engine सामान्य प्रयोजन प्रोग्राम योग्य मशीन की परिकल्पना थी।
| पीढ़ी | प्रमुख तकनीक |
|---|---|
| प्रथम | Vacuum tubes |
| द्वितीय | Transistors |
| तृतीय | Integrated circuits |
| चतुर्थ | Microprocessors |
| पंचम | AI एवं उन्नत कम्प्यूटिंग (शैक्षणिक वर्गीकरण) |
Memory and Storage
Memory hierarchy: Registers → Cache → RAM → Secondary storage। RAM सामान्यतः volatile है; ROM non-volatile है। SRAM में नियमित refresh आवश्यक नहीं; DRAM में आवश्यक है। PROM, EPROM, EEPROM ROM के प्रकार हैं।





HDD में platter, spindle, actuator arm और read/write head होते हैं। SSD सामान्यतः flash memory आधारित है और उसमें गतिशील यांत्रिक भाग नहीं होते। कार्यरत HDD को न खोलें। Magnetic: HDD/tape; Optical: CD/DVD; Solid state: SSD/pen drive।
| इकाई | मान |
|---|---|
| Bit | 0 या 1 |
| Byte | 8 bits |
| KB / KiB | 1000 / 1024 bytes |
| MB / MiB | 10⁶ / 2²⁰ bytes |
| GB / GiB | 10⁹ / 2³⁰ bytes |
| TB / TiB | 10¹² / 2⁴⁰ bytes |
| PB / PiB | 10¹⁵ / 2⁵⁰ bytes |
परीक्षा में निर्धारित पुस्तक का 1024 आधारित convention ध्यान रखें। Data bus डेटा, address bus पता और control bus नियंत्रण संकेत ले जाती है। Microprocessor मुख्यतः CPU है; microcontroller में CPU, memory और peripherals एकीकृत होते हैं।
Data मूल तथ्य हैं; information अर्थपूर्ण संदर्भ में संसाधित डेटा है। Numeric, text, image, audio, video और Boolean इसके उदाहरण हैं। Data capture → storage → retrieval → deletion/archive; backup से recovery संभव हो सकती है, लेकिन हमेशा नहीं।
Software and Operating System
| प्रकार | उदाहरण |
|---|---|
| System software | OS, drivers, utilities |
| Application software | Browser, spreadsheet |
| Programming tools | IDE, debugger, assembler, compiler, interpreter |
Assembler assembly को machine code में बदलता है। Compiler source को target representation में बदलता है; interpreter runtime execution करता है। CPython bytecode का उपयोग करता है। Proprietary software में लाइसेंस आधारित प्रतिबंध होते हैं; open source में लाइसेंस के अनुसार अध्ययन, संशोधन और वितरण की अनुमति होती है। Freeware अनिवार्यतः open source नहीं। OS process, memory, file, device और security management करता है। GUI में icons और menus; CLI में text commands।
Boolean Logic
| A | B | AND | OR | NAND | NOR | XOR |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 |
NOT A = 1−A। De Morgan: NOT(AB)=NOT A OR NOT B; NOT(A+B)=NOT A AND NOT B। Identity A+0=A, A·1=A; absorption A+AB=A; distributive A(B+C)=AB+AC। NAND और NOR universal gates हैं। NAND(A,A)=NOT A; NAND(NAND(A,B),NAND(A,B))=AND; NAND(NAND(A,A),NAND(B,B))=OR। NOR के लिए द्वैत नियम लागू होते हैं।
A B
0
Chapter 2 — Number Systems
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
स्थानिक मान: digit × base की घात। (101101)₂ = 32+8+4+1=45। Decimal से अन्य base में क्रमिक भाग और शेषफल उलटे क्रम में पढ़ें। Binary से octal हेतु 3 bits तथा hex हेतु 4 bits के समूह बनाएँ।
| रूपांतरण | उत्तर |
|---|---|
| 110101₂ → decimal | 53 |
| 357₈ → decimal | 239 |
| 2AF₁₆ → decimal | 687 |
| 156₁₀ → binary | 10011100 |
| 156₁₀ → octal | 234 |
| 156₁₀ → hex | 9C |
| 11010110₂ → octal/hex | 326 / D6 |
| 2D5₁₆ → binary/decimal/octal | 1011010101 / 725 / 1325 |
| 101.101₂ → decimal | 5.625 |
Fractional भाग में ऋणात्मक घातें होती हैं। 0.375×2=0.75, 0.75×2=1.5, 0.5×2=1.0; अतः 0.011₂।
0
Encoding Schemes
ASCII 7-bit मानक है (128 codes)। ISCII भारतीय लिपियों के लिए 8-bit मानक है। Unicode code points निर्धारित करता है। UTF-8 में प्रति scalar value 1–4 bytes; UTF-32 में 4 bytes। Font और encoding अलग हैं।
| Character | Code point | UTF-8 |
|---|---|---|
| A | U+0041 | 41 |
| अ | U+0905 | E0 A4 85 |
| क | U+0915 | E0 A4 95 |
| € | U+20AC | E2 82 AC |
| 😀 | U+1F600 | F0 9F 98 80 |
Chapter 3 — Emerging Trends
AI, ML, NLP
AI बुद्धिमत्तापूर्ण कार्यों से संबंधित है। ML डेटा से पैटर्न सीखता है; deep learning बहुस्तरीय neural networks का उपयोग करता है। Training में सीखना, inference में नए input पर परिणाम। NLP मानव भाषा का विश्लेषण और निर्माण है। Generative AI का परिणाम सत्यापित करें।
Immersive experiences
VR आभासी वातावरण; AR वास्तविक परिवेश में डिजिटल सूचना जोड़ता है।
Robotics
Sensor स्थिति मापता है, controller निर्देश तय करता है, actuator कार्य करता है। प्रत्येक robot में AI आवश्यक नहीं।
Big Data and Analytics
Volume, Velocity, Variety, Veracity, Value पाँच विशेषताएँ हैं। Descriptive: क्या हुआ; Diagnostic: क्यों; Predictive: क्या हो सकता है; Prescriptive: क्या करना चाहिए।
IoT and WoT
IoT नेटवर्क से जुड़े भौतिक उपकरणों का डेटा संचार है। WoT web standards द्वारा interoperability बढ़ाता है। Smart city में traffic, water और lighting monitoring संभव है।
Cloud and Grid
Cloud में on-demand self-service, broad network access, resource pooling, rapid elasticity और measured service। IaaS infrastructure, PaaS development platform, SaaS तैयार software। Grid वितरित संसाधनों से बड़े गणनात्मक कार्य करता है।
Blockchain
Hash-linked blocks और साझा ledger; consensus एवं governance सुरक्षा में महत्त्वपूर्ण हैं। पूर्ण सुरक्षा की गारंटी नहीं।





अभ्यास एवं उच्चस्तरीय प्रश्न
8 MiB में bits?
67,108,864
256 फाइलें प्रत्येक 16 MiB?
4 GiB
16 address lines का byte-addressable space?
64 KiB
तीन inputs की truth table में पंक्तियाँ?
8
A XOR A?
0
AB+A(NOT B) सरल करें।
A
1289 octal क्यों नहीं?
8 और 9 मान्य नहीं।
A, अ और 😀 के UTF-8 bytes?
8 bytes
RGB #FF8000 का मान?
255,128,0
100 में 92 सही AI predictions?
92% accuracy; भविष्य की गारंटी नहीं।
विद्यालय में spreadsheet, RAM और SSD की भूमिका?
Application software, कार्यशील memory, दीर्घकालीन storage।
मिट्टी की नमी 48,40,29,21,35 का औसत?
34.6; काल्पनिक डेटा।
तैयार online editor, managed platform, virtual machine?
SaaS, PaaS, IaaS क्रमशः।
स्रोत: RBSE आधिकारिक पाठ्यक्रम 2026–27, विषय कोड 03; NCERT; Unicode। चित्रों के स्रोत ऊपर हैं; पुनर्प्रयोग से पहले व्यक्तिगत लाइसेंस सत्यापित करें।
Part 2 | Computational Thinking and Programming–1 (45 marks) तथा Societal Impact (15 marks)। उदाहरण Python 3 में हैं। सभी प्रदर्शित प्रोग्रामों के आउटपुट वास्तविक interpreter से प्राप्त किए गए हैं।
Chapter 4 — Introduction to Problem Solving
समस्या का विश्लेषण → Input/Output और सीमाएँ निर्धारित करना → Algorithm → Coding → Testing → Debugging। Algorithm स्पष्ट, सीमित, प्रभावी चरणों का क्रम है। Decomposition बड़ी समस्या को छोटी उपसमस्याओं में बाँटता है। Pseudocode भाषा-स्वतंत्र रूपरेखा है।
| Flowchart symbol | कार्य |
|---|---|
| Oval | Start/Stop |
| Parallelogram | Input/Output |
| Rectangle | Processing |
| Diamond | Decision |
| Arrow | Control flow |
औसत — Algorithm एवं Flowchart
START → Input a,b,c → s = a+b+c → avg = s/3 → Display avg → STOP
आयत क्षेत्रफल — Algorithm एवं Flowchart
START → Input l,w → area = l*w → Display area → STOP
तापमान परिवर्तन — Algorithm एवं Flowchart
START → Input C → F = C*9/5+32 → Display F → STOP
Algorithm verification: सामान्य, सीमा और असामान्य input पर expected output से तुलना करें। उदाहरण: सूची में खोज के लिए linear search अधिकतम n comparisons कर सकती है; sorted सूची में binary search कम comparisons कर सकती है (अतिरिक्त अवधारणा)।
Chapter 5 — Getting Started with Python
Python उच्चस्तरीय, case-sensitive, dynamically typed भाषा है। Interactive mode में >>> prompt पर निर्देश तुरंत चलाते हैं; Script mode में .py फाइल सहेजकर चलाते हैं। Python IDLE में File → New File, Save, Run Module (F5) का उपयोग करें।
Program 1 — Hello world
print() console पर परिणाम देता है।
print("Hello, World!")
वास्तविक Python Output
Hello, World!
| Token | उदाहरण |
|---|---|
| Keyword | if, def, return |
| Identifier | marks_1 |
| Literal | 12, 3.5, "India", True |
| Operator | +, ==, in |
| Punctuator | (), [], {}, :, , |
Python character set में Unicode text, digits, whitespace और विशेष चिह्न आते हैं। Identifier अंक से शुरू नहीं हो सकता और keyword नहीं हो सकता। # comment आरंभ करता है। Assignment में बाईं ओर target (l-value की शैक्षणिक अवधारणा) और दाईं ओर expression (r-value) होता है।
| Type | Example | Mutable? |
|---|---|---|
| int | 42 | No |
| float | 2.5 | No |
| complex | 2+3j | No |
| bool | True | No |
| str | "abc" | No |
| list | [1,2] | Yes |
| tuple | (1,2) | No |
| NoneType | None | No |
| dict | {"a":1} | Yes |
| Operator group | Examples |
|---|---|
| Arithmetic | + - * / // % ** |
| Relational | < <= > >= == != |
| Logical | not, and, or |
| Assignment | = |
| Augmented | += -= *= /= //= %= **= |
| Identity | is, is not |
| Membership | in, not in |
Precedence: parentheses, exponentiation, unary signs, multiplication/division/modulo, addition/subtraction, comparisons (identity और membership सहित), not, and, or। ** दाएँ से समूहित होता है। Expression मूल्य देता है; statement निर्देश है। input() string देता है। int(), float(), str() explicit conversion हैं; int+float में सामान्यतः float परिणाम implicit conversion का उदाहरण है।
Program 2 — Console input
a=int(input())
b=float(input())
print(a+b)
Sample input:
7 2.5
वास्तविक Python Output
9.5
Program 3 — Operators
print(17//5,17%5,2**3**2)
print(-7//3,int(-7/3))
वास्तविक Python Output
3 2 512 -3 -2
Program 4 — Identity and equality
a=[1,2]
b=[1,2]
c=a
print(a==b,a is b,a is c,2 in a)
वास्तविक Python Output
True False True True
Program 5 — Complex and Boolean
z=2+3j
print(z.real,z.imag,bool(0),bool("0"))
वास्तविक Python Output
2.0 3.0 False True
| Error | उदाहरण | सुधार |
|---|---|---|
| Syntax | if x > 0 | colon और block |
| Runtime | 10/0 | denominator जाँच |
| Logical | area = l+l | area = l*w |
Chapter 6 — Flow of Control
Sequential flow में निर्देश क्रम से चलते हैं। Selection में condition के अनुसार block चुना जाता है। Repetition में loop चलता है। Indentation block की सीमा तय करती है। range(start,stop,step) में stop शामिल नहीं होता। break निकटतम loop समाप्त करता है; continue वर्तमान iteration का शेष भाग छोड़ता है।
Program 6 — Positive difference
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
a,b=12,19
if a>b:
print(a-b)
else:
print(b-a)
वास्तविक Python Output
7
Program 7 — Sign of number
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
n=-4
if n>0:
print("Positive")
elif n==0:
print("Zero")
else:
print("Negative")
वास्तविक Python Output
Negative
Program 8 — Traffic signal
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
s="yellow"
if s=="red":
print("Stop")
elif s=="yellow":
print("Wait")
elif s=="green":
print("Go")
else:
print("Invalid")
वास्तविक Python Output
Wait
Program 9 — Largest of three
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
a,b,c=9,17,12
if a>=b and a>=c:
print(a)
elif b>=c:
print(b)
else:
print(c)
वास्तविक Python Output
17
Program 10 — Sum of series
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
s=0
for i in range(1,6):
s+=i*i
print(s)
वास्तविक Python Output
55
Program 11 — Factorial
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
n=5
f=1
for i in range(1,n+1):
f*=i
print(f)
वास्तविक Python Output
120
Program 12 — While digit sum
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
n=583
s=0
while n>0:
s+=n%10
n//=10
print(s)
वास्तविक Python Output
16
Program 13 — Reverse digits
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
n=1204
r=0
while n:
r=r*10+n%10
n//=10
print(r)
वास्तविक Python Output
4021
Program 14 — Prime check
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
n=29
prime=n>=2
for i in range(2,n):
if n%i==0:
prime=False
break
print(prime)
वास्तविक Python Output
True
Program 15 — Continue
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
for i in range(1,9):
if i%3==0:
continue
print(i,end=" ")
वास्तविक Python Output
1 2 4 5 7 8
Program 16 — Nested pattern
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
for i in range(1,5):
for j in range(i):
print("*",end="")
print()
वास्तविक Python Output
* ** *** ****
Program 17 — Fibonacci
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
a,b=0,1
for i in range(8):
print(a,end=" ")
a,b=b,a+b
वास्तविक Python Output
0 1 1 2 3 5 8 13
Program 18 — Multiplication table
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
for i in range(1,11):
print(7,"x",i,"=",7*i)
वास्तविक Python Output
7 x 1 = 7 7 x 2 = 14 7 x 3 = 21 7 x 4 = 28 7 x 5 = 35 7 x 6 = 42 7 x 7 = 49 7 x 8 = 56 7 x 9 = 63 7 x 10 = 70
Program 19 — While countdown
Loop अथवा selection के प्रत्येक चरण को कागज पर trace करें।
n=5
while n>0:
print(n,end=" ")
n-=1
वास्तविक Python Output
5 4 3 2 1
Chapter 7 — Functions
Function पुनः उपयोग योग्य code block है। def से परिभाषा, call से execution। Parameter definition में नाम है, argument call में दिया गया मान। Default parameter छोड़े गए argument का मान निर्धारित करता है। return function से बाहर आता है और value दे सकता है; बिना स्पष्ट return value के None मिलता है। Local scope function के भीतर, global scope module स्तर पर होता है।
Program 20 — Default parameter
def bill(price,qty=2):
return price*qty
print(bill(30),bill(30,4))
वास्तविक Python Output
60 120
Program 21 — String parameter
def greet(name):
return "Hello "+name.title()
print(greet("ravi"))
वास्तविक Python Output
Hello Ravi
Program 22 — Local scope
x=10
def f():
x=3
return x
print(f(),x)
वास्तविक Python Output
3 10
Program 23 — Global variable
x=2
def f():
global x
x+=3
f()
print(x)
वास्तविक Python Output
5
Program 24 — Math module
import math
print(math.pi,math.e)
print(math.sqrt(81),math.ceil(-2.7),math.floor(-2.7))
print(math.pow(2,3),math.fabs(-5))
print(math.sin(0),math.cos(0),math.tan(0))
वास्तविक Python Output
3.141592653589793 2.718281828459045 9.0 -2 -3 8.0 5.0 0.0 1.0 0.0
Program 25 — Random module
random के उदाहरण में reproducibility के लिए seed रखा गया है।
import random
random.seed(10)
print(random.random(),random.randint(1,6),random.randrange(2,10,2))
वास्तविक Python Output
0.5714025946899135 4 8
Program 26 — Statistics module
from statistics import mean,median,mode
a=[2,4,4,8]
print(mean(a),median(a),mode(a))
वास्तविक Python Output
4.5 4.0 4
math के trigonometric functions radians लेते हैं। random() का interval [0,1), randint(a,b) दोनों endpoints शामिल, randrange() में stop बाहर। Built-in functions जैसे len(), abs(), print() बिना import उपलब्ध हैं।
Chapter 8 — Strings
String immutable sequence है। Index 0 से शुरू, negative index अंत से। s[start:stop:step] में stop शामिल नहीं। + concatenation, * repetition, in membership।
| Function/method | Expression | Result |
|---|---|---|
| len(s) | len("abc") | 3 |
| capitalize | "hELLO".capitalize() | 'Hello' |
| title | "hello world".title() | 'Hello World' |
| lower | "ABC".lower() | 'abc' |
| upper | "abc".upper() | 'ABC' |
| count | "banana".count("a") | 3 |
| find | "abc".find("z") | -1 |
| index | "abc".index("b") | 1 |
| endswith | "file.py".endswith(".py") | True |
| startswith | "India".startswith("In") | True |
| isalnum | "A12".isalnum() | True |
| isalpha | "abc".isalpha() | True |
| isdigit | "123".isdigit() | True |
| islower | "abc".islower() | True |
| isupper | "ABC".isupper() | True |
| isspace | " ".isspace() | True |
| lstrip | " a ".lstrip() | 'a ' |
| rstrip | " a ".rstrip() | ' a' |
| strip | " a ".strip() | 'a' |
| replace | "banana".replace("a","o") | 'bonono' |
| join | "-".join(["a","b"]) | 'a-b' |
| partition | "a:b:c".partition(":") | ('a', ':', 'b:c') |
| split | "a b c".split() | ['a', 'b', 'c'] |
find() अनुपस्थित substring पर -1 देता है; index() ValueError। String methods सामान्यतः नया परिणाम लौटाते हैं; मूल string नहीं बदलती।
Program 27 — Slicing
s="COMPUTER"
print(s[1:6:2],s[::-1],s[-3:])
वास्तविक Python Output
OPT RETUPMOC TER
Program 28 — Vowel count
s="Education"
n=0
for ch in s.lower():
if ch in "aeiou":
n+=1
print(n)
वास्तविक Python Output
5
Program 29 — Palindrome
s="level"
print(s==s[::-1])
वास्तविक Python Output
True
Program 30 — Character classification
s="Ab 12!"
a=d=o=0
for ch in s:
if ch.isalpha(): a+=1
elif ch.isdigit(): d+=1
else: o+=1
print(a,d,o)
वास्तविक Python Output
2 2 2
Program 31 — Word count
s="Python is useful"
print(len(s.split()))
वास्तविक Python Output
3
Chapter 9 — Lists
List mutable sequence है। Indexing, slicing, concatenation, repetition, membership और loop traversal संभव हैं। append एक object जोड़ता है; extend iterable के elements जोड़ता है। sort मूल list बदलता है; sorted नई list लौटाता है।
| Method/function | Expression (fresh L=[3,1,3,2]) | Return | List after |
|---|---|---|---|
| len | len(L) | 4 | [3, 1, 3, 2] |
| list | list("abc") | ['a', 'b', 'c'] | [3, 1, 3, 2] |
| append | L.append(9) | None | [3, 1, 3, 2, 9] |
| extend | L.extend([8,9]) | None | [3, 1, 3, 2, 8, 9] |
| insert | L.insert(1,8) | None | [3, 8, 1, 3, 2] |
| count | L.count(3) | 2 | [3, 1, 3, 2] |
| index | L.index(3) | 0 | [3, 1, 3, 2] |
| remove | L.remove(3) | None | [1, 3, 2] |
| pop | L.pop() | 2 | [3, 1, 3] |
| reverse | L.reverse() | None | [2, 3, 1, 3] |
| sort | L.sort() | None | [1, 2, 3, 3] |
| sorted | sorted(L) | [1, 2, 3, 3] | [3, 1, 3, 2] |
| min | min(L) | 1 | [3, 1, 3, 2] |
| max | max(L) | 3 | [3, 1, 3, 2] |
| sum | sum(L) | 9 | [3, 1, 3, 2] |
Program 32 — Min max mean
L=[7,11,5,9]
print(min(L),max(L),sum(L)/len(L))
वास्तविक Python Output
5 11 8.0
Program 33 — Linear search
L=[8,3,9,4]
key=9
position=-1
for i in range(len(L)):
if L[i]==key:
position=i
break
print(position)
वास्तविक Python Output
2
Program 34 — Frequency
L=[2,3,2,4,3,2]
for x in [2,3,4]:
print(x,L.count(x))
वास्तविक Python Output
2 3 3 2 4 1
Program 35 — Copy and alias
a=[1,2]
b=a
c=a[:]
b.append(3)
print(a,b,c)
वास्तविक Python Output
[1, 2, 3] [1, 2, 3] [1, 2]
Program 36 — Nested list
L=[[2,4],[6,8]]
for row in L:
print(sum(row))
वास्तविक Python Output
6 14
Program 37 — Distinct second maximum
अंतिम उदाहरण में list comprehension अतिरिक्त अवधारणा है।
L=[8,3,8,6]
first=max(L)
remaining=[x for x in L if x!=first]
print(max(remaining) if remaining else None)
वास्तविक Python Output
6
Chapter 10 — Tuples and Dictionaries
Tuple immutable sequence है; एक element के लिए (5,) लिखें। Tuple assignment में अनेक variables को एक साथ मान दिए जा सकते हैं। Nested tuple में अन्य tuple हो सकते हैं। Dictionary mutable key-value mapping है; keys unique और hashable होती हैं।
| Tuple operation | Example | Result |
|---|---|---|
| len | len((3,1,3)) | 3 |
| tuple | tuple([1,2]) | (1, 2) |
| count | (3,1,3).count(3) | 2 |
| index | (3,1,3).index(1) | 1 |
| sorted | sorted((3,1,3)) | [1, 3, 3] |
| min | min((3,1,3)) | 1 |
| max | max((3,1,3)) | 3 |
| sum | sum((3,1,3)) | 7 |
| slice | (3,1,3)[1:] | (1, 3) |
| repeat | (2,)*3 | (2, 2, 2) |
| concat | (1,)+(2,) | (1, 2) |
| membership | 2 in (1,2) | True |
Program 38 — Tuple assignment
a,b=4,9
a,b=b,a
print(a,b)
वास्तविक Python Output
9 4
Program 39 — Tuple statistics
T=(3,8,5,4)
print(min(T),max(T),sum(T)/len(T))
वास्तविक Python Output
3 8 5.0
Program 40 — Tuple search
T=(9,4,6)
key=4
for i in range(len(T)):
if T[i]==key:
print(i)
break
वास्तविक Python Output
1
Program 41 — Tuple frequency
T=(1,2,1,3,2)
for x in (1,2,3):
print(x,T.count(x))
वास्तविक Python Output
1 2 2 2 3 1
Program 42 — Nested tuple
T=((1,2),(3,4))
print(T[1][0])
वास्तविक Python Output
3
| Dictionary operation | Example | Effect |
|---|---|---|
| len | len(D) | number of keys |
| dict | dict(a=1) | new dictionary |
| access | D["a"] | value or KeyError |
| add/modify | D["a"]=5 | sets value |
| keys | D.keys() | key view |
| values | D.values() | value view |
| items | D.items() | pair view |
| get | D.get("x",0) | default if missing |
| update | D.update({"b":2}) | merge/overwrite |
| del | del D["a"] | delete key; statement, not function |
| clear | D.clear() | remove all entries |
Program 43 — Character frequency
D={}
for ch in "banana":
D[ch]=D.get(ch,0)+1
print(D)
वास्तविक Python Output
{'b': 1, 'a': 3, 'n': 2}
Program 44 — Employee salary
D={"Asha":25000,"Ravi":28000}
D["Asha"]=27000
for name,salary in D.items():
print(name,salary)
वास्तविक Python Output
Asha 27000 Ravi 28000
Program 45 — Word frequency
D={}
for w in "one two one three".split():
D[w]=D.get(w,0)+1
print(D)
वास्तविक Python Output
{'one': 2, 'two': 1, 'three': 1}
Program 46 — Dictionary update
D={"a":1,"b":2}
D.update({"b":5,"c":7})
del D["a"]
print(D,list(D.keys()),list(D.values()))
वास्तविक Python Output
{'b': 5, 'c': 7} ['b', 'c'] [5, 7]
Mini Projects — पाँच अनुप्रयोग
Project 47 — Student result
समस्या: दिए गए नमूना डेटा से उपयोगी परिणाम निकालना। Algorithm: डेटा ग्रहण/निर्धारित करें, आवश्यक गणना या जाँच करें, परिणाम दिखाएँ। विस्तार: वास्तविक input, invalid data और empty data की जाँच जोड़ें।
marks=[72,81,65,90,77]
print("Total",sum(marks))
print("Average",sum(marks)/len(marks))
print("Highest",max(marks))
वास्तविक Python Output
Total 385 Average 77.0 Highest 90
Project 48 — Library stock
समस्या: दिए गए नमूना डेटा से उपयोगी परिणाम निकालना। Algorithm: डेटा ग्रहण/निर्धारित करें, आवश्यक गणना या जाँच करें, परिणाम दिखाएँ। विस्तार: वास्तविक input, invalid data और empty data की जाँच जोड़ें।
stock={"Python":3,"Maths":2}
book="Python"
if stock.get(book,0)>0:
stock[book]-=1
print("Issued",book)
print(stock)
वास्तविक Python Output
Issued Python
{'Python': 2, 'Maths': 2}
Project 49 — Household expense
समस्या: दिए गए नमूना डेटा से उपयोगी परिणाम निकालना। Algorithm: डेटा ग्रहण/निर्धारित करें, आवश्यक गणना या जाँच करें, परिणाम दिखाएँ। विस्तार: वास्तविक input, invalid data और empty data की जाँच जोड़ें।
D={"food":2500,"travel":900,"books":600}
budget=5000
print("Spent",sum(D.values()))
print("Remaining",budget-sum(D.values()))
वास्तविक Python Output
Spent 4000 Remaining 1000
Project 50 — Shop billing
समस्या: दिए गए नमूना डेटा से उपयोगी परिणाम निकालना। Algorithm: डेटा ग्रहण/निर्धारित करें, आवश्यक गणना या जाँच करें, परिणाम दिखाएँ। विस्तार: वास्तविक input, invalid data और empty data की जाँच जोड़ें।
items=[("Pen",3,10),("Book",2,60)]
total=0
for name,qty,price in items:
amount=qty*price
total+=amount
print(name,amount)
print("Total",total)
वास्तविक Python Output
Pen 30 Book 120 Total 150
Project 51 — Attendance analysis
समस्या: दिए गए नमूना डेटा से उपयोगी परिणाम निकालना। Algorithm: डेटा ग्रहण/निर्धारित करें, आवश्यक गणना या जाँच करें, परिणाम दिखाएँ। विस्तार: वास्तविक input, invalid data और empty data की जाँच जोड़ें।
D={"A":18,"B":14,"C":20}
days=20
for name,present in D.items():
print(name,present/days*100)
वास्तविक Python Output
A 90.0 B 70.0 C 100.0
Output practice — 50 स्वतंत्र expressions
1. print(9//4)
2
2. print(-9//4)
-3
3. print(9%4)
1
4. print(2**4)
16
5. print(3+4*2)
11
6. print((3+4)*2)
14
7. print(not True)
False
8. print(bool(""))
False
9. print(bool("False"))
True
10. print(int(3.9))
3
11. print(float(4))
4.0
12. print(str(12)+"3")
123
13. print(3<4<5)
True
14. print(4 in [1,4])
True
15. print(4 not in (1,2))
True
16. print(list(range(2,9,3)))
[2, 5, 8]
17. print(list(range(5,0,-2)))
[5, 3, 1]
18. print(sum(range(5)))
10
19. print(len("राज"))
3
20. print("PYTHON"[2:5])
THO
21. print("abcdef"[::-2])
fdb
22. print("a"*4)
aaaa
23. print("abc"+"def")
abcdef
24. print("mississippi".count("ss"))
2
25. print("abc".find("x"))
-1
26. print(" a ".strip())
a
27. print("a,b,c".split(","))
['a', 'b', 'c']
28. print("/".join(["x","y"]))
x/y
29. print("Ab12".isalnum())
True
30. print("123".isdigit())
True
31. print("a B".title())
A B
32. print([1,2]*2)
[1, 2, 1, 2]
33. print([1,2]+[3])
[1, 2, 3]
34. print([4,5,6][-1])
6
35. print([1,2,3,4][::2])
[1, 3]
36. print(len([[1,2],[3]]))
2
37. print(sorted([8,2,4]))
[2, 4, 8]
38. print(min([7,-2,4]))
-2
39. print(max((1,9,3)))
9
40. print(sum((2,4,6)))
12
41. print((1,)*2)
(1, 1)
42. print(tuple("ab"))
('a', 'b')
43. print((2,3,2).count(2))
2
44. print((4,5,6).index(5))
1
45. print({"x":4}.get("y",0))
0
46. print(len({"a":1,"a":2}))
1
47. print(list({"a":1,"b":2}.values()))
[1, 2]
48. print(sum({"a":3,"b":4}.values()))
7
49. print(abs(-9))
9
50. print(round(3.14159,2))
3.14
Debugging practice — 25 त्रुटि सुधार
1. if x=2:
if x==2: — comparison
2. if x>0
if x>0: — colon
3. for i in range(5)
for i in range(5): — colon
4. print("hi"
print("hi") — parenthesis
5. 2name=5
name2=5 — identifier
6. class=3
class_no=3 — keyword
7. Print(5)
print(5) — case
8. int("abc")
int("123") — valid numeric text
9. 10/0
10/2 — nonzero divisor
10. L=[1]; L[1]
L=[1]; L[0] — index
11. "abc"[0]="x"
s="x"+"abc"[1:] — immutable string
12. T=(1); len(T)
T=(1,); len(T) — single tuple
13. D={}; D["x"]
D={}; D.get("x",0) — missing key
14. L=[1]; L.remove(2)
L=[1]; L.remove(1) — existing value
15. L=[]; L.pop()
L=[1]; L.pop() — nonempty list
16. range(1,5,0)
range(1,5,1) — nonzero step
17. "a"+2
"a"+str(2) — type conversion
18. math.sqrt(4)
import math; math.sqrt(4) — import
19. def f(x)
def f(x): — colon
20. return 3 (outside function)
def f(): return 3 — return inside function
21. while n>0: print(n)
while n>0: n-=1 — progress toward termination
22. area=l+l
area=l*w — rectangle formula
23. avg=sum(L)
avg=sum(L)/len(L) — mean for nonempty list
24. D.del("a")
del D["a"] — del statement
25. L=L.sort()
L.sort() — sort returns None
Chapter 11 — Societal Impact
Digital footprint ऑनलाइन गतिविधियों से बनने वाला डेटा-चिह्न है। Active footprint जानबूझकर साझा पोस्ट; passive footprint जैसे access logs। Netizen डिजिटल समाज का सहभागी है। Netiquette में सम्मानजनक भाषा, privacy, सहमति, तथ्य जाँच और अनावश्यक forwarding से बचना शामिल है।
| IPR | अर्थ | उदाहरण |
|---|---|---|
| Copyright | मौलिक अभिव्यक्ति की सुरक्षा | लेख, code, चित्र |
| Patent | योग्य आविष्कार की कानूनी सुरक्षा | तकनीकी आविष्कार |
| Trademark | व्यावसायिक पहचान | brand logo |
| Plagiarism | दूसरे का कार्य अपना बताना | बिना श्रेय project copy |
| Copyright infringement | अधिकारों का अनधिकृत उल्लंघन | बिना अनुमति पुनर्प्रकाशन |
| Trademark infringement | लागू अधिकारों का उल्लंघन | भ्रामक brand use |
Open source license उपयोग, संशोधन और वितरण की अनुमति अपनी शर्तों के अनुसार देता है। Public access का अर्थ copyright-free नहीं है। Attribution और अनुमति अलग हैं।
| Cybercrime | अर्थ | रोकथाम |
|---|---|---|
| Hacking | अनधिकृत access | updates, access control |
| Eavesdropping | अनधिकृत संचार सुनना/पढ़ना | encrypted connections |
| Phishing | भ्रामक संदेश से जानकारी लेना | official channel से पुष्टि |
| Fraud email | धोखाधड़ी हेतु email | OTP/password साझा न करें |
| Ransomware | access रोककर फिरौती माँगना | offline backup, updates |
भारत का Information Technology Act, 2000 इलेक्ट्रॉनिक अभिलेखों और डिजिटल गतिविधियों से संबंधित कानूनी ढाँचा प्रदान करता है। नवीनतम संशोधन एवं धाराओं के लिए India Code देखें। वित्तीय साइबर धोखाधड़ी की रिपोर्ट के लिए 1930 और राष्ट्रीय साइबर अपराध पोर्टल उपयोगी हैं।
स्वास्थ्य: लंबे समय तक स्क्रीन देखने से आँखों में थकान, गलत posture से असुविधा और देर रात उपयोग से नींद प्रभावित हो सकती है। नियमित विराम, उचित प्रकाश, आरामदायक बैठने की स्थिति और शारीरिक गतिविधि उपयोगी हैं।
किसी मित्र की फोटो बिना सहमति पोस्ट करना?
Privacy और consent का ध्यान रखें।
Scholarship email password माँगता है?
Phishing की आशंका; लिंक न खोलें, आधिकारिक स्रोत से पुष्टि करें।
चित्र का श्रेय दिया, अनुमति नहीं ली?
श्रेय अकेले पुनर्प्रयोग का अधिकार नहीं देता।
अज्ञात attachment खोलने के बाद files बंद हो गईं?
Ransomware की आशंका; नेटवर्क से अलग करें और जिम्मेदार IT सहायता लें।
Open source code project में लिया?
License की शर्तें और attribution जाँचें।
Practical Examination — 30 marks
| Component | Marks |
|---|---|
| Python lab test (logic 60%, documentation 20%, code quality 20%) | 12 |
| Report file — minimum 20 programs | 7 |
| Viva | 3 |
| Project | 8 |
Report में problem statement, algorithm, code, sample input/output और test cases लिखें। ऊपर के प्रोग्रामों में से शिक्षक के निर्देशानुसार कम से कम 20 चुनें।
स्रोत: RBSE कक्षा 11 Computer Science 2026–27, PDF पृष्ठ 6–8; NCERT; Python documentation। उदाहरण स्वतंत्र रूप से विकसित हैं।
Part 3 — हल सहित अभ्यास प्रश्नपत्र
Class 11 Computer Science | RBSE 2026–27 | समय 3 घंटे 15 मिनट | पूर्णांक 70
स्वनिर्मित वार्षिक अभ्यास पत्र; आधिकारिक प्रश्नपत्र नहीं। सभी प्रश्न अनिवार्य हैं। उत्तर देखने से पहले स्वयं हल करें।
Unit 1 — 10 अंक
प्रश्न 1. (2 अंक) Cache और RAM की भूमिका में दो अंतर लिखिए।
उत्तर एवं अंक विभाजन
प्रश्न 2. (3 अंक) (3E7)₁₆ को दशमलव और बाइनरी में बदलें।
उत्तर एवं अंक विभाजन
प्रश्न 3. (3 अंक) Y=NOT(A+B) की सत्य सारणी बनाकर De Morgan नियम से समतुल्य व्यंजक लिखें।
उत्तर एवं अंक विभाजन
प्रश्न 4. (2 अंक) IaaS और SaaS का एक-एक उदाहरणात्मक उपयोग लिखें।
उत्तर एवं अंक विभाजन
Unit 2 — 45 अंक
प्रश्न 5. (3 अंक) तीन संख्याओं में न्यूनतम खोजने का pseudocode लिखें।
उत्तर एवं अंक विभाजन
प्रश्न 6. (4 अंक) इन चार expressions का output लिखें: 23%7, 2**3**2, bool(0), "PYTHON"[1:5:2]
उत्तर एवं अंक विभाजन
प्रश्न 7. (3 अंक) Syntax, runtime और logical error का एक-एक उदाहरण दें।
उत्तर एवं अंक विभाजन
प्रश्न 8. (5 अंक) 1 से n तक 3 के गुणजों का योग निकालने का Python program लिखें।
उत्तर एवं अंक विभाजन
n=int(input())
s=0
for i in range(3,n+1,3):
s+=i
print(s)Input 1, initialization 1, loop 1, sum 1, output 1।प्रश्न 9. (5 अंक) एक function लिखें जो string में digits की संख्या लौटाए।
उत्तर एवं अंक विभाजन
def digits(s):
count=0
for ch in s:
if ch.isdigit():
count+=1
return countFunction 1, initialization 1, traversal 1, condition 1, return 1।प्रश्न 10. (4 अंक) L=[8,3,8,2,5] में 8 की frequency, minimum, sorted copy और मूल list लिखें।
उत्तर एवं अंक विभाजन
प्रश्न 11. (5 अंक) List में दिए गए target का पहला index खोजें; न मिले तो -1 लौटाएँ।
उत्तर एवं अंक विभाजन
def search(L,target):
for i in range(len(L)):
if L[i]==target:
return i
return -1Signature, traversal, comparison, found return, absent return प्रत्येक 1।प्रश्न 12. (4 अंक) Tuple (12,18,24,30) का mean निकालें और tuple की immutability समझाएँ।
उत्तर एवं अंक विभाजन
प्रश्न 13. (5 अंक) Dictionary में प्रत्येक शब्द की frequency निकालने का program लिखें।
उत्तर एवं अंक विभाजन
s=input()
d={}
for w in s.split():
d[w]=d.get(w,0)+1
print(d)Input, dictionary, traversal, update, output प्रत्येक 1।प्रश्न 14. (4 अंक) math.ceil(4.2), math.floor(-2.1), statistics.median([9,1,5]), math.fabs(-7) के परिणाम लिखें।
उत्तर एवं अंक विभाजन
प्रश्न 15. (3 अंक) Default parameter और local variable उदाहरण सहित समझाएँ।
उत्तर एवं अंक विभाजन
def f(x=4):
y=x+1
return yx का default 4 (1), y local (1), f()=5 (1)।Unit 3 — 15 अंक
प्रश्न 16. (3 अंक) Digital footprint के तीन उदाहरण लिखें।
उत्तर एवं अंक विभाजन
प्रश्न 17. (3 अंक) Copyright, patent और trademark में अंतर लिखें।
उत्तर एवं अंक विभाजन
प्रश्न 18. (4 अंक) संदिग्ध ईमेल बैंक का password माँगता है। खतरा पहचानें और तीन बचाव लिखें।
उत्तर एवं अंक विभाजन
प्रश्न 19. (3 अंक) Ransomware से बचाव के तीन उपाय लिखें।
उत्तर एवं अंक विभाजन
प्रश्न 20. (2 अंक) कम्प्यूटर उपयोग से जुड़े दो स्वास्थ्य जोखिम और उनके उपाय लिखें।
उत्तर एवं अंक विभाजन
Online Test — 50 MCQ
प्रत्येक सही उत्तर 1 अंक। कोई ऋणात्मक अंक नहीं। प्रश्न JavaScript के बिना भी पढ़े जा सकते हैं।
अंतिम रिवीजन — 45 अधिगम बिंदु
- CPU निर्देश निष्पादित करता है।
- ALU गणितीय और तार्किक क्रियाएँ करती है।
- Control Unit निर्देशों का समन्वय करती है।
- Cache तेज memory है।
- RAM सामान्यतः volatile है।
- Secondary storage दीर्घकालीन संग्रहण देती है।
- 8 bits = 1 byte।
- Data bus डेटा ले जाती है।
- OS संसाधनों का प्रबंधन करता है।
- NAND और NOR universal gates हैं।
- De Morgan नियम में AND और OR परस्पर बदलते हैं।
- Binary, octal, decimal, hex के bases 2,8,10,16 हैं।
- ASCII सात bit का मानक है।
- UTF-8 में प्रति scalar value 1–4 bytes होते हैं।
- AI, ML, NLP अलग संबंधित अवधारणाएँ हैं।
- IoT में नेटवर्क आधारित उपकरण होते हैं।
- IaaS, PaaS, SaaS cloud service models हैं।
- Algorithm स्पष्ट और सीमित चरणों वाला होना चाहिए।
- Flowchart में decision सामान्यतः diamond है।
- Python identifiers अंक से प्रारंभ नहीं होते।
- input() str देता है।
- int() स्पष्ट conversion कर सकता है।
- ** exponentiation है।
- // floor division है।
- is identity जाँचता है, == equality।
- in membership जाँचता है।
- Indentation blocks निर्धारित करती है।
- range का stop शामिल नहीं होता।
- break loop समाप्त करता है।
- continue अगली iteration पर जाता है।
- return function से परिणाम देता है।
- Local variable का scope सीमित है।
- Strings immutable हैं।
- Slicing में stop excluded है।
- Lists mutable हैं।
- append और extend अलग हैं।
- sort list को बदलता है; sorted नई list देता है।
- Tuple immutable sequence है।
- Dictionary key-value mapping है।
- get missing key पर default दे सकता है।
- Digital footprint ऑनलाइन गतिविधि का निशान है।
- IPR में copyright, patent और trademark शामिल हैं।
- Phishing से बचने के लिए स्रोत सत्यापित करें।
- IT Act भारत में इलेक्ट्रॉनिक लेनदेन और संबंधित साइबर अपराधों का कानूनी ढाँचा देता है।
- नियमित विराम और उचित मुद्रा स्वास्थ्य के लिए उपयोगी हैं।
Practical Examination — 30 अंक
| घटक | अंक |
|---|---|
| Python Lab Test (logic 60%, documentation 20%, code quality 20%) | 12 |
| Report file — न्यूनतम 20 programs | 7 |
| Viva | 3 |
| Project | 8 |
टीम शिक्षा जगत | NCERTClasses.com

No comments:
Post a Comment