Académique Documents
Professionnel Documents
Culture Documents
ERNAKULAM REGION
Instructions:
i) All the questions are compulsory
ii) Programming Language Net beans & Mysql
1.
(a) What is Gateway
2.
(a) Which control should be used along with radio button to activate single selection
(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
3.
(a) Write mysql command to check the available databases
(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)
{
(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;
(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
Private
Semi Private
General
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
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
6.
(a) Write Mysql command to create the table hospital with following details
HOSPITAL
NAME OF THE
TYPE
SIZE
CONSTRAINT
COLUMN
Pid
varchar
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
(iii)Display the name ,department and annual basic of all male doctors
(c)
(i) Identify the foreign key of salary table
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
SL NO
CONTROL USED TO
Account No
Branch selection
CONTROL
Prepared By:
ARUN PRASANTH P V
PGT Comp. Science
K V KANJIKODE