CBSE Class 12 Papers Multimedia and Web Technology Ebook
CBSE Class 12 Papers Multimedia and Web Technology Ebook
Year 2018:
Year 2017:
Year 2016:
Year 2015:
CBSE Class 12th Multimedia and Web Technology 2015 : Set-I,II,III
Downloaded From : http://cbseportal.com/
Code No. 89
Code number given on the right hand side of the question paper should be
written on the title page of the answer-book by the candidate.
Please write down the Serial Number of the question in the answer-book before
attempting it.
15 minute time has been allotted to read this question paper. The question
paper will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the
students will read the question paper only and will not write any answer on the
answer-book during this period.
.89
Downloaded 1
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
Table : TOPICS
TopicID TopicName TopicSessions TopicCost
Artificial Intelligence
T01 10 10000
Overview
T11 AI in Education 5 5000
Basic Machine
T02 15 12000
Learning
Advanced Machine
T13 20 15000
Learning
Basics of Deep
T03 10 10000
Learning
Table : TRAINERS
(i) Write SQL command to display all the records in the table
TRAINERS. 1
.89
Downloaded 2
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
(iii) Which attribute can act as the primary key for the table
TRAINERS ? 1
(b) Ranjukta is trying to create a Flash movie. She had added 2 layers
to the movie. She is able to see the content placed on layer1 on the
stage but the content placed on layer2 is not visible. What should
she do so that she can see the content of layer2 ? 1
(i) PNG
(ii) DAT
(a) Which feature will you use to see faint images of the keyframes
before and after the current frame ? 1
(b) Which of the following is a way to take a word and animate each
letter separately ? 1
(iii) Frame-by-frame
.89
Downloaded 3
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
(c) Explain the term morphing with the help of a suitable example. 2
FUTURE FUTURE
The graphic on the left hand side shows the position of text
for frame 1.
The graphic on the right hand side shows the position and
size for frame 50.
Write the procedure and property settings for animating the above
scenario. 4
.89
Downloaded 4
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
(b) Write the HTML code to generate the web page in the format
shown : 8
In computer science, artificial intelligence, sometimes called machine intelligence, is intelligence demonstrated
by machines in contrast to the natural intelligence displayed by humans
Popular subsets of Artificial Intelligence
1. Machine learning
2. Narural Language Processing
3. Computer Vision
Applications of Artificial Intelligence
Machine Learning Face Recognition and Robotic Arm
Natural Language Processing Spell Check and Autocomplete
Computer Vision Object Recognition and Pose Recognition
To Explore More Mail to us
(v) Table should have a border of width 1, border of the table should
be ‘‘green’’.
.89
Downloaded 5
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
(a) What are the two major advantages of using $_POST instead of
$_GET ? 2
(c) Swayam wrote the following code to loop through the items in the
$colors array and display them. Identify the errors in the
following code and rewrite the corrected code : 2
$colors = new array ("red", "green", "blue", "yellow");
forevery ($colors == x)
{
echo $x;
}
(i) echo(10*2*46*6);
.89
Downloaded 6
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
<?php
$servername = "localhost";
$username = "root";
$pwd = "SimSim";
If( __________)
If (____________(($conn, _________ ))
else
mysqli_close($conn);
?>
.89
Downloaded 7
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
.89
Downloaded 8
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
Write the JavaScript code to display the amount earned, on the click
of the CHECK button, in a message box calculated as
.89
Downloaded 9
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
Block A Block B 50 m
Block C Block D 25 m
Block A Block C 90 m
Block A 25
Block B 35
Block C 45
Block D 75
.89
Downloaded 10
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
(i) Draw the most appropriate cable layout to connect all three
blocks for efficient communication. 1
(iii) Name the block that is most suitable to house the server for
this campus with a suitable reason. 1
.89
Downloaded 11
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
SET-4
Series BVM Code No. 90
Candidates must write the Code on the
Roll No.
title page of the answer-book.
INFORMATICS PRACTICES
Instructions :
(iv) Q.3, Q.5 and Q.6 have to be answered with respect to MySQL.
90
Downloaded 1
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
(i) Modem
(ii) Switch
(b) Write two ways used to make sure that the data is secure and
is available only to the intended and authorized persons in a
network. 2
(c) Expand TCP/IP. Write the purpose of TCP/IP in communication of
data on a network. 2
(d) Expand the following terms : 2
(i) MAC Address
(ii) ODF
(e) Explain in brief any one freedom offered by Open Source Software.
Write one example for each of the following : 2
(i) An Open Source Operating System
(ii) An Open Source Office Suite
2. (a) Write the data type of variables that should be used to store the
following in Java : 1
(i) Sales amount (of Sales) achieved by a Sales Person
(ii) Roll Number of Student
(b) Distinguish between isSelected() and setSelected() methods of Java
with the help of example. 1
(c) What will be displayed in jTextField1 and jTextField2 when the
following code is executed ? 2
int x,y,z,t;
x = 3;
y = 8;
z = x+y/8;
t = z++;
jTextField1.setText(""+z);
jTextField2.setText(""+t);
OR
90
Downloaded 2
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
(d) The following HTML code has error(s). Rewrite the correct code
underlining corrections made. 2
<ol type="A" begin="4">
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<end>
OR
(e) Write the output that will be displayed on jLabel1 and jLabel2. 2
String a,b,c,d,x;
a= "Keep";
b="your";
c="surroundings";
d="clean";
int e = b.length()/4+d.length()*2;
x=b+c+d;
x=a.concat(x);
jLabel1.setText("The value of e = "+e);
jLabel2.setText(x.toUpperCase());
90
Downloaded 3
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
(f) Write the output displayed in jTextField1 and jTextField2 when the
following code is executed : 2
char code;
int z;
z = 0;
code = ‘w’;
switch (code)
{
case ‘w’ : z = z+1;
case ‘r’ : z = z+2;
break;
case ‘s’ : z=z +3;
break;
default : z = z+4;
}
jTextField1.setText(""+z);
jTextField2.setText(""+code);
OR
(b) ‘Employee’ table has a column named ‘CITY’ that stores city in
which each employee resides. Write SQL query to display details of
all rows except those rows that have CITY as ‘DELHI’ or ‘MUMBAI’
or ‘CHANDIGARH’. 1
90
Downloaded 4
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
Abhay wants to know the number of students who took the test. He
writes the following SQL statement to count STUDENTID without
duplicates. However the statement is not correct. Rewrite the correct
statement. 2
(d) Aman has used the following SQL command to create a table ‘stu’ :
CREATE TABLE stu
(
id INTEGER,
name VARCHAR(100)
);
Then, Aman enters the following SQL statements to enter
4 rows :
INSERT INTO stu VALUES (1, "abc");
INSERT INTO stu VALUES (2, "abc");
INSERT INTO stu VALUES (3, "bcd");
90
Downloaded 5
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
(e) Write SQL statement to add a column ‘‘COUNTRY’’ with data type
and size as VARCHAR(70) to the existing table named ‘‘PLAYER’’.
Is it a DDL or DML or TCL command ? 2
(f) Table Student has the columns RNO and SCORE. It has 3 rows in it.
Following two SQL statements were entered that produced the
output (AVG(SCORE) as 45 and COUNT(SCORE) as 2) : 2
(i) AVG(SCORE)
(ii) COUNT(SCORE)
Data in SCORE column is same in two rows. What data is present in
the SCORE column in the three rows ?
(b) Rewrite the following code after correcting errors. Underline the
corrections made. 2
int a, c;
30 = c;
4 = a;
while do (c>10)
{
a = = a + c;
c = c-5;
}
90
Downloaded 6
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
(e) Write the values of i and k after execution of the following code : 2
int i,j,k;
i = 2;
j = 8;
k = 6;
do
{
i = i + 4;
k = k + i;
}
while (i < j);
90
Downloaded 8
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
5. Consider the following table ‘Transporter’ that stores the order details
about items to be transported. Write SQL commands for the statements (i)
to (viii) and write output for SQL queries (ix) and (x).
Table : TRANSPORTER
ORDERNO DRIVERNAME DRIVERGRADE ITEM TRAVELDATE DESTINATION
WASHING
10016 MOHAN VERMA B 2019-06-06 LUCKNOW
MACHINE
90
Downloaded 9
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
6. (a) Mr. Sen has to create a table named ‘Employee’ with Columns to
store EmpID, Name, Designation, Age and Salary. EmpID is the
Primary key and Name cannot be NULL.
Some of the rows that will be inserted are shown below.
101 Smita Kumar Secretary 28 39500.00
102 Mani Scott Programmer 32 45300.00
103 Firdaus Ali Programmer II 45 67500.00
Write SQL query to create the above table with appropriate data
types and sizes of columns. 2
OR
Ms. Rajshri is the Class Teacher of Class XII. She wants to create a
table named ‘Student’ to store marks in different subjects of her
class. Identify any 4 columns for the table along with their suitable
data types.
(b) Consider the following tables PARTICIPANT and ACTIVITY and
answer the questions that follow :
Table : PARTICIPANT
ADMNO NAME HOUSE ACTIVITYCODE
6473 Kapil Shah Gandhi A105
7134 Joy Mathew Bose A101
8786 Saba Arora Gandhi A102
6477 Kapil Shah Bose A101
7658 Faizal Ahmed Bhagat A104
Table : ACTIVITY
ACTIVITYCODE ACTIVITYNAME POINTS
A101 Running 200
A102 Hopping bag 300
A103 Skipping 200
A104 Bean bag 250
A105 Obstacle 350
When the table ‘‘PARTICIPANT’’ was first created, the column
‘NAME’ was planned as the Primary key by the Programmer. Later a
field ADMNO had to be set up as Primary key. Explain the reason. 2
OR
Identify data type and size to be used for column ACTIVITYCODE in
table ACTIVITY.
90
Downloaded 10
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
(c) With reference to the above given tables (in Q6 b), write commands
in SQL for (i) to (iii).
S.No. Function
3. Let the user choose one TSHIRT size out of the categories :
XL / L / M / S
90 11 0,000
Downloaded From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
SET-4
Series SGN Code No. 90
Candidates must write the Code on the
Roll No.
title page of the answer-book.
INFORMATICS PRACTICES
Instructions :
90
Downloaded 1
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
1. (a) ABC Company wants to link its computers in the Head office in New
Delhi to its office in Sydney. Name the type of Network that will be
formed. Which Communication media should be used to form this
Network ? 2
(i) Microwaves
(iii) Node
(ii) IP
(i) This device constantly looks at all the data entering and
exiting your connection. It can block or reject data in response
to an established rule.
90
Downloaded 2
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
2. (a) Identify the invalid variable names. Sate the reason if invalid. 1
(ii) Product_1
(iii) Sales123
(iv) 2Marks
(b) Write the data type of variables that should be used to store : 1
(c) Write examples of any two properties and any two methods of
jButton component. 2
(d) Write the purpose of HTML. Distinguish between <P> tag and <BR>
tag. 2
if (code == ‘A’)
allowance = 3500;
else if (code ==’B’)
allowance= 3200;
else
allowance =2000;
90
Downloaded 3
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
3. (a) What is MySQL used for ? Abhay wants to start learning MySQL.
From where can he obtain the MySQL software ? 1
(b) In the table ‘‘Student’’, Priya wanted to increase the Marks (Column
Name:Marks) of those students by 5 who have got Marks below 33.
She has entered the following statement :
Identify errors (if any) in the above statement. Rewrite the correct
SQL statement. 1
(c) (i) Name the Data type that should be used to store
AccountCodes like ‘‘A1001’’ of Customers. 1
Table : Player
PCODE POINTS
1 50
2 NULL
3 40
90
Downloaded 4
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
(e) ‘Class’ table has columns RNO and NAME.
The following statements are executed :
SET AUTOCOMMIT = 0;
INSERT INTO CLASS VALUES(5,'Rajiv');
COMMIT;
UPDATE CLASS SET NAME='Rajeev' WHERE ID=5;
SAVEPOINT A;
INSERT INTO CLASS VALUES(6,'Chris');
SAVEPOINT B;
INSERT INTO CLASS VALUES(7,'Feroze');
SELECT * FROM CLASS;
ROLLBACK TO B;
SELECT * FROM CLASS;
(f) Name SQL Single Row functions (for each of the following) that 2
(i) returns a number.
(ii) returns lowercase letters.
(iii) returns names of days. For example : ‘‘Monday’’, ‘‘Tuesday’’.
(iv) returns weekday number. For example : 1 for Sunday, 2 for
Monday, 3 for Tuesday.
90
Downloaded 5
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
(b) What values will be displayed in JOptionPane when the following
code is executed ? 2
int a=5, b = 2;
while (a < 20)
{
a = a + b;
b = a b;
JOptionPane.showMessageDialog(null,a);
}
(c) Write the code given below using ‘for’ loop instead of ‘while’ loop : 2
int i=1;
while(i<=5)
{
if(i * i == 4)
jTextField1.setText(""+i);
i=i+1;
}
(d) Write the value that will be stored in variable a after execution of
the following code if : 2
(i) initial value of a is 8.
(ii) initial value of a is 10.
int b = 9;
if (a > b)
a=a+5;
a=a+2;
(e) What will be the values of i and z after the following code is
executed : 2
int i = 0;
int z = 10;
do
{
i = i+2;
z;
}
while (i<10);
90
Downloaded 6
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
(f) Ms. Priya works as a programmer in ‘‘Avon Education’’ where she
has designed a software to compute fee charges to be paid by the
students. A screenshot of the same is shown below :
90
Downloaded 7
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
Based on the course selected, Fee Per Quarter is displayed in
the appropriate textfield according to the following criterion :
5. Consider the following table ‘Furniture’. Write SQL commands for the
statements (i) to (viii) and write output for SQL queries (ix) and (x).
Table : Furniture
FCODE NAME PRICE MANUFDATE WCODE
90
Downloaded 8
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
(i) To display FCODE, NAME and PRICE of items that have Price less
than < 5,000. 1
(ii) To display NAMES and PRICE of those Furniture Items that have
‘table’ anywhere in their names. 1
(iii) To display WCode of Furniture Items. There should be no duplicate
values. 1
(iv) To display the NAMES and PRICE increased by 500.00 of all the
furniture items. (Price should only be displayed as increased; there
should be no increase in the data in the table) 1
(v) To display FCODE and NAME of each Furniture Item in descending
order of FCODE. 1
(vi) To display the details of all the Furniture Items which have
Manufacturing date (MANUFDATE) between 01-JAN-2016 and
15-JUN-2017 (inclusive of both the dates). 1
(vii) To display the average PRICE of all the Furniture Items, which are
made of Wood with WCODE as W02. 1
6. (a) Write SQL query to create a table ‘Inventory’ with the following
structure : 2
Category Char
DatePurchase Date
90
Downloaded 9
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/
(b) Consider the following tables PATIENT and TEST and answer the
questions that follow :
Table : PATIENT
PCODE NAME PHONE DTADMIT TESTID
6473 Amit Sharma 912356899 19-JUN-2017 T102
Table : TEST
TESTID TESTNAME COST
T101 Platelet Count 200.00
T102 Hemogram 190.00
T301 Malaria Detection 350.00
T502 Glucose Test 150.00
Name the Primary keys in both the tables and foreign key in
‘PATIENT’ table.
State the reason for your choice. 2
(c) With reference to the above given tables (in Q6 b), write commands
in SQL for (i) to (iii).
(i) To display Names of Patients, TESTID and Test names for
those Patients who were admitted between ‘01-DEC-2017’ and
‘15-DEC-2017’ (both dates inclusive). 2
(ii) To display Names of Patients, Test names and Cost of Test for
those Patients who have ‘‘Sharma’’ in their names. 2
(iii) To increase the cost of those tests in the table ‘‘TEST’’ by
< 50.00 that have cost below < 200.00 2
90
Downloaded 10
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/
7. (a) How does e-governance help in building trust between the
Government and citizens ? 2
(b) How can e-learning help students learn at their own pace ? 1
(c) Ms. Cathy is creating a form for Vidya University Sports Council
application. Help her to choose the most appropriate controls from
ListBox, ComboBox, TextField, TextArea, RadioButton, CheckBox,
Label and Command Button for the following entries : 2
S.No. Function
90
Downloaded 11
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From
Downloaded From:http://cbseportal.com/
: http://cbseportal.com/
SET-4
Series GBM Code No. 90
Candidates must write the Code on the
Roll No.
title page of the answer-book.
INFORMATICS PRACTICES
Time allowed : 3 hours Maximum Marks : 70
Instructions :
90 1 Courtesy P.T.O.
Downloaded From:http://cbseportal.com/
Downloaded From : http://cbseportal.com/ Courtesy :: CBSE
CBSE
Downloaded From
Downloaded From:http://cbseportal.com/
: http://cbseportal.com/
(c) What is the purpose of logical address of computer ? 2
(d) Does open source software only mean that the software is free of
cost ? Give reason for your answer. 2
2. (a) Write the value that will be assigned to variable x after executing
the following statement : 1
x = 20 – 5 + 3 * 20/5;
(c) While working in Netbeans IDE, Amit wants that the text in a Text
area should move to the next line without breaking the word. Which
properties would help him to do that ? 1
90 2 Courtesy
Downloaded From:http://cbseportal.com/
Downloaded From : http://cbseportal.com/ Courtesy :: CBSE
CBSE
Downloaded From
Downloaded From:http://cbseportal.com/
: http://cbseportal.com/
(f) Given below is a code.
<message>
<text>Hello, world!</text>
</message>
(b) Ariya wants to add another column ‘Gender’ in the already existing
table ‘CUSTOMERS’. She has written the following statement.
However, it has errors. Rewrite the correct statement. 1
[MODIFY TABLE CUSTOMERS GENDER char(1);
90 3 Courtesy P.T.O.
Downloaded From:http://cbseportal.com/
Downloaded From : http://cbseportal.com/ Courtesy :: CBSE
CBSE
Downloaded From
Downloaded From:http://cbseportal.com/
: http://cbseportal.com/
(e) Given below is the ‘Department’ table : 2
DEPCODE DEPNAME
101 ADMIN
102 RECEPTION
103 PERSONNEL
SET AUTOCOMMIT = 0;
UPDATE Department SET DEPNAME = ‘OFFICE’ WHERE
DEPNAME = ‘ADMIN’;
INSERT INTO Department VALUES(104,‘HRD’);
UPDATE Department SET DEPNAME = ‘FRONT OFFICE’ WHERE
DEPNAME = ‘RECEPTION’;
COMMIT;
DELETE FROM Department WHERE DEPNAME = ‘FRONT
OFFICE’;
ROLLBACK;
SELECT * FROM Department;
4. (a) Write the values of r and s after the execution of the following code : 1
int p = 11;
int q = 21;
int r;
int s;
r = ++q;
s = p++;
r++;
90 4 Courtesy
Downloaded From:http://cbseportal.com/
Downloaded From : http://cbseportal.com/ Courtesy :: CBSE
CBSE
Downloaded From
Downloaded From:http://cbseportal.com/
: http://cbseportal.com/
(b) What will be displayed in jTextField1 and jTextField2 after the
following code is executed : 2
int ndigits = 0;
int N = 35;
while (N > 12) {
ndigits = ndigits + 1;
N = N–10;
}
jTextField1.setText(" "+ndigits);
jTextField2.setText(" "+N);
(d) Write the value that will be stored in the variable t after the
execution of the following code. How many times will the loop
execute ? 2
int sum = 0;
int score = 0;
double t;
do
{
90 6 Courtesy
Downloaded From:http://cbseportal.com/
Downloaded From : http://cbseportal.com/ Courtesy :: CBSE
CBSE
Downloaded From
Downloaded From:http://cbseportal.com/
: http://cbseportal.com/
Each Call is charged at < 1·00.
Each SMS is charged at < 0·50.
Users can also opt for Mobile Data Plan. Charges for Mobile Data
Plan are flat < 50·00.
(viii) To display the names of items that have ‘Baby’ anywhere in their
item names. 1
(b) Consider the tables given below and answer the questions that follow : 2
Table : Event
EventId Event NumPerformers CelebrityID
101 Birthday 10 C102
102 Promotion Party 20 C103
103 Engagement 12 C102
104 Wedding 15 C104
Table : Celebrity
CelebrityID Name Phone FeeCharged
C101 Faiz Khan 99101956 200000
C102 Sanjay Kumar 893466448 250000
C103 Neera Khan Kapoor 981166568 300000
C104 Reena Bhatia 65877756 100000
90 8 Courtesy
Downloaded From:http://cbseportal.com/
Downloaded From : http://cbseportal.com/ Courtesy :: CBSE
CBSE
Downloaded From
Downloaded From:http://cbseportal.com/
: http://cbseportal.com/
(i) Name the Primary keys in both the tables and Foreign key in
‘Event’ table.
Can NumPerformers (Number for performers) be set as the
Primary key ? Give reason.
(ii) How many rows will be present in the Cartesian join of the
above mentioned two tables ?
In the table ‘Event’, the CelebrityID 102 is present twice in
the column ‘‘CelebrityId’’. Is there any discrepancy ? Give
reason.
(c) With reference to the above given tables (in Q6 b), write the
commands in SQL for (i) to (iii).
(i) To display EventId, Event name, Celebrity Id and Names of
celebrities for only those events that have more than 10
performers. 2
(ii) To display Event name, Celebrity Id and Names of celebrities
who have ‘‘Khan’’ anywhere in their names. 2
(iii) To display Event name, Names of celebrities and Fee charged
for those celebrities who charge more than 200000. 2
90 9 70,700
P.T.O.
Downloaded From:http://cbseportal.com/
Downloaded From : http://cbseportal.com/ Courtesy
Courtesy :: CBSE
CBSE
Downloaded From : http://cbseportal.com/
Code No. 90
Roll No. Candidates must write the Code on the
title page of the answer-book.
INFORMATICS PRACTICES
General Instructions :
(i) All questions are compulsory.
(ii) Answer the questions after carefully reading the text.
90 1 P.T.O.
1. (a) Vidya College has three departments that are to be connected into a 2
network. Which of the following communication medium (out of the given
options), should be used by the college for connecting their departments
for very effective High Speed communication ?
Coaxial Cable
Optical Fiber
Ethernet Cable
Also name the type of network (out of PAN/LAN/WAN) formed.
(b) State reason why Star topology requires more cable length than Bus 2
topology.
(c) Seema needs a network device that should regenerate the signal over the 2
same network before the signal becomes too weak or corrupted.
Amit needs a network device to connect two different networks together
that work upon different networking models so that the two networks can
communicate properly.
Name the devices that should be used by Seema and Amit.
(d) How is a domain name related to an IP address ? 2
(e) How is firewall useful in ensuring network security ? 2
2. (a) Identify the odd one out of the following Java statements. State reason 1
for your choice.
(i) for
(ii) do while
(iii) switch
(iv) while
(b) Write the purpose of parseInt( ) method. 1
(c) Identify invalid variable names out of the following. State reason if 1
invalid.
(i) for
(ii) - salary
(iii) salary12
(iv) product
(d) What is the difference between statements (i) and (ii) ? 1
(i) t 5 2;
(ii) if (t552)
d53;
90 2
3. (a) What is the meaning of Open Source in the term Open Source Database 1
Management System ?
(b) In a table Employee, a column Occupation contains many duplicate 1
values. Which keyword would you use if you wish to list only different
values ?
(c) How is ALTER TABLE statement different from UPDATE statement ? 1
(d) Charvi wants to delete the records where the FirstName is Rama in 1
the Emp Table. She has entered the following SQL statement. An error
is being displayed. Rewrite the correct statement.
DELETE Rama FirstName FROM Emp;
90 3 P.T.O.
Table : Company
CompanyCode Donations
C101 13000
C102 NULL
C104 7000
C105 4000
ENO NAME
1 Anita Khanna
2 Bishmeet Singh
SET AUTOCOMMIT 5 0;
COMMIT;
SAVEPOINT A;
SAVEPOINT B;
SAVEPOINT C;
ROLLBACK TO B;
90 4
Table : Company
Identify error(s) in the following SQL statement. Rewrite the correct SQL
statement.
FROM Company
GROUP BY Department;
(b) Write Java statement to extract selected item from a given listbox named 1
jList1.
(c) What will be displayed in jTextField1 and jTextField2 after the following 1
code is executed :
int t;
int x;
x512;
t5(3*x11)/3;
jTextField1.setText('' ''1t);
jTextField2.setText('' ''1x);
90 5 P.T.O.
(d) Write the output that will be displayed in the textfields by the following 2
Java code :
String x;
String stream5Commerce;
jTextField1.setText((stream.length()19)1'' '');
x5stream.concat(Humanities);
jTextField2.setText(x);
jTextField3.setText('' ''1x.substring(2,5));
jTextField4.setText(stream.toLowerCase());
(e) Write the value that will be stored in variable sum after execution of 2
following code :
int sum50,m54;
for(int i59;i>56;i--)
{
if (i%3550)
sum5sum1i;
else
sum5sum2i;
}
(f) The following code has error(s). Rewrite the correct code underlining all 2
the corrections made :
int a50;
int b515;
do ;
a5a13;
b5b23;
while a<5b;
90 6
A client can also opt for services of a guide. Charges vary depending on
the type of car opted.
90 7 P.T.O.
5. (a) Srishti has created the following table with the name Veterinary. 2
90 8
90 9 P.T.O.
6. (a) Write SQL query to create a table Song with the following structure : 2
Table : Party
Table : Client
(c) With reference to the above given tables (in Q6 b), Write commands in 6
SQL for (i) and (ii) and output for (iii) given below :
90 10
S.No Function
1 To enter NAME
2 To enter MOBILE NUMBER
3 To allow user to choose one CATEGORY out of the
categories :
Company, Trust, Individual.
4 To enter NATURE OF BUSINESS/PROFESSION in the
form of a paragraph
90 11 P.T.O.