[go: up one dir, main page]

0% found this document useful (0 votes)
35 views4 pages

Sample Paper CBSE Class 11 (083) - Answer Key

This document is a sample answer key for the CBSE Class 11 Computer Science exam, covering various topics including Python programming, data types, and operating systems. It includes multiple-choice questions, one-line answers, programming examples, and explanations of key concepts. The document is structured into sections with varying marks assigned to each question type.

Uploaded by

shivanshpastor29
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views4 pages

Sample Paper CBSE Class 11 (083) - Answer Key

This document is a sample answer key for the CBSE Class 11 Computer Science exam, covering various topics including Python programming, data types, and operating systems. It includes multiple-choice questions, one-line answers, programming examples, and explanations of key concepts. The document is structured into sections with varying marks assigned to each question type.

Uploaded by

shivanshpastor29
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

CBSE Class 11 Computer Science (083)

Sample Paper Answer Key


SECTION A (1 Mark Each)
(21 Questions × 1 = 21 Marks)

1. c) Tuple
2. c) input()
3. c) repeat
4. c) #
5. b) Dictionary
6. a) HelloHelloHello
7. d) len()
8. b) False
9. d) Both a) and c)
10. C) Windows Operating System

One-line Answers (Q11 - Q21):

11. The range() function generates a sequence of numbers within a specified range.
12. A variable is a named storage location in memory that holds a value.
13. The strip() function removes leading and trailing spaces from a string.
14. is checks object identity (memory location), while == checks for value equality.
15. An identifier is the name used to define variables, functions, classes, etc., in Python.
16. A Boolean data type represents True or False values.
17. An interpreter translates Python code line by line into machine code.
18. Two types of loops in Python: for loop and while loop.
19. Primary Memory is the main memory (RAM) where data is stored temporarily for processing.
20. A Flowchart is a diagrammatic representation of an algorithm using symbols.
21. Cybersecurity refers to protecting computers, networks, and data from unauthorized access.

SECTION B (2 Marks Each)


(7 Questions × 2 = 14 Marks)

22. List vs Tuple:

 List: Mutable, defined using [] (Example: [1, 2, 3]).


 Tuple: Immutable, defined using () (Example: (1, 2, 3)).

23. Elif Statement Example:

num = int(input("Enter a number: "))


if num > 0:
print("Positive")
elif num < 0:
print("Negative")
else:
print("Zero")

24. Type Casting Example:

x = "10"
y = int(x) # Converts string to integer
print(y + 5) # Output: 15

25. Even or Odd Program:

num = int(input("Enter a number: "))


if num % 2 == 0:
print("Even")
else:
print("Odd")

26. Dictionary vs List:

 List: Ordered, stores elements in a sequence.


 Dictionary: Stores data in key-value pairs ({}) (Example: {"name": "John", "age": 20}).

27. Conversions:
a) (1011)₂ → Decimal: 1×8 + 0×4 + 1×2 + 1×1 = 11 (Answer: 11)
b) (34)₁₀ → Binary: 100010
28. Multiplication Table Program:

num = int(input("Enter a number: "))


for i in range(1, 11):
print(num, "x", i, "=", num * i)

SECTION C (3 Marks Each)


(3 Questions × 3 = 9 Marks)

29. Three String Methods:

 upper(): Converts to uppercase. ("hello".upper() → "HELLO")


 lower(): Converts to lowercase. ("Hello".lower() → "hello")
 replace(): Replaces a substring. ("Hello".replace("H", "J") → "Jello")

30. Break and Continue Statements Example:

for i in range(5):
if i == 3:
break # Exits the loop
print(i)
for i in range(5):
if i == 3:
continue # Skips 3
print(i)

31. Largest Number Program:


a, b, c = map(int, input("Enter three numbers: ").split())
print("Largest number:", max(a, b, c))

SECTION D (4 Marks Each)


(4 Questions × 4 = 16 Marks)

32. An Operating System (OS) is system software that manages hardware and software resources,
providing a user interface and application execution environment.

Major Functions of an OS:

a) Process Management
a. Manages program execution and CPU scheduling.
b. Ensures smooth multitasking.
b) Memory Management
a. Allocates and deallocates memory for processes.
b. Uses virtual memory for efficiency.
c) File System Management
a. Organizes, stores, and retrieves files.
b. Maintains file permissions and directories.
d) Device Management
a. Controls peripheral devices (keyboard, printer, etc.).
b. Uses device drivers for communication.
e) User Interface (UI) Management
a. Provides GUI (Graphical User Interface) or CLI (Command Line Interface).
b. Examples: Windows UI, Linux Terminal.
f) Examples of Operating Systems: Windows, Linux, macOS, Android.

33. Count Vowels Program:

def count_vowels(s):
return sum(1 for ch in s if ch.lower() in 'aeiou')
print(count_vowels("Education")) # Output: 5

34. Boolean Logic (Truth Tables):


| A | B | A AND B | A OR B | NOT A | A XOR B |
|---|---|--------|--------|------|--------|
|0|0|0|0|1|0|
|0|1|0|1|1|1|
|1|0|0|1|0|1|
|1|1|1|1|0|0|

1. Decimal to Binary Conversion


Divide 187 by 2 and record the remainders:

Division by 2 Quotient Remainder


187 ÷ 2 93 1
93 ÷ 2 46 1
46 ÷ 2 23 0
23 ÷ 2 11 1
11 ÷ 2 5 1
5÷2 2 1
2÷2 1 0
1÷2 0 1
Binary equivalent: 10111011₂

2. Decimal to Octal Conversion


Divide 187 by 8 and record the remainders:

Division by 8 Quotient Remainder


187 ÷ 8 23 3
23 ÷ 8 2 7
2÷8 0 2
Octal equivalent: 273₈

3. Decimal to Hexadecimal Conversion


Divide 187 by 16 and record the remainders:

Division by 16 Quotient Remainder (Hex)


187 ÷ 16 11 B
11 ÷ 16 0 B
Hexadecimal equivalent: BB₁₆

Final Answer:

 Binary: 10111011₂
 Octal: 273₈
 Hexadecimal: BB₁₆

SECTION E (5 Marks Each)


(2 Questions × 5 = 10 Marks)

36. Sum of Even Numbers in a List:

numbers = list(map(int, input("Enter numbers: ").split()))


even_sum = sum(n for n in numbers if n % 2 == 0)
print("Sum of even numbers:", even_sum)

37. Cybersecurity Threats:

 Phishing: Fraudulent emails trick users into sharing sensitive information.


 Malware: Malicious software like viruses and worms that harm systems.
 Ransomware: Encrypts files and demands payment for decryption.
 Firewall: Security system that monitors network traffic.
 Digital Footprint: The trail of online activity left by users.

You might also like