0% found this document useful (0 votes)
78 views45 pages

Final-Half Yearly XI CS (4 Sets)

The document outlines the structure and content of the Half-Yearly Examination for Class XI in Computer Science for the academic year 2024-25, detailing the question distribution across different sections and topics. It includes a variety of questions related to Python programming, computer systems, and computational thinking. The examination consists of 35 questions, with a total of 70 marks, and emphasizes the use of Python for programming-related queries.

Uploaded by

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

Final-Half Yearly XI CS (4 Sets)

The document outlines the structure and content of the Half-Yearly Examination for Class XI in Computer Science for the academic year 2024-25, detailing the question distribution across different sections and topics. It includes a variety of questions related to Python programming, computer systems, and computational thinking. The examination consists of 35 questions, with a total of 70 marks, and emphasizes the use of Python for programming-related queries.

Uploaded by

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

K

E
N
D
R
I
Y
A

V
I
D
Y
A
L
A
Y
A

S
A
N
G
A
T
H
A
N

H
A
L
F

Y
E
A
R
L
Y

E
X
A
M
I
N
A
T
I
O
N

2
0
2
4
-
2
5
CLASS:XI
TIME: 03HOURS
SUBJECT: COMPUTERSCIENCE(083)
[BLUEPRINT] (Q=QUESTIONS, M= MARKS)
21 Marks (UNIT I chapters a,b,c) + 49 marks(UNIT II chapters
a,b,c,d,e,f,g)
UNIT TOPIC (18 (7 (5 (2
NO. QUESTIONS) QUESTIONS) QUESTIONS) QUESTIO
1 Mark 2 Marks 3 Marks 4 Mar
SEC A SEC B SEC C SEC D

I Computer systems and 6 2 2 0


organization
II Programming and 12 5 3 2
Computational Thinking - I
TOTAL 18Q*1M= 7Q*2M=14M 5Q*3M=15 2Q*4M
18M M 8M

HALF – YEARLY SYLLABUS TILL THE CHAPTER LIST


MANIPULATION
KENDRIYA VIDYALAYA SANGATHAN
HALF YEARLY EXAMINATION 2024-25
CLASS: XI SUBJECT: COMPUTER SCIENCE Time: 3Hours
Duration: 03 Hrs. Max. Marks: 70
General Instructions:
 Please check this question paper contains 35 questions.
 The paper is divided into 4 Sections- A, B, C, D and E.
 Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark.
 Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.
 Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks.
 Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks.
 Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks.
 All programming questions are to be answered using Python Language only.

Section A
1. Which of the following is not a valid python operator?
a. % b. in c. # d. **

2. Which of the following is not a secondary storage device?


a. Hard Disk b. Floppy Disk
c. RAM d. None Of These
3. Which of the following Boolean expression always evaluates to False?
a. A+A’ b. A.A
c. A+0 d. None of These
4. Which of the following is an invalid identifier
a. Data#base
b. var_new
c. _abcd9
d. None of These
5. Which of the following is not an arithmetic operator
a. **
b. //
c. #
d. None of These
6. Select the correct output of the following python code:
str=”My program is program for you”
t = str.split(“program”)
print(t)
a. [‘My ‘, ‘ is ‘, ‘ for you’]
b. [‘My ‘, ‘ for you’]
c. [‘My’,’ is’]
d. [‘My’]

7. Q=5//2.0 what is the data type of Q

a.integer
b.Floating point
c.String
d.None of These
8. Which of the following is not a core data type in Python?
a. Boolean
b. integers
c. strings
d. Class

9. How many times the following loop will execute

i=5
while(i<=5):
i=i-2
a. Infinite
b. 1
c. 5
d. 0
10. Flowchart is the pictorial representation of ________
a. Flowgraph
b. Algorithm
c. Data Flow Diagram
d. None of These
11. Name the function to remove the last element from a list
a. add()
b. delete()
c. pop()
d. None of These
12. The I/O devices are connected to the CPU via __________.
a. SDRAM's
b. Control circuits
c. Signals
d. BUS

13. The fastest data access is provided using _______


a. Cache
b. DRAM's
c. SRAM's
d. Registers

14. In Boolean algebra A+A


a. 1
b. 0
c. A
d. None of these

15. The decimal equivalent of 1100 which is in binary is:


a. 1100
b. 8

c. 10

d. 12

16. Amongst which of the following is / are the Numeric Types of Data Types?

a. int

b. float

c. complex

d. All of the mentioned above

17. What is the name of the operator ** in Python?

a. Exponentiation

b. Modulus

c. Floor division

d. None of the mentioned above

18. Conditional statements are also known as ___ statements.


a. Decision-making
b. Array
c. List
d. None of the mentioned above

Section B
19. Draw the equivalent logic circuit for the following expression:
Y=(A .B)’.B.C’
20. What is CPU?Write down different components of CPU ?

21. Draw a flowchart printing first n natural numbers?

22. Rewrite the following code fragment using for loop:


Var=5
print(Var)
Var=Var-1
23. Find the output of the following
lis=[1,2,3]
lis.insert(2,[4,5,6])
print(lis[0])
print(lis[1])
print(lis[2][2])
print(lis[3])
24. Predict the output of above code?

a = True
b = False
c = False

if not a or b:
print(1)
elif not a or not b and c:
print(2)
elif not a or b or not b and a:
print(3)
else:
print(4) (4)
25. What is the difference between = and == operator?

SECTION C
26. Convert 110 0110 0001(2) to hexadecimal and octal and decimal.

27. Find the output of the following code

num=12345678
while(num>0):
r=num%10
if(r==5):
continue
elif(r==2):
break
else:
print(r)
num=num//10
28. Following is a piece of code for finding sum of digits of a number. Fill the missing statement
i=123
sum=0
while(____________): #statement1
r=i%10
sum=______________#Statement2
i=_________________#Statement3 to update i
print(sum)
29. Explain the use of indentation in Python with an example.

30. What are De Morgan's laws in Boolean algebra? What is the result of applying NOT to the output
of an OR gate with inputs 0 and 1?
SECTION D
31. Ujjaini got a python program to check whether a given year is leap year or not but with some
missing statements. Help her to complete the code to accomplish the task.
year=int(input("Enter the year"))
if(____________):#statement1
if(___________):#statement2
if(__________):#statement3
print("Leap year")
else:
print("Not a Leap Year")
else:
print(________________)#statement4
else:
print(“Not a leap year”)
OR

Raju wants to accomplish following tasks in python


i)To print first 100 even natural numbers
ii)To print first 10 multiples of number 5
As a python expert help him to write the code
32. Write a program to check whether a number is Armstrong number or not.
SECTION E
33. Write a program to check whether a given number is prime or not?
34. Sourabh wants to write python statements for performing following operations on a string stored in
a variable ‘str’
a)To find the occurrence of a substring stored in variable ‘sub’ in the string
b)To change the first letter to Upper case
c)To check whether the string contains only alphabets
d)To check whether the string contains only digits
e)To check whether the string contains only alphabets and digits
As a python expert help him to write the python statements using appropriate string functions.
35. a. Explain the difference between primary memory and secondary memory.
b. What is the difference between ASCII and Unicode?
c. What does a NOT gate do?
KENDRIYA VIDYALAYA SANGATHAN
HALF YEARLY EXAMINATION 2024-25
CLASS: XI SUBJECT: COMPUTER SCIENCE Time:
3Hours
Duration: 03 Hrs. Max. Marks: 70
General Instructions:
 Please check this question paper contains 35 questions.
 The paper is divided into 4 Sections- A, B, C, D and E.
 Section A, consists of 18 questions (1 to 18). Each question carries 1 Mark.
 Section B, consists of 7 questions (19 to 25). Each question carries 2 Marks.
 Section C, consists of 5 questions (26 to 30). Each question carries 3 Marks.
 Section D, consists of 2 questions (31 to 32). Each question carries 4 Marks.
 Section E, consists of 3 questions (33 to 35). Each question carries 5 Marks.
 All programming questions are to be answered using Python Language only.

