CBSE HALF YEARLY-Computer Science-XI

You might also like

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

SARASWATI HIGHER SECONDARY SCHOOL

CLASS-XI
Subject: Computer Science(086)

Max. Time: 3 Hours Max. Marks: 70


Note: This question paper contains five sections, Section A to E.

General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions of a particular section must be attempted in the correct order.
3. SECTION A has 18 Objective Type Questions of 1 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 02 Long Short Answer Type Questions carrying 04 marks each.
7. SECTION E has 03 Questions carrying 05 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.

Section A

1. What will be the output of the following Python code? 1

i = 1
while True:
if i%3 == 0:
break
print(i)

i + = 1
a) 1 2 3
b) error
c) 1 2
d) none of the mentioned

2. What is the order of precedence in python? 1


a) Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
b) Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
c) Parentheses, Exponential, Multiplication, Division, Subtraction, Addition
d) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

1
3. What are the values of the following Python expressions? 1

2**(3**2)
(2**3)**2
2**3**2
a) 512, 64, 512
b) 512, 512, 512
c) 64, 512, 64
d) 64, 64, 64

4. What will be the output of the following Python expression if x=56.236? 1

print("%.2f"%x)
a) 56.236
b) 56.23
c) 56.0000
d) 56.24

5. which of the following is not a Python legal string operation? 1


(a)'abc' + 'abc' (b) 'abc' *3 (c)'abc' + 3 (d) 'abc'.lower()

6. Out of the following operators, which ones can be used with strings? 1
=, -, *, /, //, %, >, <>, in, not in, <=

7. 1
What will be the output of the following Python code?

1.>>>list1 = [1, 3]
2.>>>list2 = list1
3.>>>list1[0] = 4
4.>>>print(list2)
a) [1, 4]
b) [1, 3, 4]
c) [4, 3]
d) [1, 3]

2
8. The octal equivalent of 1100101.001010 is ______ 1
a) 624.12
b) 145.12
c) 154.12
d) 145.21

9. 1

10. 1

11. 1

12. 1

13. 1

14. 1

15. 1

3
16. 1

17. 1

18. 1

Section B

19. Find the error in the following code: 2


(a) y = x +5 (b) a=input(“Value: “) (c) print(x = y = 5)
print(x,y) b = a/2
print( a, b)
OR

20. What are operators? What is their function? Give examples of some unary and binary
operators. 2
OR
What are loops in Python? How many types of loop are there in Python?
21. 2

OR
What are jump statements in Python? Name jump statements with example.
22. What will be the output of the following 2
(a) 12/4 (b) 14//14 (c) 14%4 (d) 14.0/4 (e) 14.0//4 (f)14.0%4
OR
If a is [1, 2, 3], what is the difference (if any) between a*3 and [a, a, a]?
23. WAP to compute the result when two numbers and one operator is given by user. 2
OR
WAP to input a digit and print it in words.

4
24. What is the difference between an expression and a statement in Python? 2
OR
Which of the following are syntactically CORRECT AND INCORRECT strings?
(a) ”Python is nice Language”
(b) „He called me “Friend!” when he came‟
(c) “Very Good‟
(d) „This is a good book‟
(e) “Namaste
(f) “I liked „Harry Potter‟ very much”
25. What are different types of threats to computer security? 2
OR
What is Eavesdropping? What security measures can you take up to prevent it?
Section C

26 WAP to print the following series – 3


(i) 1 4 7 10 . . . . . . .40
(ii) 1 -4 7 -10 . . . . . . . . -40
27 WAP to find the 2nd largest number from the list of the numbers entered through 3
keyboard. (This program is from List Chapter)
OR
WAP to create a dictionary named year whose keys are month names and values are
their corresponding number of days.

5
28. Write a program to accept sales of n (accept value of n from user employees of 3
a company. Calculate the incentive to be given based on the following criteria.
Sales Incentive
>100000 10% of sales
75000 to 100000 7% of sales
<75000 5% of sales

or

On the occasion of Diwali festival, Big Store gives the following

offers: sales>=5000, the discount will be 20% of the sales

1000<sales<5000 the discount is 10%

500<sales<1000 the discount is 5%

sales <500 no discount

Write a program in Python that accepts sales and customer number from the
user and calculate the net amount which the customer has to pay after availing
discount (if any).

29. Convert the following 3


(6784)10=( )2
(111010) 2=( )10
(457)8=( )2

30. State DeMorgan‟s law of Boolean Algebra and verify them using truth table. 3

Section D
31. (i) [2+2=4]

6
(ii)

32. [2+2=4]
(i) What are various categories of software?
(ii) What is the function of CPU in a computer system? What are its sub units?

Section E

33. [2.5+2.5=
(i) Why are NAND and NOR Gates more popular?
5]
(ii) Differentiate between compiler and interpreter.
34. (i) What is cyber-crime? How can you report it? [2.5+2.5
=5]
(ii) What is digital footprint? Why is it so important?

35. [2.5+2=5]

You might also like