Cs Sample Paper-3
Cs Sample Paper-3
School
Academic Session 2023-2024
Sample Paper-3
Name: _______________________ Subject: Computer Science
Class: 11 Sec: Time:
Date: Max Marks:
General Instructions:
1. This question paper contains two parts A and B. Each part is compulsory.
2. Both Part A and Part B have choices.
3. Part-A has 2 sections:
a. Section – I is short answer questions, to be answered in one word or one line.
b. Section – II has two case studies questions. Each case study has 4 case-based
sub-parts. An examinee is to attempt any 4 out of the 5 subparts.
4. Part - B is Descriptive Paper.
5. Part- B has three sections:
a. Section-I is short answer questions of 2 marks each in which two question
have internal options.
b. Section-II is long answer questions of 3 marks each in which two questions
have internal options.
c. Section-III is very long answer questions of 5 marks each in which one
question has internal option.
6. All programming questions are to be answered using Python Language only
PART-A
SECTION-I
In this section attempt any 16 questions only out of question number 1 to 21:
1. In a CPU, CU Stands for: [1]
(a) Calculating Unit (b) Central Unit
(c) Common Unit (d) Control Unit
2. Types of Primary memory are and . [1]
3. The ....................... convert high level language into machine language code line by line. [1]
4. What is the value of 1+1+1 as per binary addition rules? [1]
5. Which of the following is not a type of Gate in Boolean Algebra? [1]
(a) NAND (b) XNAND
(c) NOR (d) XOR
6. The …………………………………. interface uses entities like icons, menu, points. [1]
Page 1 of 6
7. Identify the valid whitespace character in Python from the following: [1]
(a) '\\' (b) '\"' (c) '\n' (d) '\w'
8. Name the type of error in the following code of Python along with line number. [1]
from math import pi
Radius=int(input("Enter radius of a circle"))
pi*Radius*Radius=area
print("Area of circle =", Area)
9. Python is a case …………..……………………….. language. [1]
10. What is dynamic typing in Python? [1]
11. “ ....................................... is called the act of stealing someone’s personal information like name,
login details, etc. [1]
12. Ravi received a mail from IRS department. On-clicking “Click Here”(a link provided in the
email) he was taken to a site designed to imitate an official looking website such as IRS.gov.
He uploaded some important information on it. [1]
Identify the cybercrime being discussed in the above scenario from the following:
(a) Phishing (b) Plagiarism (c) Hacking (d) Virus Attack
13. Write the output produced by the following code fragment? [1]
i=1
while (i<3):
i=i+1
print (i)
14. A loop with an else clause executes it else’s part only when the loop terminates normally.
(True / False) [1]
15. What is an empty statement in Python? [1]
16. Expand the following terms: [1]
(i) OSS (ii) IPR
17. ……………………………..means freedom to use the software. [1]
18. Which one is not an example of e-commerce website? [1]
(a) Amazon (b) Twitter (c) Flipkart (d) None of these
19. In “https” protocol “S” stands for what? [1]
20. Which of the following errors are harder to detect? [1]
(a) Syntax Error (b) Logical Error
(c) Semantic Error (d) Runtime Error
21. The function keys( ) return all the keys of a dictionary in ………………….. form. [1]
Page 2 of 6
SECTION-II
Both the Case study based questions are compulsory. Attempt any 4 sub parts from each question. Each
question carries 1 mark
22. Manoj a student of class 11 is writing a menu driven program to store and access the name and
contact number of their relatives using dictionary. He has written the following code. As a
programmer, help him to successfully execute his program. [4]
directory= ---------------------------------------- # Line 1 declaration of empty directory
while True:
print("\tMenu")
print("\n1. Add detail of new relative")
print("\n2. Search and display contact number of a relative")
print("\n3. Display the directory")
print("\n4. Exit the program")
choice=int(input("\nEnter your choice"))
if choice==1:
name=input("Enter name of relative")
num=int(input("Enter contact number of relative"))
- -----------------------------------------# Line 2 to add name and num in directory
elif choice==2:
name=input("Enter name of relative to be search")
if ----------------------------------------- # Line 3 condition to match name in the directory
print("Contact No of ",name," is ",directory[name])
else:
print("Name does not exist in the directory")
elif choice==3:
# Line 4 to display the directory
elif choice==4:
# Line 5 condition to discontinue the loop
else:
print("Wrong option selected")
Page 3 of 6
23. Akshat Narayan is designing a program in python to perform various operations on a string
entered by him. Help him to write the steps using appropriate functions or logic to perform the
following tasks. [4]
If he entered the string: str=”Have a nice day.”
Then write down the Python code to perform below tasks on above string.
(i) To print the length of string.
(ii) To print the whole string in upper case (“HAVE A NICE DAY.”)
(iii) To print the string in reverse order (“.yad ecin a evaH”)
(iv) To print the string in title case (“Have A nice Day.”)
(v) To replace substring ‘nice’ with ‘good’ in the string(“Have a good day.”)
PART-B
SECTION-I
Page 4 of 6
29. Predict the output of the following python code: [2]
X, Y, Z = 5, 10, 15
Y=X+Z
X=Y+Z
Z=X+Y
print("X = ", X, "\nY = ", Y,"\nZ = ",Z)
30. What measures one have to take to prevent online frauds? [2]
31. If x=(1,3,4,2,0) then evaluate and write the output of the following expressions: [2]
(i) x[-1] (ii) x[x[0]] (iii) x[0] (iv) x[x[-1]]
32. Differentiate between clear( ) and remove( ) functions of Python in reference of list sequence.
[2]
SECTION-II
33. What are the threats to the computer security? Explain any two threats. [3]
34. State both the theorems of De-Morgan and verify any one theorem using truth table. [3]
35. Write a program that reads a string and count & print number of vowels present in the string.
Example if input string is: “KVS Regional Office Agra (UP)” [3]
Then the output should be: Number of vowels present in the string = 10
36. Write a program in python to print the following pattern using nested loop statements. [3]
1
12
123
1234
12345
OR
Write a program to calculate BMI of a person after inputting its weight in kgs and height in
meters and then print the Nutritional Status as per following table (BMI=weight / height*height):
Nutritional Status BMI criteria
Underweight <18.5
Normal 18.5 – 24.9
Overweight 25 – 29.9
Obese >= 30
Page 5 of 6
37. Define the following terms: [3]
(i) Eavesdropping
(ii) IT-Act 2000
(iii) Cyber Bullying
38. Write a program that reads a number and checks whether it is a palindrome number or not.
[3]
OR
A student’s roll number, name and marks in 5 subjects are available in the form of a tuple as
shown here:
Student = (8, ‘Avinash’, (89,76,80,91,68))
Write a program to print the minimum and maximum marks along with total marks obtained by the
student.
SECTION-III
39. Write a program that reads N number of integer values in a list Marks and performs the following
operations on this list and print accordingly (Assume maximum marks is 100): [5]
(i) Print the average marks achieved by the students
(ii) Number of students achieve 90 and above marks
(iii) Maximum marks achieved by the student(s)
(iv) Number of students fails (marks achieved less than 33)
(v) Number of students got distinction (marks achieved above 75)
40. Write a program that print N number of terms of Fibonacci series and sum of all the N number of
terms of this series. [5]
Example: suppose series contain 10 number of terms then the program should print :
Fibonacci series: 0 1 1 2 3 5 8 13 21 34
Sum of series: 88
OR
Write a menu driven program to implement a simple calculator in python. The program reads two
integer values and provides choice for the user to perform Addition, Subtraction, multiplication, and
division operations on those values. The program continuously gives choice for the user to perform
the above operations till the user select exit option.
Page 6 of 6