Search Result

Earn Money from Home Without any Investment

Hi Friends,
Check my Second blog for Earning Money from Home without Investment any thing.
http://makingmoneyandptc.blogspot.com/
Do the registration in PTC site and make a good amount of money.

Earn a 100$ per month

EARN MONEY ONLINE BY CLICKING ADS

Wednesday, 25 September 2013

JAVA MCQ SET - 01


1.The concepts of OOP are:
a.    Abstraction
b.   Encapsulation
c.    Inheritance
d.   All of these
 
2.A  class is a_____
a.    System defined
b.   User defined
c.    Server defined
d.   None of these

3.The variables declared in the class are known as_____
a.    Instance integer
b.   Instance float
c.    Instance variable
d.   None of these

4.The variables and methods declared within the ________
a.    Parenthesis
b.   Curly braces
c.    Braces
d.   None of these

5.To access the variables and methods outside the class, the _____ operator is used as follows:
a.    Semicolon
b.   Colon
c.    Dot
d.   None of these

6.How many methods we used to passed the argument?
a.    1
b.   2
c.    3
d.   4

7.The name of argument passing method:
a.    Call by value
b.   Call by reference
c.    Both a & b
d.   None of these

8.The argument that appear in the method call statement are known as:
a.    Formal arguments
b.   Actual arguments
c.    Informal arguments
d.   None of these

9.Which appear in the method definition are known as:
a.    Formal arguments
b.   Actual arguments
c.    Informal arguments
d.   None of these
 
10.  A _______ has the same relation to an  ______ that a basic data type has to a variable of that type.
a.    Class, object
b.   Class, method
c.    Object, method
d.   None of these
 
11.  Which of the operators is used for creating an object and allocating memory space to it?
a.    Dot operator
b.   New operator
c.    Instance of operator
d.   None of these

12.  Which of these entities is the correct syntax for accessing the members of a class?
a.    class.member.class_object
b.   class_object.class_name
c.    class_name.class_member
d.   class_object.class_member