SRI SAI VIDYASHRAM SENIOR SECONDARY
SCHOOL
REVISION EXAMINATION-3
Class : XII B Time Allowed : 03:00 Hours
Subject : (083) Computer Science Maximum Marks : 70
Section A
Q0 State True or False (1)
1. “SMTP is used to send mail”
Q0 Which command comes under DML(Data Manipulation Language)? (1)
2. (a)alter (b)update (c) grant (d) create
Q0 command is used to change values in the table from the (1)
3.
database of SQL.
(a) update (b)remove (c) alter (d) drop
Q0 Select the correct statement, with reference to RDBMS: (1)
4. a) NULL can be a value in a Primary Key column
b) '' (Empty string) can be a value in a Primary Key column
c) A table with a Primary Key column cannot have an alternate
key.
d) A table with a Primary Key column must have an alternate
key.
Q0 (1)
5. (a) Write the full forms of the following: (i) VoIP (ii) IMAP
Q0 Which of the following commands is a DDL command? (1)
6.
(a) UPDATE (b) DELETE (c) SELECT (d) ALTER
Q0 SQL statements is used to open a database named “RESULT” (1)
7.
08. A relation can have only one key and one or more than one (1)
keys.
(a) PRIMARY, CANDIDATE
(b) CANDIDATE,ALTERNATE
(c) CANDIDATE ,PRIMARY
(d) ALTERNATE,CANDIDATE
Q0 What are the minimum number of attributes required to create (1)
9.
a table in MySQL?
(a) 1 (b) 2 (c) 0 (d)3
Q1 Which of the following is not part of a DDL query? (1)
0. a) DROP b) MODIFY c) DISTINCT d) ADD
Q1 (1)
1. Which of the following ignores the NULL values inSQL?
a) Count(*) b) count() c) total(*) d) None of these
Q1 Which switching technique follows the store and forward (1)
2. mechanism?
(a) Circuit switching (b) message switching
(c) packet switching (d) All of these
Q1 What is the use of Repeater? (1)
3.
Q1 Network in which every computer is capable of playing the role of a (1)
4. client, or a server or both at same time is called
a) local area network b) peer-to-peer network
b) dedicated server network d) wide area network
Q1 A database is a special control structure that facilitates (1)
5. the row by row processing of records in the result set.
(a) Fetch (b) table (c) cursor (d) query
Q1 For each attribute of a relation, there is a set of permitted (1)
6. values, called the of that attribute.
(a) cardinality (b) degree (c) domain (d) tuple
Q1 A table has initially 7 columns and 9 rows. Consider the (1)
7. following sequence of operations performed on the table –
i. 8 rows are added
ii. 2 columns are added
iii. 3 rows are deleted
iv. 1 column is added
What will be the cardinality and degree of the table at the end of
above operations?
(a) 13,8 (b) 8, 13 (c) 14,10 (d) 5,8
Q1 Which of the following clause is used to remove the duplicating (1)
8. rows from a select statement?
(a) or (b) distinct (c) any (d)unique
A candidate key, which is not the primary key of a table, is a/an . (1)
Q1 a) Primary Key b) Foreign Key c) Candidate Key d)
9.
Alternate
Q20 and 21Key
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
Assertion. SQL but R is True
SELECT's GROUP BY clause is used to divide the (1)
Q2 result in groups.
0.
Reason. The GROUP BY clause combines all those records that have
identical values in a particular field or in group by fields.
Assertion. A GROUP BY query can also include functions. (1)
Q2
1. Reason. ALL SQL functions can be used in a GROUP BY query.
Section – B
Q2 Explain the use of„Primary key‟ in a Relational Database (2)
2. Management System. Give example to support your answer.
Q2 (a) Write the full forms of the following: (i)GSM (2)
3.
(ii)XML
Q2 Differentiate between WHERE and HAVING clause in MySql (2)
4.
Q2 What do you understand by the terms Degree , cardinality of a (2)
5. Relation? Explain with an example.
Q2 (A) Write the full forms of the following: (2)
6. (i) HTTP (ii) FTP
(B) What is the use of Telnet?
Q2 Explain the use of ‘Foreign Key’ in a Relational Database (2)
7. Management System. Give example to support your answer
Q2 Differentiate (2)
8. (i) Hub and switch
(ii) Guided and unguided network
Section C
29. Write the output of the queries (i) to (vi) based on the table given (3)
TABLE: CHIPS
BRAND_NAME FLAVOUR PRICE QUNATITY
LAYS ONION 10 5
LAYS TOMATO 20 12
UNCLE CHIPS SPICY 12 10
UNCLE CHIPS PUDINA 10 12
HALDIRAM SALTY 10 20
HALDIRAM TOMATO 25 30
(i) Select BRAND_NAME, FLAVOUR from CHIPS where PRICE
<> 10;
(ii) Select * from CHIPS where FLAVOUR=”TOMATO” and PRICE
> 20;
(iii) Select BRAND_NAME from CHIPS where price > 15 and
QUANTITY < 15;
(iv) Select count( distinct (BRAND_NAME)) from CHIPS;
(v) Select price , price *1.5 from CHIPS where FLAVOUR =
“PUDINA”;
(vi) Select distinct (BRAND_NAME) from CHIPS order by
BRAND_NAME desc;
Q3 (A) Consider the following tables BOOKS and ISSUED in a (3)
0.
database named “LIBRARY”. Write SQL commands for the
statements (i) to (iv).
Table: BOOKS
BID BNAME AUNAME PRICE TYPE QTY
COMP11 LET US C YASHWANT 350 COMPUTER 15
GEOG33 INDIA MAP RANJEET P 150 GEOGRAPHY 20
HIST66 HISTORY R BALA 210 HISTORY 25
COMP12 MY FIRST C VINOD DUA 330 COMPUTER 18
LITR88 MY DREAMS ARVIND AD 470 NOBEL 24
Table: ISSUED
BID QTY_ISSUED
HIST66 10
COMP11 5
LITR88 15
(i) Display book name and author name and price of computer type
books.
(ii) To increase the price of all history books by Rs 50.
(iii) To display book id, book name and quantity issued for all books
which have been issued.
31. (3)
Differentiate:
(i) LAN, WAN
(ii) Where clause, Having clause
(iii) Bridge, Gateway
SECTION D
32. Magnolia Infotech wants to set up their computer network in the (5)
Bangalore based campus having four buildings. Each block has a
number of computers that are required to be connected for ease
of communication, resource sharing and data security. You are
required to suggest the best answers to the questions i) to v)
keeping in mind the building layout on the campus.
HR
Development
Admin
Logistics
NUMBER OF COMPUTERS
Block Number of computers
Development 100
HR 120
Admin 200
Logistics 110
Distance Between the various blocks
Block Distance
Development to HR 50m
Development to Admin 75m
Development to Logistics 120m
HR to Admin 110m
HR to Logistics 50m
Admin to Logistics 140m
i) Suggest the most appropriate block to host the Server.
Also justify your choice.
ii) Suggest the device that should should be placed in the
Server building so that they can connect to Internet
Service Provider to avail Internet Services.
iii) Suggest the wired medium and draw the cable block to
block layout to economically connect the various blocks.
iv) Suggest the placement of Switches and Repeaters in the
network with justification.
v) Suggest the high-speed wired communication medium
between Bangalore Campus and Mysore campus to
establish a data network.
Q33. Differentiate (i) Bus topology and Star topology (ii) Hub (5)
and Switch (iii) Equi join and natural join (iv)IP address
and MAC address (v) Radio waves and Micro waves
SECTION E
Q34 Write SQL commands for the following queries (i) to (v) based on (4)
the relation Trainer and Course given below:
(i) Displaythe Trainer Name, City & Salary in descending order of
their Hiredate.
(ii) To
display the TNAME and CITY of Trainer who joined the
Institute in the month of December 2001.
To display TNAME, HIREDATE, CNAME, STARTDATE from
(iii)
tables TRAINER and COURSE of all those courses whose FEES is
less than or equal to 10000.
(iv) To display the Trainer ID and Name of the trainer who are not
belongs to ‘Mumbai’ and ‘DELHI’
(4)
Q35 Differentiate:
(i) Drop and Delete
(ii) Alter and Update
(iii) Twisted pair cable and optical fiber cable
(iv) Web browser and web server
Q 36 A company stores the records of motorbikes sold in January, (4)
February, March and April months in MOTOR table as shown below:
Bcode Bname January Februar March April
y
156 Honda 200 310 140 250
234 Pegasus 100 430 120 170
432 Ebony 250 100 280 340
876 Raven 300 150 240 430
970 Hero 250 130 190 100
Based on the data given above answer the following questions:
(i) Identify the most appropriate column, which can be
considered as Primary key.
(ii) If 3 more columns are added and 2 rows are deleted from the
table MOTOR, what will be the new degree and cardinality?
(iii)Write the query to:
(a) Insert the following record into the table
Bcode- 207, Bname- TVS, January- 500, February- 450,
March- 480, April - 350.
(b) Display the names of motor bikes which are sold more
than 200 in January month.
Expand:
Q37. (i) SQL (ii) NIC (iii) PPP (iv) TCP (4)
(v) MAN (vi) FTP (vii) POP (viii) SMTP