Ip 2
Ip 2
General Instructions:
7
ps (A) Immersive Experiences
(B) Virtual Reality
(C) Augmented Reality.
(D) Machine Learning.
Python uses a/an …………. to convert source code to object code. [1]
(A) Interpreter
1
(B) Compiler
Ki
(C) Combination of Interpreter and compiler
(D) Special virtual engine
8 Data manipulation means: 1
(A) Retrieval of information
(B) Insertion of new information
(C) Both (A) and (B)
(D) None of these
9 The full form DML is: 1
(A) Database Manipulation Language
(B) Data Maintaining Language
(C) Data Manipulation Language
(D) Database Maintaining Language
13
ps (B) 524
(C) 64
(D) 12
A ______ is basically a machine capable of carrying out one or more tasks automatically
with accuracy and precision.
(A) Computer
1
(B) Simulator
Ki
(C) NLP
(D) Robot
14 Logical OR operator in SQL is: 1
(A) OR
(B) | |
(C) |
(D) Both (A) and (B)
28
ps Find the object of following questions based on list: [2]
value = [45,32,98, -78, -6, ‘Hello’, ‘Honesty’]
(i) value [5]
(ii) value [-5]
(iii) value [1] + value [-1]
(iv) value [4] + value [-3]
Explain any two different types of statements supported by SQL?
2
2
Ki
Q Section-C (4 x 3= 12 Marks) Mar
No ks
29 Write SQL commands for (i) to (iii) on the basis of table Student. 3
(i) List the name of all students, who have taken stream as Computer.
(ii) Insert a new row in the Student table 6,Kirti,Economics,4000,F
(iii) Display a report, listing Name, Stream, Gender and Stipend, where stipend is 20% of fees.
Write SQL commands for (i) to (iii) on the basis of table Employee
(i) List the names of the employees, who are more than 34 years old sorted by NAME.
(ii) Display a report, listing Name, BasicSal, Department and Annual Salary. Annual salary
equals to BasicSal *12.
(iii) Insert a new row in the EMPLOYEE table: 11,’Vijay’,9300,’Finance’,’1/7/98′,35
30ps Write the output of the following Python code. Explain your answer.
A = [2,4,6,8,10]
L = len (A)
S=0
for I in range (1, L, 2):
S + = A[I]
print (“Sum = “, S)
3
31 There is a mismatch in the following clauses and their functions. Match the clauses with their 3
Ki
respective functions.
ALTER – Insert the values in a table.
UPDATE – Restrictions on columns.
DELETE – Table definition.
INSERT INTO – Change the name of column.
CONSTRAINTS – Update existing information in a table.
DESC – Delete an existing row from a table.
CREATE – Create a database.
32 Write appropriate data types for following columns of an Employee table. 3
(i) JoiningDate
(ii) Salary
(iii) EmployeeName
OR
(i) Display the name and city of people residing in Kolkatta city.
(ii) Display the PID, City and Pincode in descending order of Pincode.
34
ps (iii) Display the name and city of all the females getting Basic Salary above 40000.
(iv) Display Name and Basic Salary of all the persons whose Name start with ‘G’. .
1. The program should ask the user to input the number of elements they want to add to
the list, then ask for each element to be entered and append it to the list.
2. The program should then print the original list.
3. The program should give the user the option to delete an element:
o The program should ask for the position (index) of the element to be deleted
and remove the element at the specified position.
o Alternatively, the program should allow the user to specify the value of an
element to delete and remove the first occurrence of that value from the list.
4. After the deletion, the program should display the updated list.
Or
ps
Ki