Mar
Q No Question
ks
SECTION A
1 Which of the following is not a valid python operator? 1
a) % b) in c) # d) **
ANS: c. #
2 Which of the following is not a secondary storage device 1
a. Hard Disk b. Floppy Disk
c. RAM d. None Of These
ANS: c. RAM
3 Which of the following Boolean expression always evaluates to False? 1
a.A+A’ b. A.A
c.A+0 d.None of These
ANS: d. None of These
4 Which of the following is an invalid identifier 1
a.Data#base
b.var_new
c._abcd9
d.None of These
ANS a.Data#base
5 Which of the following is not an arithmetic operator 1
a.**
b.//
c.#
d.None of These
ANS c.#
6 Select the correct output of the following python code: 1
str=”My program is program for you”
t = str.split(“program”)
print(t)
a) [‘My ‘, ‘ is ‘, ‘ for you’]
b) [‘My ‘, ‘ for you’]
c) [‘My’,’ is’]
d) [‘My’]
ANS a) [‘My ‘, ‘ is ‘, ‘ for you’]

7 Q=5//2.0 what is the data type of Q 1


a.integer
b.Floating point
c.String
d.None of These
ANS b.Floating point
8 Which of the following is not a core data type in Python? 1
a) Boolean
b) integers
c) strings
d) Class
ANS d) Class

9 How many times the following loop will execute 1


i=5
while(i<=5):
i=i-2
a.Infinite
b.1
c.5
d.0
ANS a.Infinite
10 Flowchart is the pictorial representation of ________ 1
a.Flowgraph
b.Algorithm
c.Data Flow Diagram
d.None of These
ANS b.Algorithm
11 Name the function to remove the last element from a list 1
a.add()
b.delete()
c.pop()
d)None of These
ANS c.pop()
12 The I/O devices are connected to the CPU via __________. 1
A. SDRAM's
B. Control circuits
C. Signals
D. BUS
ANS D. BUS

13 The fastest data access is provided using _______ 1


A. Cache
B. DRAM's
C. SRAM's
D. Registers
ANS D. Registers

14 In Boolean algebra A+A 1


A. 1
B. 0
C. A
D. None of these
ANS C. A

15 The decimal equivalent of 1100 which is in binary is: 1


A. 1100
B. 8
C. 10
D. 12
ANS D. 12

16 Amongst which of the following is / are the Numeric Types of Data Types? 1
a. int
b. float
c. complex
d. All of the mentioned above
ANS d. All of the mentioned above

17 What is the name of the operator ** in Python? 1


A. Exponentiation
B. Modulus
C. Floor division
D. None of the mentioned above
ANS A. Exponentiation
18 Conditional statements are also known as ___ statements. 1
A. Decision-making
B. Array
C. List
D. None of the mentioned above
ANS A. Decision-making
SECTION B
19 Draw the equivalent logic circuit for the following expression: 2
Y=(A .B)’.B.C’
ANS

20 What is CPU?Write down different components of CPU ? 2


[1 mark for correct definition and 1 mark for components]
21 Draw a flowchart printing first n natural numbers? 2
ANS

22 Rewrite the following code fragment using for loop: 2


Var=5
while (Var >= 0):
print(Var)
Var=Var-1
ANS for Var in range (5,1,-1):
print(Var)
[1/2mark for correct selection of loop variable 1 mark for correct usage of range() function
½ mark for statement in loop]
23 Find the output of the following 2
lis=[1,2,3]
lis.insert(2,[4,5,6])
print(lis[0])
print(lis[1])
print(lis[2][2])
print(lis[3])
ANS [1,2, [4, 5, 6], 3,]
1
6
3
½ mark for each correct line

24 a = True 2
b = False
c = False

if not a or b:
print(1)
elif not a or not b and c:
print(2)
elif not a or b or not b and a:
print(3)
else:
print(4) (4)
Predict the output of above code?
ANS 3
25 What is the difference between = and == operator? 2
ANS 2 marks for 2 difference
SECTION C
26 Convert 110 0110 0001(2) to hexadecimal and octal and decimal 3
ANS hex 661[1 mark]
Oct 3141[1 mark]
Dec 1633[1 mark]
27 Find the output of the following code 3
num=12345678
while(num>0):
r=num%10
if(r==5):
continue
elif(r==2):
break
else:
print(r)
num=num//10
Ans:
8
7
6
28 Following is a piece of code for finding sum of digits of a number.Fill the missing 3
statements
i=123
sum=0
while(____________):#statement1
r=i%10
sum=______________#Statement2
i=_________________#Statement3 to update i
print(sum)
ANS:
Statement 1 i > 0 [1mark]
Statement1 sum+r [1 mark]
Statement2 i//10 [1 mark]
29 Explain the use of indentation in Python with an example. 3
ANS [1.5 Mark for correct definition of indentation,1.5 mark for example]
30 What are De Morgan's laws in Boolean algebra? What is the result of applying NOT 3
to the output of an OR gate with inputs 0 and 1?
ANS .[2 mark for correct definition with the expression of De Morgan’s law]
The output of the OR gate is 1, and applying NOT to this output gives 0.
[1 mark]
SECTION D
31 Ujjaini got a python program to check whether a given year is leap year or not but 4
with some missing statements.Help her to complete the code to accomplish the task.
year=int(input("Enter the year"))
if(____________):#statement1
if(___________):#statement2
if(__________):#statement3
print("Leap year")
else:
print("Not a Leap Year")
else:
print(________________)#statement4
else:
print(“Not a leap year”)

