Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

GUESS PAPER – 2014

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

(i) Select Avg (Commission) for Sales;


(ii) Select Count(Sales) from Sales;
4.(a) What is the difference between private members and public members of a class 1

(b)Rewrite the following if-else segment using switch-case statement. 2


char ch = ‘P’;
if((ch == ‘p’) || (ch == ‘P’))
System.out.println("Platinum");
if((ch == ‘g’) || (ch == ‘G’))
System.out.println("Gold");
if(ch == ‘S’)
System.out.println("Silver");
else
System.out.println("Normal");

(c)What is the purpose of the following statement:


jTextField1.setText(“Informatics Practices”,toUpperCase( )); 1

(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

ID Name Dept Gender Experience ConstFee


201 R.K. Nath ENT M 12 300
457 Mahavir Singh SKIN M 500
365 M. Asthana MEDICINE F 9 250
221 V. S. Nag ENT M 3 150
122 S. P. Sinha NEPHRO F 200
110 J. P. Pandey CARDIOLOGY M 9 500
(1) To display name of all doctors who are in Medicine having more than 10 years of experience.
(2) To display the different departments.
(3) To display minimum consultation fee of female doctors
(4) To display name and department of male doctors who has no experience.
(5) SELECT AVG(ConstFee) FROM Doctor WHERE NOT Gender=’F’;
(6) SELECT Count(Experience) FROM Doctor;
(7) SELECT Name, Experience FROM Doctor WHERE id BETWEEN 100 AND 200;
(8) SELECT SUM(ConstFee),MAX( Experience) FROM Doctor;

6.(a) Write MySql Command to create the Table “Hotel” with the following structure: 2
Table: Hotel

Field Name Field Type Constraint

Room_No Integer(3) Primary Key

Type Varchar(20)

Fare Integer(4) Not Null

Floor Varchar(10)

(b) In a database, there are two table “Company” and “Model” as shown below:
Company
CompID CompName CompHO Cont Person

1 Titan Okhla BC.Joshi

2 Ajanta Najafgarh V.P.Gupta

3 Maxima Shahdara R.Kumar

Model

ModelID CompID ModelCost

T020 1 2000

M059 2 7000

M032 3 2500

(i) Identify the foreign Key column in the tble model. 1


(ii) Check every value in CompID column of both the tables. Do you find any discrepancy? 1
(c) Consider the tables product and client give below –
Product
PID ProdName Manufactures Price
T P01 Pen Cello 5
T P02 Gel pen Luxar 10
T P03 Ink pen Luxar 10
T P04 Pencil Natraj 2
T P05 Sketch Camel 2

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

i. To Display the details of products whose Price is in the range of 6 to 10


2 ( Both value included )
ii. To display client name, city from table chart and ProdName and price from table
2 product.
iii. To increase the price of all products by 10. ( Product the output only)
2

7 (a) Write two major Projects of E-Governance in India? 1


(b) How is e-learning beneficial to students? 2
(c) Ashok works for a Hotel. He warts to create controls on a form in NetBeans for the following
function. Choose appropriate controls from TextField, Label , RadioButton , CheckBox , List ,
ComboBox , Button and write in the third column. 2

S.No. Controls use to Control


1 Select room type
2 Enter customers name
3 Enter arrival date
4 To book rook

GAURAV BHATIA
HOD (COMP.SC.)
SHRIRAM SCHOOL, MAWANA

You might also like