IP Annual REEXAM 23-24
IP Annual REEXAM 23-24
Section – A
1. Identify the interface that allows user to run program or give instructions to the
computer in the form of icons, menus and other visual options.
(a) Graphical User Interface
(b) Character User Interface
(c) Touch Based Interface
(d) Voice Based Interface
2. Nimish has joined an organization which uses only Open Source Software. Help him to
identify which software he cannot use in his organization.
(a) Python (b) Libre Office (c) JAVA (d) Tally
3. Which of the following is not the part of a Processor?
(a) Arithmetic Logic Unit (b) Cache
(b) Control Unit (d) None of these
4. Collection of 4 bits is called ___________.
(a) Bit (b) Kilo byte (c) Byte (d) Nibble
5. What is the minimum possible length of an identifier?
(a)16 (b)1 (c) 64 (d) 8
6. Which of the following is not an example of cloud storage?
(a)Google Drive (b)Microsoft Access (c) iCloud (d) All of these
7. Smallest unit of python programming language is called?
(a) Literal (b) Token (c) Identifier (d) Operator
8. Which of the following commands will create a list?
(a) list1 = list( ) (b) list1 = [ ]
(c) list1 = list([True, False, True]) (d) All the mentioned
9. Which of the following searches for an element in a list and returns its frequency?
(a) search( ) (b) count( ) (c) index( ) (d) lsearch( )
1
10. dict1 = {'A':95,'C':89,'D':92,'E':85}
dict1['B'] = 78
print( dict1)
The result is-
(a) {'A': 95, 'B': 78,'C': 89, 'D': 92, 'E': 85} (b) {'A': 95, 'C': 89, 'D': 92, 'E': 85, 'B': 78}
(c){'B': 78,'A': 95, 'C': 89, 'D': 92, 'E': 85} (d) {'A': 95, 'C': 89, 'D': 92, 'E': 85},{'B': 78}
11. Choose the incorrect statement related to Where clause:
(a) It is used to filter records
(b) It is used to retrieve data that meet some specified conditions
(c) It is used with SELECT statements as well as with INSERT statements
(d) It is used with arithmetical as well as logical operators.
12. A student wants to delete a tuple from a table in MYSQL, which of the following
categories of MYSQL helps him in doing the same:
(a) DML (Data Manipulation Language)
(b) DDL (Data Definition Language)
(c) DCL (Data Control Language)
(d) TCL (Transaction Control Language)
13. Ms. Ruchi has developed a web application using MySQL and Python. To run this
application online, she availed a pre-configured Apache server from cloud having
MySQL and Python pre-installed. Which type of cloud computing model she has used:
(a) IaaS (b) PaaS (c) SaaS (d) DaaS
14. Consider the following SQL statement, What type of statement is this?
ALTER TABLE Employee MODIFY Name VARCHAR(25) ;
(a) DML (b) DDL (c) DCL (d) TCL
15. “Imagine what if our bulbs, fans and refrigerator also become a part of LAN or Internet.
Think about of the advantages and tasks that can be accomplished if all these devices
with smart connectivity features are able to communicate amongst themselves and we
are also able to communicate with them using computers or smart phones.”
In your opinion, which feature are we talking about in the above context?
(a) AR (b) VR (c) WoT (d) IoT
16. Mr. Malhotra is working on MySql table named Student with the following table
schema:
2
Q17 and Q 18 are ASSERTION and REASONING based questions. Mark the correct choice
as
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true and R is the not correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.
Section –B
19. Write down the type of memory needed to do the following:
i) To execute the program
ii) To store the instructions which cannot be overwritten.
20. Suggest the corresponding Python Statement of the following:
i) Assign 30 to a variable length and 40 to a variable breadth.
ii) Assign multiplication of length and breadth to a variable area
OR
Rewrite the following code in python after removing all syntax error(s). Underline each
correction done in the code.
25 = To
WHILE Number<=100:
if Number=>75
print (Number)
Number=Number+10
else
print( Number*2)
Number=Number+50
Section –C
26. Consider the following table- Employee
EmpNo EName DOJ Job Salary Gender
101 Raj Kumar 1998-08-17 Clerk 34000.00 M
102 Bina Rai 1997-11-24 Manager 75000.99 F
103 Amir Khan 1991-02-27 Salesman 30000.00 M
104 Kuldeep Dutta 1997-01-23 Salesman 28999.99 M
105 Jatin jain 1998-12-31 Accountant 55000.00 M
106 Mita Singh 2001-01-01 Clerk 27000.00 F
107 Vimal Jain 2001-10-31 Manager 85000.00 M
(i)Write SQL Queries for the following:
a) To display all jobs available in the table whose salary is 30000.00.
b) To display details of all female employee who are manager.
c) To display details of all names end with ‘a’.
OR
Write SQL commands for the following:
Table : Books
BID Bname Price Publisher Author
1001 Starts with Python 300 Sultan Chand Preeti Arora
1002 The Hunger Games 550 Scholastic Suzanne Collins
1003 Mahashweta 350 Penguin Books India Sudha Murthy
4
27. (i) Name any two areas where the concept of block chain technology can be useful.
(ii) Differentiate between Virtual Reality and Augmented Reality.
28. What is the difference between selective statement and iterative statement? Explain
through example.
OR
Write a python program to print sum of following series :
1+x+x2+x3+x4+……..+xn
32. Carefully go through the code given below and answer the questions based on it
L=[ 2, 3, 4, 5, 6, 7]
print(L)
L.__________(4) #line1
x=L.________(3) #line2
print(“Deleted element from list is”, x)
print(34 in L) #line3
print(L.sort( )) #line4
L1=L*2
print(L1)
1. Which of the following function is used to return the index value from the list in line 1.
A. index( ) B. append( ) C. add( ) D. insert( )
2. Which of the following functions is used to delete an element from the list in line 2?
A. pop ( ) B. del C. remove( ) D. del( )
Section – E
33. Write a program to input n numbers in a list and insert those numbers in another list
which are divisible by 3 and 5 both. Print both lists.
OR
The record of salesman (Name, Item Sold, sale of three quarters and Commission) is
stored in the following list:
Sale=[‘Amit’, ‘Laptop’, [35000,42000,85000],20000]
Write Python statements to retrieve the following information from the list Sale:
i) Print the sale of 2nd Quarter.
ii) Increse the value of commission by 5000.
iii) Change value of product from Laptop to Tablet
iv) Delete Commission from the list.
v) Print minimum sale
34. Consider the following dictionary:
states={‘D’: ‘Delhi’ , ‘K’ : ‘Kerala’ , ‘T’ : ‘Tamil Nadu’ , ‘B’ : ‘Bihar’}
Write Python statements for the following:
i) To insert (‘M’ : ‘Mumbai’) in the dictionary states.
ii) To return the value corresponding to the key ‘T’
iii) To return the length of the dictionary states.
iv) To delete the item from the dictionary corresponding to the key ‘K’
v) To delete the dictionary ‘states’
35. Consider the table ‘Teacher_Details’ given below and write suitable SQL queries of the
following:
Table: Teacher_Details
T_ID T_Name T_DOJ T_Subject Num_of_Periods
1001 Bharti 2018-10-15 Hindi 27
1002 Pratima NULL NULL 32
1003 Savitri 2012-11-13 Hindi 29
1004 Aashna 2020-02-24 English 28
i) Display the T_Name and Num_of_Periods by increasing the number of
periods each by 1.
ii) Display T_Name of all those teachers whose date of joining is after 1st Jan
2019.
iii) Display T_ID and T_Name of all those teachers whose number of periods are
in the range of 25 to 30. (both values included )
iv) Display the details of all those teachers who have not assigned any subject.
v) Display the details of all those teachers whose subject is either Hindi or
Science
OR
6
i) A relation ‘Order’ has the following attributes:
(Order_No, Order_Name, Order_date, Order_Qty, Order_price)
a) Write a command to insert a single row in the table mentioned above.
(Assume appropriate values)
b) Name the attribute which should be taken as the Primary Key?
ii) Ms. Nia wants to retrieve values in descending order from the attribute ‘Order_price’
from the table ‘Order’ mentioned in Q(i). Which clause should she use to
retrieve the same?
iii) Is Null same as ‘ ‘ (a blank space in quotes) in MySql? Write reason to support your
answer.
iv) % and _ are used with _____________ operator in MySQL.