Tuesday, 21 August 2012

Java netbeans paper1


Q1) FRX Consultancy is registtring job seekers for placement. Their basic entry form has following features

a)      All the characters entered should be convereted into uppercase characters.
b)      When submit buttin is clicked,:
1)      If postgraduate is selected, intermeddiate and graduate should be automatically selected.
2)      If graduate is selected, intermediate should be automatically selected
3)      Message box should be dsiplay” hello, Mr/Ms……., you are registered”
c)       Clear button should clear all the checkboixes, radiobutton and testboxes

FRX CONSULTANCY

NAME:   
 

GENDER:     Male
                     Female

QUALIFICATION:
Intermediate
Graduate
Postgraduate

CLEAR
 
SUBMIT
 
 





Q2)Predict the output:
a)      String name=”TATA”;
int i=0;
While(i<name.length())
{
System.out.println(name.substring(I,i+1));
i++;
}
b)      int a=1;
int count=20;
do

a=a*count;
count=count-2;
} while(count<10);
system.out.print(a);

c)       Given a string object names salary having value as ‘55000” stored in it ., Obtain the output of the following:
JoptionPane.showMessageDialog(null,+salary.length()+Integer.parseInt(salary));

d)      String a=”abc”;
System.out.println(a+”abc”+”12”);

e)      Int a =5,b=10;
If(a>5)
If(b>5)
System.out.print(b);
Else
System.out.print(a);
System.out.print(“notvalid”);

f)       for(int a= 40;a>10;a--)
Int f=f*a;
System.out.print(f);

g)      jTextArea1.setText(“India\nIncredible\n\tIndia”);
h)      int x=20;
int y=10;
int z=0;
if((++y<x--)||(y!=5))
{
System.out.println(x++);
System.out.println(y);
Z=++y+ ++x;
System.out.println(z)
System.out.println(x);

}

Q3) Write a java code :
a)      that prints factorial of even number between 5 to 10.
b)      That checks whther a string is a palindrome or not.
Q4) What is ResultSet? How can you retrieve data with the help of Resultset. Give example.
Q5)Explain two types of polymorphism with example
Q6) what is buttongroup?
Q7) where is ecochar property used.
Q8) suggest a property that can be set to guide a user for the purpose of the control used or the type of input expected.
Q9)public class example extends javax.swing.frame;
{
Public example()
{
}
}
a)      Which featur eof oop is depicted in the above code.
b)      Name the base class and dervied class
c)       Underline the keyword used for passing on base class data to derived class

Q10) Design a gui application that repeatdely accepts number in a an option pane and once the number typed is 0, the maximum and minimum number is displayed

Q11) A college with postgradtuate studies has computrized its fees collection. The following is the data entry used art their fees counter, the facilities avaiable are library, lockers and hostel . The fee for library is rs 200 , for lockers is rs 100, and hostel it is 2000. The student has facility to pay either fees for one semester or two semesters  together. Post gradtuate courses are mca,mba and mtech.  Mca fees per semester is 50000, mba: 70000, mtech:65000. . calculate net fees.

No comments:

Post a Comment