OR
Raju wants to accomplish following tasks in python
i)To print first 100 even natural numbers
ii)To print first 10 multiples of number 5
As a python expert help him to write the code
ANS Statement1:year%4==0 [1 mark]
Statement2:year%100==0 [1 mark]
Statement3:year%400==0 [1 mark]
Statement4:”Leap year” [1 mark]

OR
Ans:
i)for i in range(2,101,2): [ 2 marks ]
print(i)
ii)for i in range(5,55,5): [2 marks]
print(i)
32 Write a program to check whether a number is amstrong number or not. 4
n =int(input()) -> taking input from user[1/2 mark]
s = n # assigning input value to the s variable[1/2 mark]
b = len(str(n))[1/2 mark]
sum1 = 0
while n != 0: [2 Marks]
r = n % 10
sum1 = sum1+(r**b)
n = n//10
if s == sum1:
print("The given number", s, "is armstrong number")[1/2 mark]
else:
print("The given number", s, "is not armstrong number")

SECTION E
33 Write a program to check whether a given number is prime or not? 5
Ans:
num = int(input("Enter a number: "))
# defining a flag variable
flag = 1
# Checking for factors
for i in range(2, (num//2)):
if num % i == 0:
flag = 0
break
# Display output
if flag == 1 and num >= 2:
print(num, "is a prime number.")
else:
print(num, "is not a prime number.")
[1/2 mark for reading the number 2 marks for correct loop
formation and 2 ½ marks for correct program logic]

34 Sourabh wants to write python statements for performing following operations on a 5


string stored in a variable ‘str’
a)To find the occurrence of a substring stored in variable ‘sub’ in the string
b)To change the first letter to Upper case
c)To check whether the string contains only alphabets
d)To check whether the string contains only digits
e)To check whether the string contains only alphabets and digits
As a python expert help him to write the python statements using appropriate string
functions.
Ans
a)str.find(sub) [1 mark]
b)str.capitalize() [1 mark]
c)str.isalpha() [1 mark]
d)str.isdigit() [1 mark]
e)str.isalnum() [1 mark]
35 a. Explain the difference between primary memory and secondary memory. 5
b. What is the difference between ASCII and Unicode?
c. What does a NOT gate do?
a. 2 marks for two differences
b. 2 marks for two differences
c. 1 marks for explaination
KENDRIYA VIDYALAYA SANGATHAN
HALF YEARLY EXAMINATION 2024-25
BLUEPRINT

CLASS: XI TIME: 03 HOURS SUBJECT:


COMPUTER SCIENCE (083) MAXIMUM MARKS:70

(15 (7 (6 (2 (3 TOTAL MARKS


UNIT CHAPTER QUESTIONS) QUESTIONS) QUESTIONS) QUESTIONS) QUESTIONS)
NO. (1M) (2M) (3M) (4M) (5M)
Computer (1Q) (1Q) (4M)
systems
I Data (2Q) (1Q) (1Q) (7M)
representation
Boolean logic (1Q) (1Q) (4M)

Introduction to (1M)
problem solving (1Q)
Getting started (1M)
with python (1Q)
Python (2M)
fundamentals (2Q)
Data Handling (1Q) (1Q) (1Q) (9M)

II Flow of control (2Q) (2Q) (1Q) (1Q) (1Q) (18M)

String (2Q) (1Q) (1Q) (9M)


Manipulation
List Manipulation (2Q) (1Q) (1Q) (9M)

Tuples (1Q) (1Q) (3M)

Dictionaries (1Q) (3M)

TOTAL 15Q*1M=15M 7Q*2M=14M 6Q*3M=18M 2Q*4M=8M 3Q*5M=15M 33Q OUT OF


70M
KENDRIYA VIDYALAYA SANGATHAN SILCHAR REGION
HALF YEARLY EXAMINATION 2024-25
Class: XI Subject: Computer Science (083)
Time Allowed : 3 Hours Maximum Marks: 70
General Instructions:
● All questions are compulsory.
● This question paper contains five sections, Section A to E.
● Section A has 15 Multiple choice questions carrying 1 mark each.
● Section B has 7 Very Short Answer type questions carrying 2 marks each.
● Section C has 6 Long Answer type questions carrying 3 marks each.
● Section D has 2 Long Answer type questions carrying 4 marks each.
● Section E has 3 Very Long Answer type questions carrying 5 marks each.

SECTION A (Multiple choice questions 1 mark each)


Q1. Which of the following components is the main memory of a computer?
a) CD b) DVD
c)Internal hard drive d) RAM
Q2. Convert the hexadecimal number 2C to decimal:
a) 3A b) 34
c) 44 d) 43
Q3. Which of the following is not a valid encoding scheme for characters?
a)ASCII b) UNICODE
c)ISCII d) ESCII
Q4. The binary equivalent of the decimal number 10 is?
a) b) 100010
c) 1010 d) 010
Q5. Interpret the following Logic Circuit as Boolean Expression:

a. A.B’+C’. D b. AB+CD c. (A+B’). (C’+D) d. None


