0% found this document useful (0 votes)
52 views

Sample Paper Unit Test 1 Grade 11

Uploaded by

tailorswifty030
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)
52 views

Sample Paper Unit Test 1 Grade 11

Uploaded by

tailorswifty030
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

SHALOM PRESIDENCY SCHOOL

UNIT TEST I (2023-24)


SUBJECT: COMPUTER SCIENCE (083)
GRADE: XI
SAMPLE PAPER

TIME: 1HOUR. 50 Mins. M.M: 50


___________________________________________________________________________________________________________________________________________
General Instructions:
• Please check this question paper contains 30 questions.
• The paper is divided into 4 Sections- A, B, C and D.
• Section A, consists of 20 questions (1 to 20). Each question carries 1 Mark.
• Section B, consists of 4 questions (21 to 24). Each question carries 2 Marks.
• Section C, consists of 4 questions (25 to 28). Each question carries 3 Marks.
• Section D, consists of 2 questions (29 to 30). Each question carries 5 Marks.
• All programming questions are to be answered using Python Language only.
___________________________________________________________________________________

SECTION A: OBJECTIVE TYPE QUESTIONS (1 x 20 = 20 marks)

1. _____________ is a function which is used to display specified content on the screen. 1


a. Display ()
b. print ()
c. view ()
d. show ()

2. What is another word for ‘iteration’? 1


a. Selection b. Assignment c. Sequencing d. Repetition

3. Which of the following is the invalid variable name? 1


a. .G..
b. fl
c. sum
d. ans

4. Write the shortest way to express each of the following statements. 1


(a) w= w + 1
(b) q= q *2

5. ______________ is the name given to program element. 1


a. Identifier
b. Operator
c. Statement
d. Comments

6. What will be the output of above Python code? 1


str1="45/4"
print("str1")
1/4
7. Python’s interactive interpreter is also known as______.* 1
a. File
b. shell
c. interactive mode
d. none of these

8. Write the output of the given Python code : 1


a = 20
if a > = 22:
print(“if”)
elif a >= 21:
print(“elif”)
else:
print(“else”)

a) Else b) else c)elif d) none of these


9. The ____________ operator is used to find out if division of two number yields any 1
remainder a) / b) + c) % d) //
10. If the value of a = 20 and b = 20, then a+=b will assign ________ to a a) 40 b) 30 c) 20 1
d) 10
11. Which operations result in 8? i) 65 // 8 ii) 17 % 9 iii) 2 * * 4 1
12. The else statement can be a part of ___statement in python. a. if b. def c. while d. for 1
13. Choose correct option : X=2**3**2 1
Statement 1: Order of execution of Multiple Power operators in an expression is Left
to Right.
Statement 2: Value of X will be 512.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct reasoning of
Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning of
Statement 1.
14. Which one of the following is the correct extension of the Python file? 1
a. .py
b. .python
c. .p
d. None of these
15. When an algorithm is written in the form of language somewhat similar to 1
programming, it becomes _______________.
a. Pseudo-Code
b. Program
c. Flow-Chart
d. Syntax

16. What is the error in the following code : 1


x,y=7?
17. State which of the following statement are true: 1
1.If, elif , else are not compound statement.
2.Else if can be used in python.
3.Indentation while working with blocks is not necessary in python.
2/4
4.A pass statement is a null operation; it does nothing.
a.1 b.2 ,3 c.3 d.4

18. Taniya wants to make a fun program , if user enters any number a Good or funny 1
message will appear . She is confused that which is the most suitable control to be
used to make such program. Help her to choose correct option.
a. If b. if else c. if elif d. Nested if else

19. If the user input: 1, what does the following code snippet print? 1

x = float(input ())
if(x==1):
print("Yes")
elif (x >= 2):
print("Maybe")
else:
print ("No")

a. Yes b. No c. Maybe d. Nothing is printed

20. Checking single condition in python requires........... statement 1


a. if b. if....... elif c. switch d. None of these

SUBJECTIVE TYPE QUESTIONS

SECTION B
Answer the following questions: (2 x 4 = 8 marks)

21. 2

3/4
22. 2

23. Write an algorithm to find whether given number is Multiple of 5 or not 2

24. Write the type of operator for the following: 2


(a) !=
(b) ==
(c) AND
(d) <=

SECTION C
Answer the following questions: (3x4=12marks)

25. What is the difference between else and elif construct of if statement? 3
26. Draw a flowchart to find Area of a rectangle. 3

27. Evaluate the following expressions: 3


a. 20 +2 **2
b. 6 * 3 – 3 + 6
c. 50 + 5 % 5

28. Write a program that prints minimum and maximum of five numbers entered by the 3
user.

SECTION D

Answer the following questions: (5 x 2 = 10 marks)

29. WAP a program to accept a character from the user and display whether it is vowel or 5
consonant.
30. Write a menu driven program that has options to 5
• accept the marks of the student in five major subjects in Class X and display the
same.
• calculate the sum of the marks of all subjects.
Divide the total marks by number of subjects (i.e. 5),
calculate percentage = total marks/5 and display the percentage.
Find the grade of the student as per the following criteria:
Criteria
Grade percentage > 85 A
percentage < 85 && percentage >= 75 B
percentage < 75 && percentage >= 50 C
percentage > 30 && percentage <= 50 D percentage

4/4

You might also like