0% found this document useful (0 votes)
47 views55 pages

CBSE Class 12 Papers Multimedia and Web Technology Ebook

Uploaded by

Sakshi Jha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views55 pages

CBSE Class 12 Papers Multimedia and Web Technology Ebook

Uploaded by

Sakshi Jha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 55

CBSE Class 12th Subjects eBook

Subject: Multimedia and Web Technology


Year 2019:

CBSE Class 12th Multimedia and Web Technology 2019 : Set-I,II,III

Year 2018:

CBSE Class 12th Multimedia and Web Technology 2018 : Set-I,II,III

Year 2017:

CBSE Class 12th Multimedia and Web Technology 2017 : Set-I,II,III

Year 2016:

CBSE Class 12th Multimedia and Web Technology 2016 : Set-I,II,III

Year 2015:
CBSE Class 12th Multimedia and Web Technology 2015 : Set-I,II,III
Downloaded From : http://cbseportal.com/

Code No. 89

Candidates must write the Code on the


Roll No.
title page of the answer-book.

 Please check that this question paper contains 11 printed pages.

 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 check that this question paper contains 7 questions.

 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.

MULTIMEDIA AND WEB TECHNOLOGY

Time allowed : 3 hours Maximum Marks : 70

Note : (i) All questions are compulsory.

(ii) Answer the questions after carefully reading the text.

.89
Downloaded 1
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/

1. (a) Observe the tables TOPICS and TRAINERS of a Database named


TrainingDetails given below carefully and answer the questions that
follow :

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

TrainerCode TrainerName TrainerSkill

TR005 Suchita Majumdar AI

TR012 Annie Daniel MLBasic

TR002 Saminder Kaur AI

TR012 Annie Daniel MLAdvanced

TR002 Saminder Kaur AIEdu

TR005 Suchita Majumdar AIEdu

TR002 Saminder Kaur DLBasic

(i) Write SQL command to display all the records in the table
TRAINERS. 1

(ii) What is the degree and cardinality of the table TOPICS ? 2

.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

(iv) If a new attribute named TopicStartDate is added to the table


TOPICS that will store the StartDate of the Topic, then
suggest the most appropriate data type that should be used
for this new attribute. 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

(c) Which multimedia component has extension as .GIF ? 1

(d) Mention any one usage of Multimedia in Education. 1

(e) Give the full forms of the following : 2

(i) PNG

(ii) DAT

2. Answer the following questions based on Macromedia Flash :