Q6. ____________ are reserved words and have a specific meaning to the Python
interpreter.
a) Keywords b) Objects c) immutable data types d)
Identifiers
Q7. Which of the following is/are correct ways of creating strings?
a) name = Jiya b) name = 'Jiya'
c)name = "Jiya" d) name = (Jiya)
Q8. The input () returns the value as .......... type.
a) Integer b) string
c) floating point d) none of these
Q9. Output of the following expression?
15.0 / 4 + (8 + 3.0)
a) 10 b) 14.75
c) 8 d) 15
Q10. Which one of the following if statements will not execute successfully ?
a) if (1, 2):
print('foo')
b) if (1, 2)
print('foo')
c) if (1, 2):
print('foo')
d) if (1):
print (‘foo’)
Q11. What values are generated when the function range(6, 0, -2) is executed?
a) [4, 2]
b) [4, 2, 0]
c) [6, 4, 2]
d) [6, 4, 2, 0]
Q12. Which of the following functions will return the total number of characters in a
string?
a) count()
b) index()
c) len()
d) all of these
Q13. What is the output of the following code?
str1 = "Mission 999"
str2 = "999"
print(str1.isdigit(),str2.isdigit())
a) False True
b) False False
c) True False
d) True True`
Q14. Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[1 : 4] return?
a) [10, 20, 30, 40]
b) [20, 30, 40, 50]
c) [20, 30, 40]
d) [30, 40, 50]
Q15. Which of the following will create a single element tuple?
a) (1,)
b) (1)
c) ( [1] )
d) tuple([1])
SECTION B(Very Short Answer type questions carrying 2 marks each)
Q16. Convert the following hexadecimal numbers to binary:
(a) 23D
(b) BC9
Q17. Following Python code has an expression with all integer values. Why is the
result in floating point form
a, b, c = 2, 3, 6
d = a + b * c/b
print(d)
Q18. Rewrite the following code fragment using for loop:
i = 100
while (i > 0):
print (i)
i -= 3
Q19. What is the error in the following code? Correct the code:
weather = 'raining'
if weather = 'sunny':
print ("wear sunblock")
elif weather = "snow":
print ("going skiing")
else:
print (weather)
Q20. Which of the following is not a Python legal string operation?
(a) 'abc' + 'abc'
(b) 'abc' * 3
(c) 'abc' + .3
(d) 'abc.lower()
Q21. Given two lists:
L1 = ["this", 'is', 'a', 'List'], L2 = ["this", ["is", "another"], "List"]
Which of the following expressions will cause an error and why?
a) L1 == L2
b) L1.upper( )
c) L1[3].upper( )
d) L2.upper( )
e) L2[1].upper( )
f) L2[1][1].upper( )
Q22. What would The following statements print? Given that we have tuple= ('t',
'p', 'l')
a) print("tuple")
b) print(tuple)
SECTION C (Long Answer type questions carrying 3 marks each)
Q23. Define Operating System. What are important functions of the operating
system Explain?
Q24. State & Prove De-Morgan law using Truth table.
Q25. Find out the error and the reason for the error in the following code. Also,
give the corrected code.
a,b ="5.0","10.0"
x=float(a/b)
print(x)
Q26. A store charges ₹120 per item if you buy less than 10 items. If you buy
between 10 and 99 items, the cost is ₹100 per item. If you buy 100 or more items,
the cost is ₹70 per item. Write a program that asks the user how many items they
are buying and prints the total cost.
Q27. What is the output produced by the following code:
d1 = {5:[6, 7, 8],"a":(1, 2, 3)}
print(d1.keys())
print(d1.values())
Q28. Write a python program to print a table of any number entered by the user.

SECTION D (Long Answer type questions carrying 4 marks each)


Q29. a) Sunil got an assignment to write a python program which receives an
integer and prints the
number after doubling it. He is not getting desired results, help Sunil to find and
correct the
errors in his code given below:
Number=input(“Enter Number”)
DoubleTheNumber = Number*2
Print(DoubleTheNumber)
b) Write a python program to print the following pattern:
____5
___45
__345
_2345
12345
Q30. Write a program that reads from the user — (i) an hour between 1 to 12 and (ii)
number of hours ahead. The program should then print the time after those many
hours, e.g.,

Enter hour between 1-12: 9


How many hours ahead: 4
Time at that time would be: 1 O'clock

SECTION E (Long Answer type questions carrying 5 marks each)

Q31. a) Differentiate between System Software and Application Software.


b) Draw the logic circuit diagram for the boolean expression: X=AB'+A’B+AB.
Also, make
a truth table to find the value of X.
c) Give a brief description of the ASCII encoding scheme. Also, expand ISCII.
Q32. Write python statements using the most appropriate list method/function to
perform the
following tasks:
Given a list L having some elements.
(a) Add a new element 100 as 4th element in the given list L
(b) Add a new element 100 at the last position of the list L
(c) Delete 2nd element from the given list L
(d) Delete the element 100 from the given list
(e) Add elements of another given list L2 in given list L
Q33. Write a program to input a line of text and create a new line of text where
each word of the input line is reversed.
HALF YEARLY EXAMINATION 2024-25

SUBJECT: - COMPUTER SCIENCE (083) MARKING SCHEME CLASS: - XI

SECTION–A
1 d) RAM 1
2 c) 44 1
3 d) ESCII 1
4 c) 1010 1
5 a) A.B’+C’. D 1
6 a) Keywords 1
7 b) name = 'Jiya', c) name = "Jiya" 1

8 b) string 1
9 b) 14.75 1
10 b) and c) 1
11 c) [6, 4, 2] 1

12 c) len() 1
13 a) False True 1
14 C) [20, 30, 40] 1
15 a) and d) 1
SECTION–B
16 (23D) = (1000111101) 1+1=2
16 2, (BC9)16 = (101111001001)2

17 8.0 (The result of Division operator is of float type.) 2


18 for i in range(100, 0, -3): 2
print (i)
19 In this code, assignment operator (=) is used in place of equality operator (==) for 1+1
comparison. The corrected code is below:
weather = 'raining'
if weather == 'sunny':
print ("wear sunblock")
elif weather == "snow":
print ("going skiing")
else:
print (weather)
20 'abc' + .3 is not a legal string operation in Python. The operands of + operator 2
should be both string or both numeric.
21  L1.upper( ) will cause an error as upper() method can be called with Strings 2
not Lists.
 L2.upper( ) will cause an error as upper() method can be called with Strings
not Lists.
 L2[1].upper( ) will cause an error as L2[1] is a list — [ "is", "another"] and
upper() method cannot be called on Lists.

22 a) print("tuple") ⇒ tuple 1+1

b) print("tuple") ⇒ tuple
It will simply print the item inside the print statement as it is of string type.

It will simply print the item inside the print statement as it is of string type.

23 Operating System is defined as a collection of programs that coordinates the 3


operations of computer hardware and software. It acts as a bridge for the interface
between man and machine. Examples of Operating System are: Windows, Linux,
BOSS etc.
Functions of OS: Memory Management, Processor Management, Device
Management
File Management
1 mark for correct definition
2 marks for correct function
24 3

DeMorgan’s First Theorem:


(X.Y)’ = X’ + Y’
DeMorgan’s Second theorem:
(X+Y)’ = X’.Y’
25 a and b are defined as strings not float or int. Division operator doesn't support 3
strings as its operand so we get the error — unsupported operand type(s) for /:
"str" and "str".

The corrected code is:

a, b = 5.0, 10.0
x = float(a/b)
print(x)
26 n = int(input("Enter number of items: ")) 3
cost = 0
if n >= 100:
cost = n * 70
elif n >= 10:
cost = n * 100
else:
cost = n * 120
print("Total Cost =", cost)
27 dict_keys([5, 'a'])
dict_values([[6, 7, 8], (1, 2, 3)])
keys() function returns all the keys defined in the dictionary in the form of a list.
values() function returns all the values defined in the dictionary in the form of a
list.
28 n=int(input("Enter a number : ")) 3
f=1
for i in range (1,n+1):
f=f*i
print("The factorial is : ",f)
or
n=int(input("Enter number : "))
for i in range(1,11):
print(n," X " ,i," = " ,n*i)
(1 mark for correct input, 1 mark for correct process and 1 mark for correct output)
29 a) Number=int(input(“Enter Number”)) # int function 4(1+3)
DoubleTheNumber = Number*2
print(DoubleTheNumber) # p of Print should be in lowercase
1⁄2 + 1⁄2 marks for identification and correction.
b) k=4
for i in range(1,6):
for j in range(0,k):
print('_', end=" ")
for j in range(k+1,6):
print(j, end=" ")
k=k-1
print()
1+1 mark for each correct loop
1 mark for correct print statement
30 hr = int(input("Enter hour between 1-12: ")) 4
n = int(input("How many hours ahead: "))
s = hr + n
if s > 12:
s -= 12
print("Time at that time would be: ", s, "O'clock")
1+1 mark for correct selective statement and indentation
1+1 mark for correct input and print statement
32 (a) L.insert(4,100) 5
(b) L.append(100)
(c) L.pop(1)
(d) L.remove(100)
(e) L.extend(L2)
For each
1⁄2 mark for use of correct list methods, 1⁄2 mark for correct statement.
33 str = input("Enter a string: ") 5
words = str.split()
newStr = ""
for w in words:
rw = ""
for ch in w:
rw = ch + rw
newStr += rw + " "
print(newStr)
1+1 mark for each correct loop
1 mark for correct print statement and function
KENDRIYA VIDYALAYA SANGATHAN

HALF YEARLY EXAMINATION 2024-25


BLUE PRINT
CLASS:XI TIME: 03HOURS
SUBJECT: COMPUTERSCIENCE(083) MAXIMUM MARKS:70
(Q=QUESTIONS, M= MARKS)
21 Marks (UNIT I chapters a,b,c) + 49 marks(UNIT II chapters a,b,c,d,e,f,g)
UNIT TOPIC (18 (7 QUESTIONS) (5 QUESTIONS) (2 QUESTIONS) (3 QUESTIONS) Total
NO. QUESTIONS) 2 Marks 3 Marks SEC 4 Marks 5 Marks Questions&
1 Mark SEC B C SEC E SEC D Total
SEC A VSA SAT LAT Marks
MCQ
I Computer systems and 12 Questions
organization &21 marks
a. Computer system overview 2Q(2M) 1Q(2M) 1Q (3M) 4Q(7M)
b. Data representation 2Q(2M) 1Q(2M) 1Q (3M) 4Q(7M)

c.Boolean logic 2Q(2M) 1Q(2M) 1Q (3M) 4Q(7M)

II Programming and 23 Questions


Computational Thinking - I &49 marks
a. Introduction to problem solving 1Q(1M) 1Q(1M)

b. Getting started with python 1Q (1M) 1Q(1M)


c. Python fundamentals 2Q (2M) 2Q(2M)
d. Data Handling 2Q (2M) 1Q (3M) 1Q (4M) 4Q(9M)
e. Flow of control 2Q(2M) 2Q(4M) 1Q (3M) 1Q (4M) 1Q (5M) 7Q(18M)
f. String Manipulation 2Q(2M) 1Q(2M) 1Q (5M) 4Q(9M)
g. List Manipulation 2Q(2M) 1Q(2M) 1Q (5M) 4Q(9M)
TOTAL 18Q*1M=18M 7Q*2M=14M 5Q*3M=15 M 2Q*4M=8M 3Q*5M=15M 35 QUESTIONS
OF TOTAL 70 M)
HALF – YEARLY SYLLABUS TILL THE CHAPTER LIST MANIPULATION
PM SHRI KENDRIYA VIDYALAYA KARIMGANJ, ASSAM
HALF YEARLY EXAMINATION
SESSION 2024-25
SUBJECT: COMPUTER SCIENCE (083) CLASS XI
MAXIMUM MARKS: 70 TIME: 3 HR
SECTION A 18X1=18
1. The speed of a CPU is measured in:
A. Volts B. Hertz C. Bytes D. Watts
2. Which of the following is a volatile memory?
A. ROM B. Cache Memory C. RAM D. Hard Disk
3. What is the maximum decimal value that can be represented with 8 bits?
A. 128 B. 255 C. 256 D. 512
4. Which data representation system uses 16 symbols (0-9 and A-F) to represent values?
A. Binary B. Decimal C. Hexadecimal D. Octal
5. What is the Boolean expression for the NOT operation on variable A?
A. A' B. A AND 1 C. A OR 0 D. A XOR 1
6. The output of an AND gate is 1 only when:
A. both inputs are 1 B. both inputs are 0 C. either input is 1 D. either input is 0
7. Which is the correct sequence of the following:
A. Program -> Flowchart->Algorithm ->Analysis
B. Analysis-> Program-> Flowchart->Algorithm
C. Analysis-> Flowchart->Algorithm-> Program
D. Analysis ->Algorithm-> Program-> Flowchart
8. Which of the following is not a valid variable name in Python?
A. my_var B. 2nd_var C. _var2 D. Var2
9. A diamond symbol in flowchart represents ___________
A. Start B. Input C. Decision D. Process
10. The term which divides large task into smaller parts is known as ___________
A. Algorithm B. Flowchart C. Decomposition D. Pseudocode
11. Identify the output of the following Python statements.
lst1 = [10, 15, 20, 25, 30]
lst1[3]='1000'
lst1[2]='200'
lst1.insert( 3, 4)
lst1.insert( 2, 3)
print (lst1[-4])

A. 30 B. ‘1000’ C. 4 D.200
12. What is the output of the following
L=[None] *10
print(len(L))
A. 10 B. 0 C. Syntax Error D. None

13. Which of the following is a syntax error


A. 4+’3’ B. ’3’ +’4’ C. 4*3 D.’4’*3
14. State the output of
n=input("enter a word")
print(type(n))

15. Function range(8,0,-2) will yield an iterable sequence like-


A. [8,7,6,5,4,3,2,1,0] B. [7,5,3,1] C. [8,6,4,2,0] D. [8,6,4,2]
16. Which of the following is not a python distribution?
A. Spider B. Netbeans C. Pycharm D. Anaconda
17. Rudra is working in python where he is getting instant result for his single line statement, identify
the mode of python from following:
A. Script Mode B. Interactive Mode C. Debug Mode D. Object Mode
18. Which method would you use to figure out the position of an item in a list?
A. pop() B. insert() C. count() D. index()

SECTION B 7X2=14

19. Write the name of two input and two output devices.

20. What is the binary representation of the decimal number 25? Show the detailed steps.

21. Give examples of two commonly used logic gates and their truth tables.

22. Write an algorithm to find product of two numbers.

23. Identify error in the following code. Rewrite the corrected code after removing errors and

underline the corrections:

a,b=input(“Enter value:”)

result=a/*b

print result

24. Consider the statements given below and then choose the correct output from the given options:

str=”MISSISSIPPI”
print(str[:4]+”#”+str[-5:])

A. MISSI#SSIPPI B. MISS#SIPPI C. MISS#IPPIS D. MISSI#IPPIS

25. Ashi has written the following code in python but did not get the expected result. Help her to
rectify the errors. Underline the corrected statements having errors
a=4
b=’5’
print(a*b)
print(a+b)
SECTION C 5X3=15

26. What is De Morgan's law in Boolean algebra? Provide both forms of the law and illustrate with an

example.

27. Differentiate between RAM and ROM in terms of functionality and volatility.

28. Describe the process of converting a binary number into its hexadecimal equivalent. Provide step-

by-step instructions and an example conversion to demonstrate your answer.

29. Predict the output of the code given below :

text="LearningCS"
L=len(text)
ntext=""
for i in range (0,L):
if text[i].islower():
ntext=ntext+text[i].upper()
elif text [i].isalnum():
ntext=ntext+text[i:1]
else:
ntext=ntext+'&&'
print(ntext)

30. Write a Python program that takes an integer as input and returns "Positive" if the number is
greater than zero, "Negative" if it is less than zero, and "Zero" if it is zero.

SECTION D 2X4=8
31. Given the list marks = [45, 67, 89, 34, 56, 78, 90, 55], perform the following operations:

1. Add the marks 60 and 70 at the end of the list.


2. Remove the mark 34 from the list.
3. Insert the mark 50 at the 3rd position.
4. Sort the list in descending order.

32. Write a for loop that prints all the numbers from 1 to 10 except the ones divisible by 3.
SECTION E 3X5=15

33. Write a Python program using a while loop to find the sum of all odd numbers between 1 and 15.
If the number is 13, skip it using continue.

34. Write a Python script to count and print the number of vowels (a, e, i, o, u) in a given string.

Example:

Input string: "Hello World"

35. Write a Python script that performs the following tasks:

1. Create an initial list of integers.


2. Append three additional integers to the list.
3. Remove any duplicate values from the list.
4. Sort the list in descending order.
5. Print the final sorted list and its length.
PM SHRI KENDRIYA VIDYALAYA KARIMGANJ
HALF YEARLY EXAMINATION
MARKING SCHEME
SESSION 2024-25
SUBJECT: COMPUTER SCIENCE (083) CLASS XI
MAXIMUM MARKS: 70 TIME: 3 HR
Section A: Multiple Choice Questions

1. The speed of a CPU is measured in:

B. Hertz

2. Which of the following is a volatile memory?

C. RAM

3. What is the maximum decimal value that can be represented with 8 bits?

B. 255

4. Which data representation system uses 16 symbols (0-9 and A-F) to represent values?

C. Hexadecimal

5. What is the Boolean expression for the NOT operation on variable A?

A. A'

6. The output of an AND gate is 1 only when:

A. both inputs are 1

7. Which is the correct sequence of the following:

C. Analysis -> Flowchart -> Algorithm -> Program

8. Which of the following is not a valid variable name in Python?

B. 2nd_var

9. A diamond symbol in a flowchart represents ___________

C. Decision

10. The term which divides a large task into smaller parts is known as ___________

C. Decomposition

11. Identify the output of the following Python statements:

lst1 = [10, 15, 20, 25, 30]

lst1[3] = '1000'

lst1[2] = '200'

lst1.insert(3, 4)

lst1.insert(2, 3)
print(lst1[-4])

C. 4

12. What is the output of the following:

L = [None] * 10

print(len(L))

A. 10

13. Which of the following is a syntax error?

A. 4+'3'

14. State the output of:

n = input("enter a word")

print(type(n))

Output: `<class 'str'>`

15. Function range(8,0,-2) will yield an iterable sequence like-

D. [8,6,4,2]

16. Which of the following is not a Python distribution?

B. Netbeans

17. Rudra is working in Python where he is getting instant results for his single line statement, identify the
mode of Python from the following:

B. Interactive Mode

18.Which method would you use to figure out the position of an item in a list?

D. index()

Section B: Short Answer Questions

19. Write the name of two input and two output devices.

Input devices: Keyboard, Mouse

Output devices: Monitor, Printer

20. What is the binary representation of the decimal number 25? Show the detailed steps.

Steps to convert 25 to binary:

25 ÷ 2 = 12 remainder 1

12 ÷ 2 = 6 remainder 0

6 ÷ 2 = 3 remainder 0

3 ÷ 2 = 1 remainder 1

1 ÷ 2 = 0 remainder 1

Binary representation: 11001


21. Give examples of two commonly used logic gates and their truth tables.

AND Gate:

| A | B | Output |

|---|---|--------|

|0|0|0 |

|0|1|0 |

|1|0|0 |

|1|1|1 |

OR Gate:

| A | B | Output |

|---|---|--------|

|0|0|0 |

|0|1|1 |

|1|0|1 |

|1|1|1 |

22. Write an algorithm to find the product of two numbers.

Algorithm:

1. Start

2. Read two numbers, `a` and `b`

3. Calculate the product `product = a * b`

4. Display `product`

5. End

23. Identify error in the following code. Rewrite the corrected code after removing errors and underline the
corrections:

a, b = input("Enter values: ").split() # Corrected

result = int(a) / int(b) # Corrected

print(result)

24. Consider the statement given below and then choose the correct output from the given options:

str = "MISSISSIPPI"

print(str[:4] + "#" + str[-5:])

B. MISS#SIPPI
25. Ashi has written the following code in Python but did not get the expected result. Help her to rectify the
errors. Underline the corrected statements having errors:

a=4

b = '5'

print(a * int(b)) # Corrected

print(a + int(b)) # Corrected

Section C: Descriptive Questions

26. What is De Morgan's law in Boolean algebra? Provide both forms of the law and illustrate with an example.

De Morgan's Laws:

1. The complement of the conjunction of two terms is the disjunction of their complements: `¬(A ∧ B) = ¬A
∨ ¬B`

2. The complement of the disjunction of two terms is the conjunction of their complements: `¬(A ∨ B) = ¬A
∧ ¬B`

Example:

If `A = True` and `B = False`

According to the first law: `¬(A ∧ B) = ¬(True ∧ False) = ¬False = True`

Using complements: `¬A ∨ ¬B = ¬True ∨ ¬False = False ∨ True = True`

27. Differentiate between RAM and ROM in terms of functionality and volatility.

 Storage Type:

 RAM: Temporary and dynamic, used for active data processing.


 ROM: Permanent and static, used for essential system instructions.

 Volatility:

 RAM: Volatile, loses data when power is off.


 ROM: Non-volatile, retains data without power.

 Modification:

 RAM: Read and write capabilities, frequently changed.


 ROM: Read-only during normal operation, rarely changed.

28. Describe the process of converting a binary number into its hexadecimal equivalent. Provide step-by-step
instructions and an example conversion to demonstrate your answer.

Steps:

1. Group the binary number into sets of four bits starting from the right. Add leading zeros if necessary.

2. Convert each group of four bits to its hexadecimal equivalent.

3. Combine the hexadecimal digits.


Example:

Binary number: `11010110`

Grouped: `1101 0110`

Conversion: `1101` (13 in decimal) is `D` in hex, `0110` (6 in decimal) is `6` in hex.

Hexadecimal: `D6`

29. Predict the output of the code given below:

text = "LearningCS"

L = len(text)

ntext = ""

for i in range(0, L):

if text[i].islower():

ntext = ntext + text[i].upper()

elif text[i].isalnum():

ntext = ntext + text[i+1]

else:

ntext = ntext + '&&'

print(ntext)

OUTPUT: LEARNING

30. Write a Python program that takes an integer as input and returns "Positive" if the number is
greater than zero, "Negative" if it is less than zero, and "Zero" if it is zero.
num = int(input("Enter an integer number: "))

if num > 0:

print("Positive")

elif num < 0:

print("Negative")

else:

print("Zero")

print("Error: Please enter a valid integer.")

Section D: Practical Coding Questions

31. Given list

marks = [45, 67, 89, 34, 56, 78, 90, 55]

1. Add marks 60 and 70 at the end of the list.

marks.extend([60, 70])
2. Remove the mark 34 from the list.

marks.remove(34)

3. Insert the mark 50 at the 3rd position (index 2 in zero-based index).

marks.insert(2, 50)

4. Sort the list in descending order.

marks.sort(reverse=True)

Print the modified list

print("Modified list:", marks)

Output:

Modified list: [90, 89, 78, 70, 67, 60, 55, 50, 45]

32. Write a for loop that prints all the numbers from 1 to 10 except the ones divisible by 3.

for num in range(1, 11):

if num % 3 != 0:

print(num)

Output:

1
2
4
5
7
8
10
Section E: Long Answer questions

33. Python program using a while loop to find the sum of all odd numbers between 1 and 15, skipping 13.

num = 1

sum_odd = 0

while num <= 15:

if num == 13:

num += 1

continue

if num % 2 != 0:

sum_odd += num

num += 1

print("Sum of odd numbers between 1 and 15 (skipping 13):", sum_odd)

Output:

Sum of odd numbers between 1 and 15 (skipping 13): 47


34: Python script to count and print the number of vowels (a, e, i, o, u) in a given string.

input_string = "Hello World"

vowels = "aeiouAEIOU"

count = 0

for char in input_string:

if char in vowels:

count += 1

print("Number of vowels in the string:", count

Output:

Number of vowels in the string: 3

35. Python script that performs the following tasks:

1. Create an initial list of integers.

2. Append three additional integers to the list.

3. Remove any duplicate values from the list.

4. Sort the list in descending order.

5. Print the final sorted list and its length.

Create initial list of integers

initial_list = [10, 5, 8, 2]

Append three additional integers to the list

initial_list.extend([15, 3, 7])

Remove duplicates

unique_list = list(set(initial_list))

Sort the list in descending order

unique_list.sort(reverse=True)

Print the final sorted list

print("Final sorted list:", unique_list)

Print the length of the final sorted list

print("Length of the final sorted list:", len(unique_list))

Output:

Final sorted list: [15, 10, 8, 7, 5, 3, 2]

Length of the final sorted list: 7


KENDRIYA VIDYALAYA SANGATHAN

HALF YEARLY EXAMINATION 2024-25


BLUE PRINT
CLASS:XI TIME: 03HOURS
SUBJECT: COMPUTERSCIENCE(083) MAXIMUM MARKS:70
(Q=QUESTIONS, M= MARKS)
21 Marks (UNIT I chapters a,b,c) + 49 marks(UNIT II chapters a,b,c,d,e,f,g)
UNIT TOPIC (18 (7 QUESTIONS) (5 (2 (3 Total
NO. QUESTIONS) 2 Marks QUESTIONS) QUESTIONS) QUESTIONS) Questions&
1 Mark SEC B 3 Marks 4 Marks 5 Marks Total
SEC A VSA SEC C SEC E SEC D Marks
MCQ SAT LAT
I Computer systems and 12 Questions
organization &21 marks
a. Computer system overview 2Q(2M) 1Q(2M) 1Q (3M) 4Q(7M)
b. Data representation 2Q(2M) 1Q(2M) 1Q (3M) 4Q(7M)

c.Boolean logic 2Q(2M) 1Q(2M) 1Q (3M) 4Q(7M)

II Programming and 23 Questions


Computational Thinking - I &49 marks
a. Introduction to problem solving 1Q(1M) 1Q(1M)
b. Getting started with python 1Q (1M) 1Q(1M)
c. Python fundamentals 2Q (2M) 2Q(2M)
d. Data Handling 2Q (2M) 1Q (3M) 1Q (4M) 4Q(9M)
e. Flow of control 2Q(2M) 2Q(4M) 1Q (3M) 1Q (4M) 1Q (5M) 7Q(18M)

f. String Manipulation 2Q(2M) 1Q(2M) 1Q (5M) 4Q(9M)


g. List Manipulation 2Q(2M) 1Q(2M) 1Q (5M) 4Q(9M)
TOTAL 18Q*1M= 7Q*2M=14M 5Q*3M=15 2Q*4M= 3Q*5M= 35 QUESTIONS
18M M 8M 15M OF TOTAL 70
MARKS)
HALF – YEARLY SYLLABUS TILL THE CHAPTER LIST MANIPULATION
KENDRIYA VIDYALAYA SANGATHAN
HALF YEARLY EXAM
SUBJECT: CS CLASS:XI
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Sections A have 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each.
8. All programming questions are to be answered using Python Language only.
M.M.70 TIME:03HRS
OBJECTIVE TYPE QUESTIONS
SECTION A (18 QUESTIONS)
1 Operating system is an example of 1
(a) Application Software (b) System Software
(c) Utility Program (d) None of these
2 RAM and ROM are type of memory. 1
3 The binary equivalent of the decimal number10 is . 1
4 Which of the following is not a valid encoding scheme for characters? 1
(a) ASCII (b) ISCII
(c) Unicode (d) ESCII
5 It is a Logical Gate 1

6 The Boolean equation express the law A+(B+C) = (A+B)+C 1


(a) Associative law (b) Idempotent law
(c) Involution law (d) Commutative law
7 Name two common tools for developing an algorithm. 1
8 Who developed python programming language? 1
9 The input() returns the value as type. 1
10 Python is a sensitive language. 1
11 List is an immutable data type a)True (b)False 1
12 What will the result of the expression 10 or 0? 1
13 Name any one jump statement. 1
14 Function range(3 )will yield an iterable sequence like . 1
15 Which of the following functions will return always a tuple of 3elements? (a)find() 1
(b) index() (c) partition() (d)split()
16 The string indexes begin with onwards. 1
17 Which of the following can delete an element from a list if the index of the 1
element is given. (a) pop() (b) remove (c) del (d) all of these
18 List can contain values of these types 1
(a) Integers (b) float (c) strings (d) all of these
VERY SHORT TYPE QUESTIONS
SECTION B (07QUESTIONS)
19 State any two differences between compiler and interpreter? 2
20 What do you mean by Unicode encoding scheme? 2
21 Write Boolean expression of the given logical gate? 2

22 Write a flow chart to calculate the area of rectangle. 2


23 Find output 2
for i in range(1,16):
if i%3==0:
print(i)
24 Find output: 2
print('one','Two'*2)
print('one'+'Two'*2)
25 What are nested lists? Give Example. 2
SHORT TYPE QUESTIONS
SECTION C (05QUESTIONS)
26 Explain the functional components of computer with the help of a block diagram. 3
27 Convert the following 3
(a) (423)10–()16 (ii) (1010111010)2–()16 (iii) (266)10-()8
28 Explain briefly – 3
a)ASCII b) ISCII c) Unicode
29 Explain the different types of errors with example. 3
30 Find out the output of the Following – 3
x, y=2,6
x, y=y,x+2
print (x, y)
LONG TYPE QUESTIONS
SECTION D (03QUESTIONS)
31 Write a program in python to check if a given number is an Armstrong number or not. 5
32 What will be the output of following program: 3+2
(a) str="Python123.co
for i in range (lenstr str)):

if(str[i].isalpha()):
print(str[i-1],end='')
if(str[i].isdigit()):
print(str[i],end='')
(b)
s='mahender, singh, dhoni'
s1=s.split()
for i in s1:
if(i>'n'):
print(i.upper()) else:
print(i)

OR
Write a Python Program to check First Occurrence of a Character in a String.
33 Find Output: 5
list1 =["python","list",1952,2323,432] list2 =
["this", "is", "another","list"]
print(list1[1:4])
print(list1[1:])
print(list1[0])
print(list1 * 2)
print(list1+list2)
COMPETENCY BASED QUESTIONS
SECTION E (02QUESTIONS)
34 Find Output: 4
a,b,c=1,1,2
d=a+be=1.0
f=1.0g=2.0
h=e+f
print(c==d)
print(c is d)
print(g==h)
print(g is h)
O
R
Find the errors
(a) a=bool(0) b=bool(1)
print(a==false)print(b==true)

(b) name=”Ramesh”print(name)
name[2]=’v’
print(name)

35 Write a python program to input a sentence and count the number of vowels used in 4
the sentence
KENDRIYA VIDYALAYA SANGATHAN
HALF YEARLY EXAM
SUBJECT : COMPUTER SCIENCE
CLASS : XI
MARKING SCHEME

M.M.70 TIME:03HRS

OBJECTIVE TYPE
QUESTIONS
SECTION A (18 QUESTIONS)
1 (b) System Software 1
2 Internal / Main/ Primary 1
3 1010 1
4 (d) ESCII 1
5 XOR 1
6 Associative Law 1
7 Flow chart & Pseudo code 1
8 GuidoVan Rossum 1
9 String 1
10 Case 1
11 False 1
12 10 1
13 Break/continue 1
14 [0,1,2] 1
15 partition() 1
16 0 1
17 Del 1
18 All of these 1
VERY SHORT TYPE QUESTIONS
SECTION B (07 QUESTIONS )
19 A compiler translates the entire source code in a single run. An interpreter 2
translates the entire source code line by line. It consumes less time i.e., it is faster
than an interpreter. It consumes much more time than the compiler i.e., it is slower
than the compiler.
20 Unicode is a universal character encoding standard. This standard includes 2
roughly 100000 character store present characters of different languages.While
ASCII uses only 1byte the Unicode uses 4 bytes to represent characters. Hence, it
provides a very wide variety of encoding.
21 A’B+AB’ 2
22 2

23 3 2
6
9
12
15
24 OneTwoTwo 2
OneTwoTwo
25 A list that occurs as an element of another list (which may of course itself be an 2
element of another list etc) is known as nested list. E.g. [1,2,3,[4,5],6]
SHORT TYPE QUESTIONS
SECTION C (05 QUESTIONS )
26 Mainly computer system consists of three parts, that are central processing unit (CPU), 3
Input Devices, and Output Devices.The Central Processing Unit(CPU) is divided into
two parts again:arithmetic logic unit(ALU) and the control unit (CU). The set of
instruction is in the form of raw data.

27 (a) 1A7 (b) 2BA (c) 412 3


28 a) ASCII – stands for American Standard Code for Information Interchange, is a 3
character encoding standard for electronic communication
b) ISCII is an acronym for Indian Script Code for Information Interchange. ISCII is an
encoding scheme that represents various languages that are written and spoken in
India. ISCII follows single encoding schema, which allows for easy transliteration
between various writing systems
c) Unicode is an international character encoding standard that provides a rite the
equivalent Boolean expression for the following Logic Circuit :unique number for
every character across languages and scripts, making almost all characters
accessible across platforms, programs, and devices
29 Syntaxerror, Semantic error and Logical error. 3
The Python Syntax Error occurs when the interpreter encounters invalid syntax in
code. When Python code is executed, the interpreter parses it to convert it into byte
code.If the interpreter finds any invalid syntax during the parsing stage, a Syntax Error
is thrown.
Asemantic error occurs when a program works without raising an Exception, but
gives a different than the expected result. The underlyingdefects are usually more
difficult to eliminate than defects
30 6 4 3
LONG TYPE QUESTIONS
SECTION D (03 QUESTIONS)
31 num = int(input("Enter a number: ")) 5
sum = 0
temp = num
while temp>0:
digit = temp % 10
sum += digit ** 3
temp //=10
if num ==sum:
print(num,"is an
Armstrong number")
else:
print(num,"is not an Armstrong number")

32 (a) mPytho123.co 5
(b) mahender,SINGH,
dhoni

OR
string=input("PleaseenteryourownStri
ng:")
char=input("PleaseenteryourownCharacter:")
flag=0
for i in range(len(string)):
if(string[i]==char):
flag=1break
if(flag==0):
print("Sorry! We haven't found the Search Character
in this string")
else:
print("The first Occurrenceof",char," is Foundat Position",i+1)
33 ['list',1952, 2323]
['list',1952, 2323, 432]
python
['python','list',1952, 2323,432,'python','list',1952, 2323,432]
['python','list',1952,2323,432,'this', 'is','another','list']
COMPETENCY BASED QUESTIONS
SECTION E (02 QUESTIONS )
34 TrueTrueTrueFalse 4
35 sen=input('Enter any sentence ') 4
vow ='AEIOU'
count=0
for ch in sen:
if ch.upper() in vow:
count=count+1
print('Number of vowels in sentence ', count)

You might also like