Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

KENDRIYA VIDYALAYA SANGATHAN

(HAL YEARLY EXAMINATION)


CLASS: XI SUBJECT: COMPUTER SCIENCE (083)
TIME: 90 MINUTES MAXMARKS: 70

General Instructions
 The question paper is divided into 3 sections – A, B and C
 Section A, consists of 18 questions (1-18). Each question carries 1 mark.
 Section B, consists of 7 questions (19-25). Each question carries 2 marks.
 Section C, consists of 5 questions (26-30). Each question carries 3 marks.
 Section D, consists of 2 questions (31-32). Each question carries 4 marks.
 Section E, consists of 3 questions (33-35). Each question carries 5 marks
 Internal choice is given to Q35.

Section -A
Each question carries 2 marks
Q. Question Marking Marks
No Instructi
ons
1. b.ROM 1 mark 1
for
correct
answer
2. a.RAM 1 mark for 1
correct
answer
3 b.AND 1 mark for 1
correct
answer
4 b)A’B’ 1 mark for 1
correct
answer
5 d.{Hello} 1 mark for 1
correct
answer
6 d)2.0 1 mark for 1
correct
answer
7 a)True 1 mark for 1
correct
answer

[1]
8 b)False 1 mark for 1
correct
answer
9 b)# 1 mark for 1
correct
answer
10 (a) foo+bar 1 mark for 1
correct
answer
11 (c) a,b,c = 1000, 2000, 3000 1 mark for 1
correct
answer
12 American Standard Code for Information 1 mark for 1
Interchange correct
answer
13 (d) print() function 1 mark for 1
correct
answer
14 Ans: 264 1 mark for 1
correct
answer
15 200KB, 1024 KB,20MB, 2GB 1 mark for 1
correct
answer
16 NOT gate 1 mark for 1
correct
answer
17 A+AB = A 1 mark for 1
correct
answer
18 c)Integer 1 mark for 1
correct
answer
19 Any two valid differences between RAM and 1 mark for 2
ROM. each valid
difference
20 ½ mark for 2
To=30
each
for K in range(0, To): correct
if K%4==0: answer
print(K*4)
else:
print(K+3)

[2]
21 Output12 2 marks 2
for correct
answer
22 Output 110 2 marks 2
108 for correct
106 answer
104
102

23 The variable, for which we can change the value is called a 1 mark for 2
mutable variable. each
Example- List, set correct
The variable, for which we cannot change the value is an answer
immutable variable.
Example- String, tuple

24 A)Y=(AB+CD)’ 1 mark for 2


B)Y=(A+B).C’ each
correct
answer
25 i) Application 1/2 mark 2
ii) Application for each
iii) Application correct
iv) System answer
26 Interpreter Compiler 1 mark for 3
Translates program one Scans the entire each
statement at program and correct
a time translates it into difference
machine code.
The overall execution the overall execution
time is time is
comparatively comparative
slower than ly faster
compilers. than
interpreters.
Programming Programming
languages like languages like C,
JavaScript, C++, Java use
Python, Ruby compilers.
use
interpreters.
27 n1=int(input(“enter the first number”)) 3 marks 3
n2=int(input(“enter the first number”)) for correct
n3=int(input(“enter the first number”)) sum=n1+n2+n3
answer
avg=sum/3
print(“sum of numbers:”,sum)
print(“Average of numbers:”, avg)

[3]
28 = . 3 marks 3
= + for correct
A B A+B A.B answer + .
0 0 0 1 1 1 0 1 1 1
0 1 1 0 1 0 0 1 1 0
1 0 1 0 0 1 0 1 1 0
1 1 1 0 0 0 1 0 0 0
29 1.abc 2. _a_ 3.FOR 4.true 5.python1 6. pqr ½ mark 3
for each
correct
answer
30 num = input("Enter a number: ") //Type casting 3 marks 3
missing. for correct
if (num % 2) = 0: // Should be “==” answer
print(num," is Even") #indentation
else:
print(num," is Odd")

31 A. Distributive Law 1 mark for 4


law
identificati
on 3
marks for
truth table

32 num1=int(input("enter number1: ")) 4 marks 4


num2=int(input("enter number2: ")) for correct
sum=num1+num2 answer
print("the sum is ",sum)
diff=num1-num2
print("the difference is ",diff)
prod=num1*num2
print("the product is ",prod)
quot=num1/num2
print("the quotient is ",quot)

[4]
33 a) (A+B). ( 2 marks 5
for
A B C A+B (A+B).( Boolean
0 0 0 0 1 1 0 expressio
n
0 0 1 0 1 1 0 3 marks
for truth
0 1 0 1 0 0 0
table
0 1 1 1 0 1 1
1 0 0 1 1 1 1
1 0 1 1 1 1 1
1 1 0 1 0 0 0
1 1 1 1 0 1 0
34 marks1= int(input("enter the marks in subject 1 ")) 5 marks
marks2= int(input("enter the marks in subject 2 ")) for
marks3= int(input("enter the marks in subject 3 ")) correct
marks4= int(input("enter the marks in subject 4 ")) answer
marks5= int(input("enter the marks in subject 5 "))
totalMarks=marks1+marks2+marks3+marks4+marks5
percentage=totalMarks*100/500
if (percentage>=85):
grade='A'
elif(percentage<85 and percentage>=75):
grade='B'
elif(percentage<75 and percentage>=50):
grade='C'
elif(percentage<50 and percentage>= 30):
grade='D'
elif(percentage>30):
grade='Reappear'

print("student has secured ",grade,"grade")

35 i) num = int(input("Input a number: ")) 5 marks


for
if num > 0:
correct
print("It is positive number") answer
elif num == 0:
print("It is Zero")
else:
print("It is a negative number")

[5]
ii) # input number
inputNumber = 10
# checking whether the number modulus 2 is equal to 0
if inputNumber%2==0:
# printing even if the remainder is 0
print(inputNumber, "is an even number")
else:
# else printing odd
print(inputNumber, "is an odd number")

[6]

You might also like