(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

(i) Distribute to layers

(ii) Break apart

(iii) Frame-by-frame

(iv) Convert to symbol

.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

(d) Shamlaya is creating an animation to convert alphabet F to


alphabet T. She has used a feature to control the tween as
demonstrated in the following figure. Identify and name this
feature. Also name the type of tween created. 2

(e) Observe the image given below and do as directed :

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.

 Assume that the colour remains the same during the


animation.

 Assume the figure is stored in the Flash library as


Cone.jpg.

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/

3. Answer the following questions based on HTML :


(a) What is the utility of the <HTML> and the <BODY> tags in an
HTML code ? 2

(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

Consider the following points while writing the code :

(i) Title of the page should be ‘‘Introduction to Artificial


Intelligence’’.

(ii) The main Heading of the page is ‘‘Brown’’.

(iii) Picture used in the page is the file ‘‘AI.jpg’’.

(iv) Text in paragraph is red.

(v) Table should have a border of width 1, border of the table should
be ‘‘green’’.

(vi) The table should have the caption as Applications of Artificial


Intelligence

.89
Downloaded 5
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/

(vii) Pages linked to :


a. Machine Learning as ‘‘mac.html’’.
b. Natural Language Processing as ‘‘nlp.html’’.
c. Computer Vision as ‘‘com.html’’.
(viii) Bottom message is of size 2 and is mail linked to
[email protected].

4. Answer the following questions based on PHP :

(a) What are the two major advantages of using $_POST instead of
$_GET ? 2

(b) How is an Echo different from the Print statement ? 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;
}

(d) Give the output of the following statements : 4

(i) echo(10*2*46*6);

(ii) echo(strcmp("Global", "global"));

(iii)echo "Today is" . date("F j Y");

(iv) echo "Hello" . ltrim(("###Donald Duck"));

Note: # denotes a blank space

.89
Downloaded 6
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/

5. Answer the following questions based on PHP :

(a) Explain Query String with an example. 2

(b) Name any two text file open modes. 2

(c) Write a function that accepts two strings as arguments and


compares their lengths. The function should return 1 if the lengths
are equal, otherwise the function should return 0. 3

(d) Following is the code to create a connection to the server and to


create database name Library in mySql. Fill in the blanks to
complete the code. 3

<?php

$servername = "localhost";

$username = "root";

$pwd = "SimSim";

$conn = _________( _________,$username, $pwd);

If( __________)

die("Could not connect".mysqli_error($conn));

$sql = "___________ Library";

If (____________(($conn, _________ ))

echo "Database created successfully";

else

echo "database not created".mysqli_error($conn);

mysqli_close($conn);

?>

.89
Downloaded 7
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/

6. Answer the following questions based on JavaScript :


(a) Underline the errors and rewrite the corrected code : 2
<SCRIPT TYPE="Javascript">
FUNCTION TOTAL( )
{ FOR J = 2 TILL 10 JUMP 2
TOTAL = TOTAL + J
MESSAGE ("the total is:"& TOTAL)
}
CALL TOTAL
</SCRIPT>
(b) Study the code given below and answer the questions that follow :
<HTML>
<TITLE>Playing with Data Types</TITLE>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
x=2,y=10;
function Change (a,b)
{
sum=0;
for(xl=b; xl<=y; xl+=3)
{ sum+=a+x;
a=x;
document.write(a + "<br>");
}
document.write(sum);
}
P=4
Q=8
Change(Q,P)
</SCRIPT>
</BODY>
</HTML>
(i) Give the output of the above code. 2
(ii) Change the while loop to for loop without affecting the
output. 2

.89
Downloaded 8
From : http://cbseportal.com/ Courtesy : CBSE
Downloaded From : http://cbseportal.com/

(c) Write the HTML code to generate the following form : 4

Write the JavaScript code to display the amount earned, on the click
of the CHECK button, in a message box calculated as

 600 * NoOfDays for Females

 450 * NoOfDays for Males

7. (a) Name one Open-Source RDBMS and Operating System each. 2

(b) Soma has entered a computer network without having authorized


access to check the security of her office. On the other hand, Promila
has entered a computer network without having authorized access
with the intent of stealing documents. Who among them will be
called a hacker and who will be known as a cracker ? Also mention
who among them is doing an ethical job. 2

(c) Name the protocol to be used in the following situations : 2


(i) For transmitting files on the World Wide Web

(ii) For sending and receiving e-mails

.89
Downloaded 9
From : http://cbseportal.com/ Courtesy :P.T.O.
CBSE
Downloaded From : http://cbseportal.com/

(d) EduMantra Solutions is in the process of setting up their new


campus in a remote area. As a network expert, you are expected to
help the institution by studying the physical locations of various
blocks and the number of computers to be installed. On the basis of
the given information, provide the best possible answers for the
queries (i) to (iv) to help them in the planning phase.

Block to Block distances (in mtrs.).


Place From Place To Distance

Block A Block B 50 m

Block B Block C 150 m

Block C Block D 25 m

Block A Block D 170 m

Block B Block D 125 m

Block A Block C 90 m

Expected number of computers in each block :


Block No. of Computers

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

(ii) What type of network out of the following is formed by


connecting the computers of these buildings ? 1
A. LAN
B. MAN
C. WAN

(iii) Name the block that is most suitable to house the server for
this campus with a suitable reason. 1

(iv) The organization is planning to provide a high speed link with


its head office situated in Kolkata using a wired connection.
Which cable will be most suitable for this job ? 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.

 Please check that this question paper contains 11 printed pages.


 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 check that this question paper contains 7 questions.
 Please write down the Serial Number of the question 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.

INFORMATICS PRACTICES

Time allowed : 3 hours Maximum Marks : 70

Instructions :

(i) All questions are compulsory.

(ii) Answer the questions after carefully reading the text.

(iii) Q. 2 and Q.4 have to be answered with respect to Java Language.

(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/

1. (a) Write the functions of the following pieces of network hardware : 2

(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/

What will be displayed in jTextField1 and jTextField2 when the


following code is executed ?
int x,y,z,t;
t = 3;
z = 0;
do
{
z = z+1;
}
while (t>3);
jTextField1.setText(""+z);
jTextField2.setText(""+t);

(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

Expand XML. For what purpose is XML used ?

(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

What happens if break statement is omitted with a case in a switch


statement ?

3. (a) In CHAR(10) and VARCHAR(10), what does the number 10


indicate ? 1

(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/

(c) Consider the following table :


Table : RESULTS
STUDENTID NAME EXAMID SCORE
10 Leena 1 20
10 Leena 2 25
11 Samarth 1 30
11 Samarth 2 35
12 Jai 1 14
12 Jai 2 15
14 Shoaib 1 30
14 Shoaib 2 12

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

SELECT DISTINCT(COUNT STUDENTID) FROM RESULTS;

(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");

Write the output that will be produced by the following SQL


statement : 2
SELECT name, Count(*)
FROM stu
GROUP BY name;

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 ?

4. (a) What will displayed in jTextField1 when the following code is


executed ? 1
int x=3, y=6, z=0;
if(x>3)
z = z + 1;
if((x<4)&&(y>6))
z = z + 2;
if(x>2 && y>=6)
z = z + 3;
if((x<3) || (y>6))
z = z + 4;
jTxtFieldl.setText(""+z);

(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/

(c) How many times will the following loop execute ? 2


int K = 7;
int I = -2;
do
{
I=I+2;
K=K-1;
}
while (I <= K);
OR
How many times will the following loop execute ?
for (i = 2; i <=5;i++)
{
z = i;
}
(d) Write the output in jTextField1 when the following code is executed : 2
int k, n, sum = 0;
for (k = 2; k <=5; k++)
{
n = k - 2 * 3;
sum = sum + n;
}
jTextField1.setText(""+sum);
OR
Write the output in jTextField1 when the following code is executed :
int k, n =0, sum = 0;
k = 2;
while (k<=5)
{
n = k +4;
sum = sum + n;
k=k+2;
}
jTextField1.setText(""+n);
90
Downloaded 7
From : http://cbseportal.com/ Courtesy :P.T.O.
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);

(f) Ms. Supriya works as a programmer in a courier company, ‘‘ABC


Packaging and Shipping Service’’ where she has designed a software
to compute charges to be paid by the customers.
 Weight (in grams) of the parcel is entered by the user.
 Any one Category of parcel out of A/B/C is chosen by the user.
 Based on the Category selected, Transportation Charges
(per gram) are computed according to the following criterion :
Transportation
Category
Charges Per gram
A < 2.00
B < 3.00
C < 5.00
 Insurance Charges is a flat < 80.00 per parcel.
 Total Transportation Charges = Transportation
Charges Per gram * Weight in grams (of parcel)
entered by the user.
 Total Charges = Total Transportation Charges +
Insurance Charges.
Help Ms. Priya in writing the code to do the following :
(i) When Calculate Charges button is clicked, Insurance
Charges, Transportation Charges per gram, Total
Transportation Charges and Total Charges should be
calculated and displayed in the respective text fields. 4
(ii) When ‘CLEAR’ button is clicked, all the textfields and
radiobuttons should be cleared. 1
(iii) When ‘Exit’ button is clicked, the application should close. 1

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

10012 RAM YADAV A TELEVISION 2019-04-19 MUMBAI

10014 SOMNATH SINGH FURNITURE 2019-01-12 PUNE

WASHING
10016 MOHAN VERMA B 2019-06-06 LUCKNOW
MACHINE

10018 RISHI SINGH A REFRIGERATOR 2019-04-07 MUMBAI

10019 RADHE MOHAN TELEVISION 2019-05-30 UDAIPUR

10020 BISHEN PRATAP B REFRIGERATOR 2019-05-02 MUMBAI

10021 RAM TELEVISION 2019-05-03 PUNE

(i) To display names of drivers and destination city where


TELEVISION is being transported. 1
(ii) To display driver names and destinations where destination is not
MUMBAI. 1
(iii) To display the names of destination cities where items are being
transported. There should be no duplicate values. 1
(iv) To display details of rows that have some value in DRIVERGRADE
column. 1
(v) To display names of drivers, names of items and travel dates for
those items that are being transported on or before 1st April 2019. 1
(vi) To display the number of drivers who have ‘MOHAN’ anywhere in
their names. 1
(vii) To display the names of drivers, item names and travel dates in
alphabetic (ascending) order of driver names. 1
(viii) To display names of drivers whose names are three characters long. 1
(ix) SELECT ITEM, COUNT(*) FROM TRANSPORTER
GROUP BY ITEM
HAVING COUNT(*) >1; 1
(x) SELECT MAX(TRAVELDATE) FROM TRANSPORTER WHERE
DRIVERGRADE = ‘A’; 1

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).

(i) To display Activity Code along with number of participants


participating in each activity (Activity Code wise) from the
table Participant. 2
OR
How many rows will be there in Cartesian product of the two
tables in consideration here ?
(ii) To display Names of Participants, Activity Code, Activity
Name in alphabetic ascending order of names of participants. 2
(iii) To display Names of Participants along with Activity Codes
and Activity Names for only those participants who are taking
part in Activities that have ‘bag’ in their Activity Names and
Points of activity are above 250. 2

7. (a) How does e-governance help in increasing Accountability


(answerability of the Government to the people) ? Write 2 points. 2
(b) Write 2 precautions to be followed while doing Online shopping. 1
(c) Ms. Deepika of ABC School is creating a form for a Summer Camp
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

1. Let the user enter NAME of student

2. Let the user enter MOBILE NUMBER of student

3. Let the user choose one TSHIRT size out of the categories :
XL / L / M / S

4. Let the user select Activities out of Rock Climbing/


Mountain Biking/Zip Lining/Night Hike. More than one
activity may be chosen.

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.

 Please check that this question paper contains 11 printed pages.


 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 check that this question paper contains 7 questions.
 Please write down the Serial Number of the question 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.

INFORMATICS PRACTICES

Time allowed : 3 hours Maximum Marks : 70

Instructions :

(i) All questions are compulsory.

(ii) Answer the questions after carefully reading the text.

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

(b) Which of the following is/are not communication media ?

(i) Microwaves

(ii) Optical Fiber cable

(iii) Node

(iv) Radio waves

Identify which of the above mentioned communication media are


Wired media and which ones are Wireless media. 2

(c) Write two examples each of software in the following categories : 2

(i) Open Source Operating System

(ii) Open Source Web Browser

(d) Expand the following terms : 2


(i) GSM

(ii) IP

(e) Name the devices : 2

(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.

(ii) This device connects multiple nodes to form a network. It


redirects the received information only to the intended
node(s).

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

(i) Marks Unit

(ii) Product_1

(iii) Sales123

(iv) 2Marks

(b) Write the data type of variables that should be used to store : 1

(i) Marks of students

(ii) Grades of students (Grade can be ‘A’ or ‘B’ or ‘C’)

(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

(e) Distinguish between ComboBox and ListBox. When would you


prefer using them over Radiobutton and Checkbox ? 2

(f) Rewrite the following code using switch statement : 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 :

SELECT Marks+5 FROM Student WHERE Marks<33;

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

(ii) Name two Data types that require data to be enclosed in


quotes. 1

(d) Given the table ‘Player’ with the following columns :

Table : Player
PCODE POINTS
1 50
2 NULL
3 40

Write the output of the following statements : 2

(i) SELECT AVG(POINTS)


FROM Player;

(ii) Select COUNT(POINTS) FROM Player;

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;

What will be the output of both the above given SELECT


statements ? 2

(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.

4. (a) Identify the error in the following code : 1


switch(c)
{
case 9.0 : a= a+2;
break;
case 8.0 : a=a+3;
break;
}

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 :

 Name of the student is entered by the user.

 Any one Course out of Pharmacy, Architecture and


Arts & Design is chosen by the user.

 If the student is eligible for Concession, the required checkbox


is selected by the user.

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 :

Course Fee Per Quarter


Pharmacy 2000.00
Architecture 2500.00
Arts & Design 2300.00

 If the student is eligible for Concession, a concession of 7% of


Fee per quarter is calculated as the concession amount,
otherwise concession amount is 0.

 Fee to be paid is the Fee per quarter with the concession


amount (if any) deducted from it.
Help Ms. Priya in writing the code to do the following :

(i) When ‘Calculate Charges’ button is clicked, ‘Fee per quarter’,


‘Concession Amount’, ‘Fee to be Paid’ should be calculated and
displayed in the respective text fields. 4

(ii) When ‘CLEAR’ button is clicked, all the textfields,


radiobuttons and checkbox should be cleared. 1

(iii) When ‘Exit’ button is clicked, the application should close. 1

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

10023 Coffee table 4000 19-DEC-2016 W03

10001 Dining table 20500 12-JAN-2017 W01

10012 Sofa 35000 06-JUN-2016 W02

10024 Chair 2500 07-APR-2017 W03

10090 Cabinet 18000 31-MAR-2015 W02

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

(viii) To display WCODE wise, WCODE and the highest price of


Furniture Items. 1

(ix) SELECT SUM(PRICE) FROM Furniture WHERE WCODE=’W03’; 1

(x) SELECT COUNT(DISTINCT PRICE) FROM Furniture; 1

6. (a) Write SQL query to create a table ‘Inventory’ with the following
structure : 2

Field Type Constraint

MaterialId Integer Primary key

Material Varchar (50) NOT NULL

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

7134 Rose Mathew 886744536 12-NOV-2017 T101

8786 Tina Sharma Arora 889088765 06-DEC-2017 T102

6477 Vijay Shah 714567445 07-DEC-2017 T502

7658 Venkat Fazal 865545343 31-DEC-2017 T101

Note : NAME holds the Names of patients.


DTADMIT holds Dates on which a patient was admitted to
hospital.
TESTID holds Ids of Medical tests done on patients.

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

1. To let the user enter NAME

2. To let the user enter MOBILE NUMBER

3. To let the user choose one PROFESSION out of the


categories : Teaching/Non-Teaching/Research Scholar

4. To let the user select facilities out of Gym, Yoga, Table


Tennis, Badminton and Aerobics. More than one facility
may be chosen.

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.

 Please check that this question paper contains 9 printed pages.


 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 check that this question paper contains 7 questions.
 Please write down the Serial Number of the question 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.

INFORMATICS PRACTICES
Time allowed : 3 hours Maximum Marks : 70

Instructions :

(i) All questions are compulsory.


(ii) Answer the questions after carefully reading the text.

1. (a) Identify the odd one out of the following : 2


Optical Fiber/Coaxial Cable/Bluetooth/Twisted Pair Cable
Give reason for your answer.

(b) How is it easier to diagnose fault in Star topology than in Bus


topology ? 2

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

(e) Which of the following are valid IP addresses ? Give reason(s) if


invalid. 2
(i) 121.23.1.45
(ii) 192.168.0.254
(iii) 192.168.0.1
(iv) 198.-1.1.1

2. (a) Write the value that will be assigned to variable x after executing
the following statement : 1
x = 20 – 5 + 3 * 20/5;

(b) Consider the statement :


choice = ‘Y’;

What is the datatype of variable choice ? Write a Java statement to


declare the variable ‘choice’. 1

(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

(d) Write a Java statement to : 1


Append a string ‘‘ABC’’ to the text that is already in the text area
named jTextArea1.

(e) Write the output of the following HTML code : 2


<ol start="4">
<li>Bake the mixture in oven for an hour</li>
<li>Remove from oven</li>
<li>Allow the mixture to stand for ten minutes</li>
<li>Serve</li>
</ol></code>

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>

Which language is used to write the above code ? 2


What are <message>, </message>, <text> and </text> ?

(g) Rewrite the following code using if else if statement instead of


switch : 2
switch (success) {
case –1: x1 = "No result" ;
break;
case 0 : x1 = "Final result- Not successful";
break;
default : x1 = "result NOT known";
break;
}

3. (a) How is a database related to a table ? 1

(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);

(c) In a hospital, the patients are allocated to wards. A database named


‘Hospital’ is created. One table in this database is : Ward with
WardId, WardName, NumOfBeds as columns and WardId as the
primary key.
Write another suitable table you could expect to see in the ‘Hospital’
database, with 3 suitable columns identifying Primary key and
Foreign key in the table that you expect. 2

(d) Explain the following statement with the help of example : 2

‘‘In a transaction either all the SQL statements be committed or all


rolled back.’’

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;

What will be the output of the above given SELECT statement ?

(f) How is HAVING clause similar to WHERE clause ? How is HAVING


clause different from WHERE clause ? Explain with the help of
examples of each. 2

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);

(c) Write the value of C after executing the following code : 2


int P;
int R = 8;
int oddNum;
int C = 0;
for (P = 1; P < R; P=P+3)
{
oddNum = P %2;
if (oddNum == 1)
{
C= C+1;
}
}

(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
{

score = score +1;


sum = sum + score;
}
while (score <=3);
t = sum / 3;
90 5 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) The following code has error(s). Rewrite the correct code underlining
all the corrections made : 2
int j;
int i =15;
int flag = 1;
while( j = 2 j < i; j++)
{
if(i % j = 0)
{
flag == 0;
break;
}
}

(f) Ms. Fauzia works as a programmer in ‘‘TelTel Mobile Company’’


where she has designed a software to compute charges to be paid by
the mobile phone user. A screenshot of the same is shown below :

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.

Help Ms. Fauzia in writing the code to do the following :


(i) When the ‘Calculate Charges’ button is clicked, ‘Calls and
SMS Charges’, ‘Mobile Data Plan Charges’ and ‘Amount to
Pay’ should be calculated and displayed in the respective text
fields.
‘Amount to Pay’ is calculated as :
Calls and SMS Charges + Mobile Data Plan Charges (if any) 4
(ii) When the ‘Clear’ button is clicked, all the textfields and
checkbox should be cleared. 1
(iii) When the ‘Exit’ button is clicked, the application should close. 1

5. Consider the Table ‘‘Infant’’ shown below :


Table : Infant
ItemCode Item DatePurchase UnitPrice Discount
101 Frock 2016-01-23 700 10
102 Cot 2015-09-23 5000 25
103 Soft Toy 2016-06-17 800 10
104 Baby Socks 2014-10-16 100 7
105 Baby Suit 2015-09-20 500 5

Note : Discount column stores discount %.


Write the commands in SQL for (i) to (viii) and output for (ix) and (x).
(i) To display the details about the Cot. 1
(ii) To list the names of items and their unit price that have unit price
less than 800 and discount more than 5%. 1
(iii) To list the names of items and their date of purchase that were
purchased after 31st December, 2015. 1
(iv) To display the number of items that have more than 10% as discount. 1
(v) To display item code and unit price in decreasing order of unit price. 1
90 7 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/
(vi) To increase the unit price of each item by 10% of their unit price. 1

(vii) To display the highest unit price of items. 1

(viii) To display the names of items that have ‘Baby’ anywhere in their
item names. 1

(ix) SELECT MID (Item,1,2) FROM Infant; 1

(x) SELECT AVG(UnitPrice) FROM Infant WHERE DATEPURCHASE


>‘2015–01–01’; 1

6. (a) ‘‘XYZ’’ Company conducts workshops for employees of organizations.


The company requires data of workshops that are organized. Write
SQL query to create a table ‘Workshop’ with the following structure : 2
Field Type Constraint
WorkshopId Integer Primary key
Title Varchar(50)
DateWorkshop Date
NumSpeakers Integer

(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

7. (a) List two disadvantages of e-governance to a disabled person. 2


(b) How do online retailers usually offer customers a wider range of
products at prices that are lesser than those of traditional stores ? 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
1 To let the user enter NAME
2 To let the user enter MOBILE NUMBER
To let the user choose one PROFESSION out of the
3
categories : Teaching/Non-Teaching/Research Scholar
To let the user select facilities out of Gym, Yoga, Table
4 Tennis, Badminton and Aerobics. More than one facility
may be chosen.

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/

Series ONS SET-4

Code No. 90
Roll No. Candidates must write the Code on the
title page of the answer-book.

· Please check that this question paper contains 11 printed pages.


· 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 check that this question paper contains 7 questions.
· Please write down the Serial Number of the question 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.

INFORMATICS PRACTICES

Time allowed : 3 hours Maximum Marks : 70

General Instructions :
(i) All questions are compulsory.
(ii) Answer the questions after carefully reading the text.

90 1 P.T.O.

Downloaded From : http://cbseportal.com/ Courtesy : CBSE


Downloaded From : http://cbseportal.com/

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

Downloaded From : http://cbseportal.com/ Courtesy : CBSE


Downloaded From : http://cbseportal.com/

(e) Write HTML tags to do the following : 2


(i) Inserting a horizontal line in a web page.
(ii) Inserting a line break
(f) What does ‘XML’ stand for ? How is the purpose of HTML different from 2
XML ?
(g) Rewrite the following code using if else if statement : 2
switch(depcode)
{
case 1 :
allowance 5 4000;
break;
case 2 :
allowance 5 3200;
break;
default :
allowance 5 1000;
}

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.

Downloaded From : http://cbseportal.com/ Courtesy : CBSE


Downloaded From : http://cbseportal.com/

(e) (i) Name 2 Group (Aggregate) functions of SQL. 2

(ii) Consider the table :

Table : Company

CompanyCode Donations
C101 13000
C102 NULL
C104 7000
C105 4000

What output will be displayed by the following SQL statement ?

SELECT AVG(Donations) FROM Company;

(f) Given below is the ‘Emp’ table : 2

ENO NAME
1 Anita Khanna
2 Bishmeet Singh

SET AUTOCOMMIT 5 0;

INSERT INTO Emp VALUES (5,‘Farzia’);

COMMIT;

UPDATE Emp SET NAME 5 ‘Farzziya’ WHERE ENO55;

SAVEPOINT A;

INSERT INTO Emp VALUES(6,‘Richard’);

SAVEPOINT B;

INSERT INTO Emp VALUES(7,‘Rajyalakshmi’);

SAVEPOINT C;

ROLLBACK TO B;

What will be the output of the following SQL query now ?

SELECT * FROM Emp;

90 4

Downloaded From : http://cbseportal.com/ Courtesy : CBSE


Downloaded From : http://cbseportal.com/

(g) Consider the table below : 2

Table : Company

EMPID DEPARTMENT SALARY


E101 PERSONNEL 60000
E102 ACCOUNTS 65000
E103 MARKETING 40000
E104 PERSONNEL 62000
E105 PERSONNEL 50000
E106 MARKETING 35000

Identify error(s) in the following SQL statement. Rewrite the correct SQL
statement.

SELECT Department, Salary

FROM Company

GROUP BY Department;

4. (a) Identify programming languages out of the following : 1

HTML, C11,JAVA, MySQL

(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.

Downloaded From : http://cbseportal.com/ Courtesy : CBSE


Downloaded From : http://cbseportal.com/

(d) Write the output that will be displayed in the textfields by the following 2
Java code :
String x;
String stream5“Commerce”;
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

Downloaded From : http://cbseportal.com/ Courtesy : CBSE


Downloaded From : http://cbseportal.com/

(g) Ms. Sharma works as a programmer in “ABC Car Rental Company”


where she has designed a software to compute charges to be paid by the
client. A screenshot of the same is shown below :

A client can take any car out of Deluxe/SemiDeluxe/Ordinary for rent.

A client can also opt for services of a guide. Charges vary depending on
the type of car opted.

Charges of services of Guide are extra.


Help Ms. Sharma in writing the code to do the following :

90 7 P.T.O.

Downloaded From : http://cbseportal.com/ Courtesy : CBSE


Downloaded From : http://cbseportal.com/

(i) After selecting appropriate Radio Button and checkbox(if required), 2


when ‘CALCULATE’ button is clicked, Amount, Guide Charges and
Total Amount should be calculated and displayed in the respective
text fields.

Category of Car Amount (in C)


Deluxe Car 1000 per day
Semi Deluxe Car 800 per day
Ordinary Car 700 per day

Amount is obtained by multiplying per day charges of Car with 2


number of days for which the car is taken.
If ‘Guide Required’ checkbox is selected, Guide charges per day are
` 500.00.
Guide Charges is calculated as : Car required for No. of days * 500;
Total Amount 5Amount1Guide Charges
(ii) When ‘CLEAR’ button is clicked, all text fields and checkbox should 1
be cleared.
(iii) When ‘CLOSE’ button is clicked,the application should close. 1

5. (a) Srishti has created the following table with the name ‘Veterinary’. 2

Column Name Constraint


AnimalId Primary Key
VaccinationsDate
AnimalName Not Null
OwnerName

One of the rows inserted is as follows :

AnimalId VaccinationDate AnimalName OwnerName


A101 2015-02-12 Sheru Amit Sharma

(i) What are the data type of columns AnimalId and


VaccinationDate in the table Veterinary ?

90 8

Downloaded From : http://cbseportal.com/ Courtesy : CBSE


Downloaded From : http://cbseportal.com/

(ii) Srishti is now trying to insert the following row :

AnimalId VaccinationDate AnimalName OwnerName


A102 2015-08-09 NULL Abhimanyu Shah

Will she be able to successfully insert it ? Give reason.


(b) Write the output of the following SQL queries : 2
(i) SELECT MID(‘LearningIsFun’,2,4);
(ii) SELECT ROUND(76.384,2);
(iii) SELECT INSTR(‘INFORMATION FORM’,’RM’);
(iv) SELECT DAYOFYEAR (‘2015201230’);
(c) Table “Order” is shown below. Write commands in SQL for (i) to (iv) and 6
output for (v) and (vi)
Table : Order

OrderId OrderDate SalesPerson OrderAmount


O101 2015-09-12 Ravi Kumar 34000
O102 2015-08-15 Rashmi Arora 50000
O103 2015-11-01 Ravi Kumar 55000
O104 2015-12-09 Manjeet Singh 60000
O105 2015-11-10 Rashmi Arora 50000

(i) To display names of SalesPersons (without duplicates).


(ii) To list OrderId and respective OrderAmount in descending order of
orderAmount.
(iii) To count the number of orders booked by SalesPersons with names
starting with ‘R’.
(iv) To list Order ids, order dates and order amounts that were booked
after 1st September 2015.
(v) SELECT OrderId, OrderAmount FROM Order where
OrderAmount between 50000 and 60000;
(vi)SELECT concat (OrderId, SalesPerson),
length(SalesPerson) FROM Order;

90 9 P.T.O.

Downloaded From : http://cbseportal.com/ Courtesy : CBSE


Downloaded From : http://cbseportal.com/

6. (a) Write SQL query to create a table ‘Song’ with the following structure : 2

Field Type Constraint


Songid Integer Primary key
Title Varchar (50)
Duration Integer
ReleaseDate Date

(b) Consider the tables given below : 2

Table : Party

PartyId Description CostPerPerson


P101 Birthday 400
P102 Wedding 700
P103 Farewell 350
P104 Engagement 450

Table : Client

ClientId ClientName Address Phone NoOfGuests PartyId


C101 A.K. Antony A-151, Adarsh Nagar 99101956 80 P101
C102 Fauzia Aria K-5/52,Vikas Vihar 893466448 500 P102
C103 Rashi Khanna D-6, Hakikat Nagar 981166568 50 P101
76-A/2, MG Colony,
C104 S.K. Chandra 65877756 100 P104
Adarsh Avenue.

(i) Name the Primary keys in both the tables.

(ii) ‘P101’ data is present twice in column ‘PartyId’ in ‘Client’ table - Is


there any discrepancy ? Give reason for your answer.

(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 :

(i) To display Client names of clients, their phone numbers, PartyId


and party description who will have number of guests more than 50
for their parties.

90 10

Downloaded From : http://cbseportal.com/ Courtesy : CBSE


Downloaded From : http://cbseportal.com/

(ii) To display Client Ids, their addresses, number of guests of those


clients who have ‘Adarsh’ anywhere in their addresses.

ClientId ClientName Address Phone NoOfGuests PartyId

(iii) S E L E C T ClientId, ClientName,NoOfGuests,


description, Costperperson,FROM Client, Party WHERE
Client.PartyId5Party.PartyId AND NoOfGuests BETWEEN
50 AND 100;
7. (a) How is an e-commerce business more cost effective than traditional 2
business ? Write two points.
(b) How is e-learning beneficial for old people ? Write one point. 1
(c) Ms. Ariya is creating a form for PAN CARD application. Help her to 2
choose most appropriate controls from ListBox, ComboBox, TextField,
TextArea, RadioButton, CheckBox, Label and Command Button for the
following entries.

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.

Downloaded From : http://cbseportal.com/ Courtesy : CBSE

You might also like