samebrickSoftware and s/w Development

Nov 18, 2013 (3 years and 4 months ago)






Which of the following methods is used to get the error message for the exception that was thrown :

a) print message

b) extract message

c) throw message

d) get messa

2. Exceptions that are expected to possibly occurs are called :

a) checked exceptions

b) unchecked exceptions

c) runtime exceptions

d) errors.

3.The correct sequence

of try,catch and finally is usually :

a) try,catch ,fin

b) finally,try,catch

c) catch,try , finally

d) try, finally,catch

4.which of the following activities has the potential to throw a checked exception ?

a) accessing an array

b) dividing a no by another

c) opening a file

d) all of

the above

5. The finalize method is declared with the access specified :

a) Public

b) private

c) protected

d) package

6. Which of the following packages is imported by default ?

a) java.lang

b) java.io

c) java.math

d) java.tex

7. Which of the following is not a keyword in java :

a) Volatile

b) Pointer

c) super

d) this

8. A break statement cant be used inside a :

a) for statement

b) switch statement

c) labeled block

d) none of the above

9. A Package

is a collection of :

a) classes

b) interfaces

c) editing tools

d) classes and interfaces

10. COM stands for :

a) Component Object Model

b) Control Oriented Model

c) Computer Oriented Model

d) None of the above

11. In VB, the prefix

for naming a menu item is …………..

a) m

b) mnu

c) men

d) mne

12. The reserve word DIM in VB is a ………………….

a) declaration

b) size

c) storage allocation

d) identifier

13. ADO stands for :

a) Active Data Object

b) ActiveX Dat
a Object

c) Access Data Object

d) All of the above

14. We can create object at :

a) Design time

b) Run time

c) Both (a) & (b)

d) None of the above

15.Database tools are added automatically to the toolbox when project is developed under

a) Standard EXE

b) Data project

c) DHTML applications

d) Database Applications

16.A binary operator :

a) Negation

b) Bitwise Complement

c) NOT

d) None of the above

17. Which type of inheritance accomplished in Java using int
erfaces ?

a) Single Inheritance

b) Multilevel Inheritance

c) Multiple Inheritance

d) Hybrid Inheritance

18.The form caption appears in the :

a) Status bar

b) Menu Bar

c) Title bar

d) None of the above

19. Which key event occurs wh
en a key is pressed?

a) key type

b) key up

c) key enter

d) key press

20. A control array is :

a) Group of similar items

b) Group of similar controls

c) Group of controls that have same name

d) None of the above

Descriptive questio
ns :


What is a form in VB? What are the components of IDE?


Differentiate between the following :


List box & combo box control


Modal & Modeless mode of form


Text box & label control


What are the different operators in JAVA?Write a short note on method over


Write a short note on control structures in VB.


Explain basic concepts of object oriented programming language. Why JAVA is known as platform neutral language..


What is JAVA Applet? Explain Applet life cycle with the diagram.




1. What does the following line of code do? Student S1=new Student(10);

a) creating objects of 10 rows

b) creating objects of 10 rows

c) creating the o
bject S1 & initialize it with value 10

d) the code is illegal

2.Which of the following methods belong to String class?

a) Length()



d)all of above

3.Which of the following is JAVA keyword?

A ) External


c) private

d) Throwing

4.Which of the following is legal array declaration :

A ) int *x;

b) int x[5];

c) int a[]={1,2,3};

d) none of the above

5.What will be the output of following code :

int i=0;





a) ca
nnot be compiled

b) Execute in infinite loop

c) produce an error

d) none of the above

6.Which of the following is true :

a) All class must define a constructor

b) A Constructor can be declare private

c) A constructor can have no return value

d) all of the above

7.If we would like to prevent a method being further sub
classed then we have to use the following

a) static


c) inheritance


8. class members are by default :

a) private

b) protected

c) public

d) public protected

9.The && and || operators are:

a) compare two numeric values

b) combine two numeric values

c) compare two Boolean values

d) combine two Boolean values

10. overloading functions :

a) make problem simple for pro

b) are group of functions with same name

c) may be failed

d) give unexpected results

11.which of following is correct :

a) import.java.lang;

b) import java;

c) import java.lang.*;

d) none of
the above

12.Which of the following is the l
egal definition of main :

a) public static int main(String args [])

b) public static void main(String args[])

c) public static void Main(String args[])

d) public static void main(string args[])

13. JVM stands for :

a) java value machine

b) java v
irtual mechanics

c) java virtual machine


14. when a class hierarchy is created in what order the constructors in a hierarchy are called :

a) from sub class to super class

b) from lower class to upper class

c) from super class to sub class

d) none of the above

15.To inherit definition of one class into another is done by using keyword :

a) Extends

b) extend

c) extends

d) Extend

16. Actions associated with objects are called :

a) Methods

b) Properties

c) Events

d) None of the above

17. ADO connects itself to a database through :

a) Recordset

b) OLE DB provider

c) Data Source

d) None of the above

18. The characterstic that data can be manipulated only through member functions that are part of
the c
lass is called :

a) Encapsulation

b) Inheritance

c) Data Dependency

d) Instantiation

19. Methods declared final can not be :

a) Overridden

b) Overloading

c) Inherited

d) Abstracted

20. In Applets which method works as constructors :

a) start()

b) paint()

c) stop()

d) init()

Descriptive Questions :


Explain JAVA features. Also explain java virtual machine.

2.What is visibility Control or access specifiers. What are the types & effect of these on fields.

3.Explain various d
ata types in JAVA.

4.a) What is the meaning of public , static void in statement public static void main(String args[]).

b) How can we create a object of any class in java?

5 What is constructor? What are the special properties of the constructor.. When d
o we declare a method or class Final.

6. Write a program in Java language to find out the factorial of natural number 5. What is function overloading.