Vous êtes sur la page 1sur 6

KENDRIYA VIDYALAYA SANGATHAN

ERNAKULAM REGION

INFORMATICS PRACTICES (065)


Time allowed: 3Hrs

Maximum Marks :70

Instructions:
i) All the questions are compulsory
ii) Programming Language Net beans & Mysql
1.
(a) What is Gateway

(b)Define cloud computing

(c)Expand PAN, TCP

(d)Which of the following is not a transmission medium?

Telephone lines, Coaxial cable, repeater, Bluetooth


(e)Write the advantages of fiber optic cables

(f) What do you under stand by domain name resolution

(g)Differentiate between passive hub & active hub

2.
(a) Which control should be used along with radio button to activate single selection

(b)Differentiate between break & continue

(c)Write the html tag to display the whole page in Hindi

(d)Write html tag to display an image rose. jpg located in D:\ drive

(e) Write for loop to print first 10 even numbers & their sum

(f) Expand these terms, and what are they?


Mbps & mbps

(g)Write a java program to find the area of a rectangle

3.
(a) Write mysql command to check the available databases

(b) What is the use of distinct key word in mysql

(c) Define alternate key

(d) A table contains 4 rows and 8 columns, Mr. Aravind inserted two more records into it and he 1
dropped one column from the table now what is the degree and cardinality of the table
(e)How to set auto commit mode on and off in mysql

(f)Mr Rohan is having a10 digit phone number in a string type variable mobno. Help him to store the
same into a double type variable PHONENO
2
(g) Select empname , empcode, emp salary from employee
group by empdesignation where age<45;

4.
(a)Predict the out put of the following
int a=50;
do{
tf1.setText( + 100);
else
tf1.setText( + 150);
a=a+5;
}
while(a<55)

(b)
Rewrite the following code using if..else if without effecting the output of the code:
switch(per)
{

case 90 : System.out.println(A1); break;


case 80 : System.out.println(A2); break;
case 70 : System.out.println(B1); break;
case 60 : System.out.println(B2); break;
case 50 : System.out.println(C1); break;
default : System.out.println(D1); break;
}

(c)How many times the loop will rum

for(int i=5,j=10; i<10; j++)


tf1,setText( + i);

(d)Write out put of the following


jtextField1.setText(Go To Work and SMILE , substring(7,1));
2

(e)

Rewrite the corrected program after removing syntax errors, underline the corrections
integer P=1 ;
integer C=1 ;
FOR C=1 TO 10
P = P+1
If (P=5)
P = 1;
DISPLAY P is equal to 5;
ELSE
DISPLAY P is not equal to 5;
C equal C PLUS 1;

(f)What will be the content of jTextField1 after executing the following


jTextField1.setText( + math.round(326.496,2));
jTextField2.setText( + math.pow(2.3));
(g)
Answer the following questions (a) & (b) for the application Hospital Patient Billing.

(a) Write the code for exit button to close the application
2
When the user clicks clear button, patient Number and Patient Name should be
set as Blank. Other text boxes should be set to zero. Also make the default catogery of service as
general
(b) When the calculate bill is clicked, Sub Total, Tax(12% of sub total), Total amount
to be paid by the patient are computed and displayed.
The criterain for calculation of sub Total Charges is as given below.
Patient Catogory

Stay Charges

Deluxe

Rs 4000.00 Per day

Private

Rs 2000.00 Per day

Semi Private

Rs 1000.00 Per Day

General

Rs400.00 per Day

*Total Stay charges will be calculatyed as No.of Days * Stay charges.


* Sub Total is calculated by adding Total Stay Charges, Doctor Charge, OT Charge,
patient Meal
*Tax is levied at 12% of Sub Total
*Advance Deposit is enetered by the user.
*Amount to pay is (Sub Total + Tax)- Advance Deposit by the Patient.
5.
(a)Differentiate between drop and delete commands with example

Phone

Divakar

22

Rohini

27045249

Rajiv

23

SarojiniNagar

25567892

Smith

24

Paschim Nagar

25580438

Arpit

19

Mautan nagar

25585643

Sunney

26

Dev Nagr

27123462

Sumit

23

Vikas Puri

25565127

Rajiv

27

Rohini

27869845

Rohit

24

Rohini

27057845

Anand

34

Pitam Pura

27026534

10

Vidhi

26

Bank Viharr

27036713

(i)Todisplay Vno,Vname,Age of all voters in descending order of Vname

Medicine and

(b)Table furniture has 9 rows and 4 columns, what is the degree and
cardinality of the table
(c) Write the Sql Commands for (i) to (v) and out put for (vi to vii)
VOTER
Vno
Vname
Age
Address

(ii)To list all vothers who are either residing in Rohini or whose age<25

(iii)To display the details of the voters whose age between 20&30

(iv)Count the number of voters where address is Rohini

(v)Display the details of voters whose phone starting with 25

(vi)Select count(Distinct age) from Voter

(vii)Select MIN(age) from VOTER where address = Paschim Nagar;

6.
(a) Write Mysql command to create the table hospital with following details
HOSPITAL
NAME OF THE
TYPE
SIZE
CONSTRAINT
COLUMN
Pid

varchar

Primary Key, NOT NULL

Pname
Pdname
Pdate

varchar
varchar
date

15
20
-

NOT NULL
-

(b) Study the tables given below and write queries for the following
CONSULTANT
ID
NAME
DEPT
SEX
E01
RAJ
ENT
M
O04
ROHAN
ORTHO
M
C07
MARIA
CADIO
M
E14
MATHEW
ENT
F

SALARY
ID
E01
O04
C07
E14

BASIC
12000
23000
32000
12000

ALLOWANCE
1000
2300
4000
5200

EXPERIENCE
12
5
10
3

CONSULTATION
300
400
500
100

(i) Display the average basic of all doctors working in ENT department

(ii)Display the name and minimum allowance of female doctors.

(iii)Display the name ,department and annual basic of all male doctors

(c)
(i) Identify the foreign key of salary table

(ii) Decrease consultation fee of all doctors with 50 rupees

7.
(a)List out 2 back end tools (database softwares)

(b)
What are the main advantages of E-business ?, Give some examples of E-business portals

(c) Miss Gayathri created a software application for a banking system with the

following contents . help her to select the suitable components

SL NO

CONTROL USED TO

Customers complete address

Account No

Account type (savings/current)

Branch selection

CONTROL

Prepared By:
ARUN PRASANTH P V
PGT Comp. Science
K V KANJIKODE

Vous aimerez peut-être aussi