Professional Documents
Culture Documents
2014 12 SP Informatics Practices 02
2014 12 SP Informatics Practices 02
CLASS - XII
SUBJECT – INFORMATICS PRACTICES (065)
Duration : 3 Hours Maximum Marks : 70
General Instructions:
I. All questions are compulsory.
II. Answer the question after carefully reading the text.
1.(a) Two neighbors schools at a distance of 130 meters from each other, decide to join their LANs using UTP
cables so that they can share their e-learning resources. But after joining their LANs they are not able to share
the resources due to loss of signal in between. Which device should they use so that signal is amplified in-
between? 1
(b) Sumit has written two addresses as 198.165.1.5 and AB.YU.2F.K7.12.65.he is not able to find out the
difference between these addresses. Help him for the same. 1
(c) Write example of one Proprietary and one Open Source Software. 1
(d) Identify the wired and wireless technologies from the followings: 1
Bluetooth, Optical Fiber, Co-axial, Infrared
(e)Define any two threats to Network Security? 2
(f)Define the following: Bridge and a Router. 2
(g)Give suitable example of URL and Domain Name 2
2.(a)Mr. RajKumar is doing Java course from ABC Computers. He has clear the concepts of different operators.
Now he is studying about conditional statements .He wants to use the relational and logical operators with
conditional statements but he is confused which conditional statement use between IF and Switch.Help him for
the dame. 1
(b) What are the values we can give with type attribute in <UL>tag? 1
(c)Why is it necessary to put break statement after every case in a switch statement? 1
(d)Which tag is used to define the Header row of a table? 1
(e)What will be the value of sum after executing the following code: 2
int x, sum = 0;
for (x= 1; x <=5; x++)
{
sum+ =x;
}
(f) Write a function in Java that accepts two numbers as parameters and returns the greater one. 2
(g)How are tags used in XML different from tags in HTML? Write 2 points. 2
3. (a) If a database “Student” exists, which Mysql command helps you to start working in that database?1
(b)Pooja created a table in Mysql. Later she found that there should have been another column in the table
.Which command should she use to add another column to the table.? 1
(c)Give one difference between ROLBACK and COMMIT commands used in MySql. 1
(d) Can a table have multiple primary key? Can it have multiple foreign key? 1
(e)What is the purpose of following MySql Command: 2
SELECT MAX (salary) FROM EMP;
(f)A table “Customer” in database 5 columns and no rows in it. What is its cardinality? What will be its
cardinality if 4 rows are added in the table. 2
(g) A table sales has following information: 2
TABLE :SALES
SALES COMMISSION
60000 560
35000 450
23000 400
8000 NULL
(d) What will be the contents of sum after executing the following code: 1
int i = 2, j = 5,sum =0;
while (i < j)
{
sum+ =i;
i++;
}
(e) What will be the contents of jTextField1 and jTextField2 after executing the following code: 2
String str =”Mahatma”;
jTextField1.setText(str.substring(4));
jTextField2.setText( “” +str.length( ));
(f) The following code has some error(s).Rewrite the correct code underlining all corrections made. 2
int i = 2, j = 5;
while j >i
{
jTextField1.getText(“j is greater”);
j --; ++I;}
joptionpan.showMessageDialog(“Hello”);
(g) ABC School uses the following interface built in java to check the eligibility of a student for a particular
stream from science, commerce and humanities. The user first enters the total percentage and selects the desired
stream by selecting the appropriate option button. An additional 5% is marks is given to students of NCC.
Write Java Code for the following
a) On the Action event of the close button the application gets closed. 1
b) On the Action event of the clear button all the text fields and the check boxes get cleared. 1
c) On Action event of the button ‘Calc Percentage’ Net percentage of the student is calculated and
displayed in the appropriate text filed. Net percentage is same as that of the actual percentage if
the student doesn’t opts for NCC otherwise 5% is added to actual percentage. 2
d) On Action Event of the button ‘Result’, the application checks the eligibility of the students.
And display result “ in the appropriate text field. Minimum percentage for science is 70, for
commerce 60 and for humanities 40. 2
5.(a) How can you remove the column of a table? Explain with example.
2
(b) What are TCL commands? Explain the role of Commit and Rollback with example.
(c)Consider the table Doctor given below, write command in SQL for (1) to (4) and output for (5) to (8).
6
Table : DOCTOR
6.(a) Write MySql Command to create the Table “Hotel” with the following structure: 2
Table: Hotel
Type Varchar(20)
Floor Varchar(10)
(b) In a database, there are two table “Company” and “Model” as shown below:
Company
CompID CompName CompHO Cont Person
Model
T020 1 2000
M059 2 7000
M032 3 2500
Client
CID CliName City PID
01 Rakesh Delhi TP01
02 Prakash Mumbai TP05
03 Suresh Delhi TP03
04 Dinesh Delhi TP02
05 Pravesh Banglore TP04
GAURAV BHATIA
HOD (COMP.SC.)
SHRIRAM SCHOOL, MAWANA