11_QP (1)
11_QP (1)
(a) value error b)name error c) type error d)none of the above
4 RAMs are faster than RAMs and that is why are used in cache 1
memory.
9 A business is using software A to generate bills, then to which category this software 1
belongs?
(a). System (b). Application (c). Language Processors (d). Both a and b
1
b. S [:5 ]
c. S [-5:]
d. S [:-5]
13 What is the correct order? 1
(a) Bytes>KB>MB>TB (b) MB>Bytes>KB>Bit
(c) GB>MB>KB>Bytes (d) KB>GB>Byts>MB
14 Which of the following are DDL Commands: 1
a) Delete
b) Create
c) Update
d) Alter
e) Drop
i) B, D & E ii) A, B & D iii) B, C & D iv) A, B & C
Q17 and Q18 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
17 Assertion(A): In python identifier a and A are treated differently 1
Reasoning(R): Identifier starts with alphabet or underscore in Python
18 ASSERTION (A): The if-else is a conditional statement in which either of the two actions is 1
to be
taken based on the given condition.
REASON (R): It means if the condition is initially false , it will perform either of the two
blocks.
SECTION B
19 (i) Which of the following statement(s) would give an error upon executing the 2
following code?
S="Welcome to class XI" #
Statement 1print(S) # Statement
2 S='2024' #
Statement 3S[3]='3'
# Statement 4
print("Approaching end of year", S) # Statement 5
a) Statement 1
b) Statement 3
c) Statement 4
d) Statement 5
ii) Single line comments in python begins with symbol.
a. & b. $ c. % d. #
20 How is a Primary Key different from a Unique Key in SQL? 2
OR
How is alter command different from update command? Explain with example.
21 Differentiate between RAM and ROM 2
2
OR
Differentiate between Interpreter and Compiler.
22 A table Employee has 10 rows and 4 columns. Find the degree and cardinality of table 2
store when one row is added and 1 column is removed from the table.
OR
Define Candidate Key.
23 Name the input or output device used to do the following: 2
a) To display the data or information
b) To make hard copy of a text file
c) To assist a visually-impaired individual in entering data
d) To enter audio-based command.
24 Four friends Lakhan, Anil, Kanika and Sujoy is planning to try a startup. They have a 2
limited budget and limited computer infrastructure. List some of the cloud-based
services that they can be used for their startup. Why should they avail the benefits of
cloud services to launch their startup?
25 Explain any two areas where Natural Language Processing is used extensively. 2
SECTION C
26 Consider a dictionary named Friends which stores Name and roll number of your 3
friends as key value pairs:
Friends={“Amit”:121, “Pooja”:456, “Ankur”:112, “Sharad”:143 , “Ankita”:532}
Write python statements to perform the following operations on this dictionary:
a. Check if a friend named “Praveen” is present in the dictionary or not
b. Display the keys of Dictionary Friends
Retrieve the value corresponding to the key “Pooja”.
27 Predict the output based on the list, cod = [98, 45, 62, 14, 1007] 3
a) print(len(cod))
b) print(cod * 2)
c) print(1007 in cod)
d)print(cod[:2]+cod[2:])
e) print(cod. pop(1))
f) print(cod.pop())
28 What will be the output of following code? 3
def Total(Number=10):
Sum=0
for C in
range(1,Numbe
r+1): if
C%2==0:
continue
Sum+=C
return Sum
print(Total(4)) print(Total(7)) print(Total())
3
29 Consider the table MEMBER given below and write the output of the SQL queries that
follow-
Based on the given table, write SQL queries for the following:
i) Increase the salary by 10% of employees whose allowance is known.
ii) Display Name and Total Salary (sum of Salary and Allowance) of all
employees. The column heading ‘Total Salary’ should also be displayed.
iii) Delete the record of employess who have salary greater than 40000.
SECTION D
31 Consider the doctor and patient table and write the output of (i) to (iv) 4
Table:Doctor
docid Dname Specialization Outdoor
D1 MANISH PHYSICIAN MONDAY
D2 PARESH EYE FRIDAY
D3 KUMAR ENT SATURDAY
D4 AKASH ENT TUESDAY
4
Table:Patient
Pid Pname did Date_visit
P1 Lal singh D2 2022-04-25
P2 Arjun D1 2022-05-05
P3 Narender D4 2022-03-13
P4 Mehul D3 2022-07-20
P5 Naveen D2 2022-05-18
P6 Amit D1 2022-01-22
5
SECTION E
33 Consider the following tables: Students and Courses. 1*5
Table: Students
Student Id Name Age Course Id
1 Alia 21 101
2 Shubham 22 102
3 Firoz 23 101
4 Gyanvi 24 103
5 Aryan 22 102
Table: Courses
Course Id CourseName Instructor
101 Mathematics Prof. Ghosh
102 Physics Prof. Smith
103 Chemistry Prof. Jangre
a) Display all the details of students along with their respective course names.
b) List the names of students enrolled in the 'Physics' course.
c) Update the instructor of the 'Chemistry' course to 'Dr. Talpade'.
d) Delete the student record where the student's name is 'Gyanvi'.
e) Add a new course with CourseID 104, CourseName 'Biology', and Instructor 'Dr.
White'.
34 (i ) Obtain output of the following: 2+3
a = "Year 2024 @
Best"b =
a.partition('2')
a = a.split('2')
c = a[0] + ". " + a[1] + ". " + a[2]
print(b)
print(c)
ii) Explain the following String functions in Python using suitable examples.
a) find()
b) count()
c) index()
35 Consider the following tables: Employees and Departments
Employee
EmployeeID Name Age DepartmentID Salary
1 John 28 1 50000
2 Sara 32 2 60000
3 Robert 25 1 55000
6
4 Radhika 29 3 75000
5 David 45 2 80000
Department:
DepartmentID DepartmentName
1 HR
2 IT
3 Finance
a) Display the names and salaries of all employees who work in the 'IT' department.
b) List all departments along with the number of employees in each department.
c) Find the average salary of employees in the 'HR' department.
d) Add a new employee 'Emma' who is 30 years old, works in the 'Finance' department,
and has a salary of 70000.
e) Increase the salary of all employees in the 'HR' department by 10%.
*******************