Page 61 - IP
P. 61
'Re-attempt required' message depending the marks entered in
jTextField.
Help her to choose more appropriate statement out of 'If statement' and
'Switch
statement'. 1
(b) Write a statement to make jTextArea1 as un-editable. 1
(c) Which HTML tags are used for making a table and adding rows in a HTML
document? 1
(d) How is <UL> tag different from <OL> tag of HTML? 1
What will be the value of A and B after execution of the following
(e) code: 2
int A = 100, B ;
for (B=10; B<=12; B++)
{
A+=B;
}
JOptionPane. showMessageDialog (this, “A:”+A+”B:”+B+””) ;
(f) Differentiate between HTML and XML. 2
(g) Write Java code that takes the price of a pencil from jTextField1
and quantity of pencils from jTextField2 and calculates total
amount as price * quantity to be displayed in jTextField3 and also
find 10% tax amount to be displayed in
jTextField4. 2
Q3 (a) Write MySql command will be used to open an already existing database
"LIBRARY"
(a) The Mname Column of a table Members is given below: 2
Mname
Aakash
Hirav
Vinavak
Sheetal
Rajeev
Based on the information, find the output of the following queries:
2