Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

half xi-1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

KENDRIYA VIDYALAYA ONGC DEHRADUN

HALF-YEARLY
Class: XI Computer Science (083)
Maximum Marks: 70 Time Allowed: 3 hours
General Instructions:
1.This question paper contains five sections, Section A to E.
2.All questions are compulsory.
3.Section 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. One internal choice is given in Q35 against part c only.
8.All programming questions are to be answered using Python Language only.

Q1. State True or False 1


“Cache memory stores the instruction that are most frequently executed”
Q2. Which of the following is not a system software : 1
a)Android b) system utilities c)device drivers d) Microsoft word
Q3. Which of the following is best in terms of quality of printing? 1
a) Laser printer b) Dot matrix printer c)Inkjet printer d)Line printer
Q4. Computers cannot solve problems on their own. We must provide clear, step-by-step 1
directions on how to solve the issue, this solving technique is known as __
a. Problem Solving b. Problem Addressing
c. Problem Analysis d. None of the above
Q5. _______is the layer of a computer system between the hardware and the user program. 1
a)system environment b)operating system c)compiler d)application software
Q6. The output of a two input AND gate is 1 : 1
a)Both of its input are 1 b)Both of its input are 0
c) Any of its input is 1 d) Any of its input is 0
Q7. Which of the following is called an inverter 1
a)AND b)OR c)NOT d)XOR
Q8. 7. To complete each activity in a computer, we follow a sequence of steps. This sequence of 1
steps is known as ________.
a. Problem b. Algorithm
c. Problem Analysis d. None of the above
Q9. A =”hello” 1
What will be the data type of A __________.
a. integer b. Bool
c. String d. Float
Q10. In the Python statement x = a + 5 - b: 1
a and b are ________ and a + 5 - b is ________

a. terms / group b. operand/equation


c. operand/expression d. operand/statement

Q11. What is the value of the expression 100 / 25 1


a. 4 b. 4.0
c. 0.4 d. 1/4
Q12. What are the values of 2**(3**2), (2**3)**2, and 2**3**2 ? 1

a. 64, 512, 64 b.512, 64, 512


b. 512, 512, 512 d. 64, 512, 512

Q13. Which of following is not a decision-making statement. 1


a) if-elif statement b. if statement
c. if -else statement d. for statement
Q14. Which of the following is not used as loop in Python? 1
a. for loop b. while loop
c. do-while loop d. None of the above
Q15. str1="hello" 1
c=0
for x in str1:
if(x!="l"):
c=c+1
else:
pass
print(c)

a. 2 b. 0
c. 4 d. 3
Q16. The__________ function returns the exact copy of the string with the first letter in 1
uppercase:
(a) find() (b) copy()
(c) upper() (d) capitalize()
Q17 and 18 are ASSERTION AND REASONING based questions.
Mark the correct choice as
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
Q17. Assertion (A):- Elements of a strings in python can be accessed with positive and negative 1
integers .
Reasoning (R):- Python strings support both positive and negative indexing .
Q18. Assertion (A):- We can modify string contents. 1
Reasoning (R):- Python strings are immutable .

SECTION B
Q19. What are two execution modes in python ? Explain each . 2

Q20.. Write two differences between Compiler and interpreter . 2


Or
How many bits are there in 3 MB.

Q21. What is a truth table. Explain with an example . 2

Q22. Explain lvalue and rvalue with an example ? 2

Q23. Write a python program to take radius of a circle as input from user and print area of the 2
circle . Take PI=3.14

Q24. Explain positive and negative indexing in pyhton Strings ? 2


Or
What is string slicing explain in with example.

Q25. Explain the difference between break and continue keywords? 2

Or
Write the output of the following code :

x=2
while x>1:
x-=1
print(“inside the loop”)
else:
print(“out of loop”)

SECTION C

Q26. Write two De-Morgans laws. Prove any one. 3

Q27. Define tokens in python ? How are tokens classified in python. 3


Or
What are mutable and immutable datatypes? Give example of each. Also give example of
ordered and unordered datatype.
Q28. Explain following : 3
a)Syntax error b)logical error c)runtime errors
Q29. Write a python program to take three numbers as input from user and print the numbers in 3
sorted order ?

Input : 23, 45, 12


Output: 12 , 23 , 45
Q30. Write a python program to take a string as input from user and print how many words in the 3
string has length 4.

Or
Write a python program to take a string as input from user and print each word in lower
case.

Input : This IS India


Output: this is india

SECTION D

Q31. Convert the following from one base to another: 5


a) (1100110 )2 = ( )10
b) (23456 )10 = ( )2
c) (10001101 )2 = ( )16
d) (ABC)16 = ( )2
e) (111)2 = ( )8
Q32. Write a program to find the sum of digits entered by a user : 5

Input:362
Output:11
Or

Write a program to find whether a number entered by a user is Armstrong or not .


( Armstrong number is a number that is equal to the sum of cubes of its digits.)
Example : 153 = (1*1*1)+(5*5*5)+(3*3*3)

Q33. Explain following String functions in python with example: 5


i)isalnum() ii)upper() iii)index() iv)replace() v) split()

or
Predict the output :
astring = "Hello world!"
print(astring[::-1])
print(astring[-5:])
print(astring[3:7:1])
tmp = "-"
print (tmp.join(astring))
string1 = "gold is heavy metal"
print(string1.partition('is'))

SECTION E

Q34. Write a python program to take a number as input from user and print the factorial of that 4
number .
Q35 4

With respect to block diagram answer the following : (OPTION GIVEN IN PART C
ONLY)
a. What is the name of box A.
b. What is the function of Arithmetic & Logic unit
c. Write the names of two main memory OR Write the names of two auxiliary
memory
d. Give example of one input and one output device .

You might also like