Saturday, 18 March 2017

Java Programming


MODEL EXAMINATION 

Subject: Java
Time: 2 Hrs
Max. Marks: 50
I. Fill In The Blanks :-
1. Java compiler translates source code to ………..
2. The comparison done with the help of ……operators.
3. The ……operator is used to access the instance variables in java.
4. Objects in java created by using …..Operator.
5. Private is an example of …….in java
6. What is a thread?
7. A loop is continues for ever, it is called ………
8. A ……is used to initialize an object when it is declared.
9. A class that cannot be sub classed is ………….
10. Applets are initialized by calling ………method.
(10x1/2=5)
II. State Whether The Following Statement Are True
1. A  Java program basically a collection of classes.
2. If...else statements are not an extension of simple if.
3. Identifiers are user defined tokens.
4. For loop is another entry controlled loop.
5. Java is a procedure oriented language.
6. The member of a class can be a constant or variable.
7. Constructors have different name as the class.
8. do…….while is an  exit control loop
9. Java classes are reused in several ways.
10. The keyword super only be used within a subclass constructor method.
(10x1/2=5)

III. Short Questions
1. Define a class and object?
2. Syntax of for loop?
3. What is mean by a constructor?
4. What is an applet?
5. What is an array in java?
6. What is mean by inheritance?
7. What is the use of extends keyword?
8. Define method overloading?
9. Define life cycle of a thread?
10. Write the syntax of expression handling code?
(10x2=20)
IV. Answer Any Four From The Following
1. Printing multiplication table using while loop?
2. Write an applet program to display human face?
3. Explain method overloading in java?
4. Write different types of inheritance in java?
5. Explain applets life cycle?
(4x5=20)