Professional Documents
Culture Documents
com/
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieeeguess.com | www.niosguess.com |
www.iitguess.com
http://www.cbseguess.com/
}
System.out.println(“Values are “+x+” “+y);
(vii) Rewrite the following code using if….else statement? 2
int c = jComboBox1.getSelectedIndex();
switch(c)
{
case 0 : BillAmt = BillAmt*.05; break;
case 1 : BillAmt = BillAmt * .09; break;
case 2 : BillAmt = BillAmt *.11; break;
case 3 : BillAmt = BillAmt *.13; break;
default : BillAmt = BillAmt-0 ; break;
}
(viii) (a) Which tag is used in HTML to create ComboBox? 1
(b) Which tag in HTML is used to draw a bar?
3 (i) Mr Ankit Patel a database developer created a table reservation in the database railways. 1
Later on he is unable to remember the size of columns and any constraints defined in the
Table . Suggest him the command which he should use to get the required information.
(ii) In the above question Mr. Patel by mistake written Delhi in place of NewDelhi in the 2
destination column of passenger code P005. Now he wants to perform the correction?
What complete command he should write to change Delhi to New Delhi.
(iii) Mr Kumar created two tables Admission and Library to store detail of students. When 1
Mr Kumar is trying to delete a record of student from Admission table he is unable to
perform the same. What may be possible reason? Both the tables contains a common
column Reg_No.
(iv) In a database Schools, staff is a table which is having Aff_No, Name, Principal and 2
Mobile_no as column. When the following code are executed it produces 27 and 22
as query output for the following query. What is the possible reason for that:
(i) SELECT COUNT (*) FROM STAFF;
(ii) SELECT COUNT(PRINCIPAL) FROM STAFF;
(v) Mr Gupta a bank Manager wants to see the detail of customer from customer table of 1
those customer whose name contains S as 3rd letter in the name. Help him to write the
query.
(vi) Write a command to DELETE all the records of a table FOODS? 1
(vii) What is the difference between Candidate Key and Alternate Key. 1
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieeeguess.com | www.niosguess.com |
www.iitguess.com
http://www.cbseguess.com/
(viii) Which command is used to eliminate redundant data from query result set? 1
(d) What do you mean by call by value and call by reference of a method? 1
(e) Mr Susmita a Web Developer wants to create a web page which contains the list as given 1
below.
8 Rajkot
9 Mehsana
10 Ahmedabad
Write the Html code for the following.
(f) Write any four differences between XML and HTML?
2
(g) What will be content of textArea when following code will be executed? 2
String str1=”Ruksana”;
String str2=”Ruksaar”;
jTextArea1.Append(str2.length()+str2.concat(str1).length());
5 (a) Sri SAI Hotel computerized its Billing System. Given below the data entry screen through
which bill amount is calculated.
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieeeguess.com | www.niosguess.com |
www.iitguess.com
http://www.cbseguess.com/
(i) Write the code for calculate button to calculate bill amount, service tax as per the 3
rate specified in the table. Total bill amount=total amount + service tax.
(ii) Write code for clear button to clear all the controls. 1
(iii) Write the SQL Query for (a) to (f) and output of (g) and (h) on the basis of table BANK 7
given below:
BANK
Ac_No Cust_Name B_Name Amount Date_of_open No_of_transaction
A001 Agam Shah SBI 28000 2011-06-01 5
A002 Nishant HDFC 22000 2012-07-02 7
Patel
A003 Krunal ICICI 66000 2012-06-04 9
A004 Twinkle HDFC 55000 2013-01-10 6
A005 Jinal ICICI 34000 2013-01-15 3
A006 Aaditya SBI 90800 2013-08-18 1
A007 Varsha AXIS 18000 2013-09-11 2
A008 Vishnu ICICI 97000 2011-08-13 5
A009 Dhruv Raj UCO 12000 2010-12-01 7
(a) To display the number of customer in SBI who opened their account in the year 2013.
(b) Display Ac_No,Amount,No_of_transaction of customers whose bank is SBI or ICICI
or UCO bank.
(c) Display the detail of customer whose name ends with ‘l’.
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieeeguess.com | www.niosguess.com |
www.iitguess.com
http://www.cbseguess.com/
************ BEST OF L
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieeeguess.com | www.niosguess.com |
www.iitguess.com