XI Final IP
XI Final IP
9 Mr. Malhotra is working on MySql table named Student with the following table schema: 1
10 In SQL, determine the command that is used to SELECT only one copy of each set of 1
duplicable rows:
i) Select Distinct ii) Select Unique iii) Select Different iv) Select All
11 Choose the incorrect statement related to Where clause: 1
FName varchar(20)
LName char(20)
If in a record , value stored in Fname is ‘Anuj’ and LName is ‘Batra’,then FName and
LName will consume _______ and ________ characters space respectively.
i) Primary Key ii) Alternate Key iii) Foreign Key iv) Composite Key
14 A student wants to delete a tuple from a table in MYSQL, which of the following 1
command of MYSQL helps him in doing the same:
15 Ms. Ruchi has developed a web application using MySQL and Python. To run this 1
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:
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as :
i) Both A and R are true and R is the correct explanation for A
ii) Both A and R are true and R is not the correct explanation for A
iii) A is true but R is False
iv) A is false but R is true
17 Assertion: Comments are executed by interpreter. 1
Reasoning: Comments are used to add a remark or a note in the source code.
Reasoning: If a piece of data is stored in two places in the databases, then storage
space is wasted.
SECTION B
19 Deleting digitally stored data means changing the details of data at bit level, which can 2
be very time consuming. Therefore, when any data is simply deleted, its address entry
is marked as free, and that much space is shown as empty to the user, without actually
deleting the data. In case data gets deleted accidentally or corrupted, there arises a
need to recover the data. Recovery of the data is possible only if the contents/memory
space marked as deleted have not been overwritten by some other data.
i) Can you recover the data once deleted? Justify
ii) Give any one security threat involved when we throw away electronic gadgets
that are non-functional.
Or
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
21 Find errors in the following code fragment.(Rewrite the program underlining the 2
correction)
What is the degree and cardinality of the above mentioned table? What will be degree
and cardinality if 2 more rows and 1 column is added?
24 DAV Sports Management Committee has decided to conduct cricket matches between 2
students of class XI and Class XII. Students of each class are asked to join any one of
the
four teams — Team Titan, Team Rockers, Team Magnet and Team Hurricane. During
summer vacations, various matches will be conducted between these teams. Help your
sports teacher to do the following:
Create a table “TEAM” in MySQL with following considerations:
i) It should have a column TeamID for storing an integer value between 1 to 9,
which refers to unique identification of a team.
ii) Each TeamID should have its associated name (TeamName), which should be a
string of length not more than 10 characters.
iii) It should have a column MatchDate.
iv) It should have a column of number of participants namely, TeamParticipants.
25 The Doc_name column of a table HOSPITAL is given below: 2
i) Display names and price of book with price in range 200 to 300 (both values
included)
ii) Display Names and authors of books of bpb and Mcgraw pub.
iii) Insert the following record into the table
11, “Let us c”, “Yashwant”, “prog”, “Galgoria”, 3, 500
30 What is Grid Computing? Explain its two types. 3
Or
i) Name any two areas where the concept of block chain technology can be useful.
ii) Differentiate between Virtual Reality and Augmented Reality
SECTION D
31 The record of salesman (Name, Item Sold, sale of three quarters and Commission) is 5
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) Add sale of 3 quarters.
iii) Change value of product from Laptop to Tablet
iv) Delete Commission from the list
v) Print minimum sale
32 Consider the table ‘Teacher_Details’ given below and write suitable SQL queries of the 5
following:
Write the output of the following SQL commands based on above table Person:
a) Select PersonId from Person where Age between 30 and 40;
b) Select Age+2 from Person where FirstName=’Daniel’;
c) Select PersonId, Age from Person where LastName in (‘Helson’, ‘Gaba’);
d) Select FirstName, Age from Person where LastName=’John’ or LastName=’Sen’;
iii) Which attribute will be primary key in above table and why
SECTION E
34 i. Draw the block diagram of a computer system. Briefly write about the 4
functionality of each component.
ii. What is the need of RAM? How does it differ from ROM?
35 i. Find the output of following: 4
colors=["violet", "indigo", "blue", "green", "yellow", "orange", "red"]
del colors[4]
colors.remove("blue")
colors.pop(3)
print(colors)
ii. Write a program to create a dictionary with name and marks of 5 students as
keys and values, display names of students who have scored more than 90
marks in any subject.