Q BgQuestion:

Rookie
Karma Points: 0
Respect (100%):
posted by  Dreamz on 7/23/2008 10:44:24 AM  |  status: Live  

Java Quiz..need answers within 24hrs... Will rate 7

Course Textbook Chapter Problem
N/A N/A N/A N/A
Question Details:
 

Choose the correct option and bold it. Each MCQ carry two marks.

 

  1. The _________ in Java is passed by value but ______ is passed by reference.

 

a.       Object, Parameters

b.      Parameters, Object

c.       Arguments, Reference type

d.      Reference type, Primitive type

 

  1. Array of array in ________is not fixed but in ____it is in a rectangle.

 

  1. C# , Java
  2. C++ , C#
  3. Java , C++
  4. C++ , Java

 

  1. Method that would be free functions in _________(not members of any class) should be static method in _________.

 

  1. Java , C#
  2. C++ , C#
  3. Java , C++
  4. C++ , Java

 

  1. In ________ for final fields and methods the value is assigned later but in ______ you assign the value during declaration.

 

  1. Java , C++
  2. C++ , C#
  3. Java , C#
  4. C++ ,Java

 

  1. In Java the ______________are not objects. All of the rest are objects, or any ___________ is called as object.

 

  1. generic type , reference type
  2. primitive types , generic type
  3. Reference type , generic type
  4. Reference type , primitive types

 

  1. For inheritance we use______ for interface we use________ keywords.

 

  1. subclass:baseclass , virtual function
  2. overloaded , virtual
  3. extend , implement
  4. virtual function , overloaded

 

  1. If there is no inheritance in Java then this environment may be __________but not ____________.

 

    1. object oriented, object based
    2. component based , object based
    3. object based ,component based
    4. object based , object oriented

 

  1. In inheritance if a subclass defines a method with the same name and the same number and types of arguments then the subclass has only one method with the same name of parent class method but with different functionality. Then it is termed as__________ method.

 

    1. Overwritten
    2. Overloaded
    3. Overridden
    4. Hidden

 

  1. In Java a sub class of a/an______ can override a method of its super class and declare it ___________ . In that case the subclass must be declared abstract.

 

    1. Abstract class, non abstract class
    2. non abstract class, abstract
    3. non abstract class , reference data type
    4. overloaded class, private

 

  1. _______exception inherits from exception class and _________ exception is anywhere in the program.

 

    1. Java , C#
    2. C++ , C#
    3. C# , Java
    4. Java ,C++

 

AAnswers:

Answer Question
Rookie
Karma Points: 5
posted by tipu on 7/23/2008 12:00:50 PM  |  status: Live
Asker's Rating: Helpful   
Response Details:
  1.The _________ in Java is passed by value but ______ is passed by reference.
a.       Object, Parameters
b.      Parameters, Object
c.      Arguments, Reference type
d.      Reference type, Primitive type
 
2.Array of array in ________is not fixed but in ____it is in a rectangle.
  1. C# , Java
  2. C++ , C#
  3. Java , C++
  4. C++ , Java

3.Method that would be free functions in _________(not members of any class) should be static method in _________.

  1. Java , C#
  2. C++ , C#
  3. Java , C++
  4. C++ , Java

 4.In ________ for final fields and methods the value is assigned later but in ______ you assign the value during declaration.

  1. Java , C++
  2. C++ , C#
  3. Java , C#
  4. C++ ,Java
 
5.In Java the ______________are not objects. All of the rest are objects, or any ___________ is called as object. 
  1. generic type , reference type
  2. primitive types , generic type
  3. Reference type , generic type
  4. Reference type , primitive types
 
6.For inheritance we use______ for interface we use________ keywords. 
  1. subclass:baseclass , virtual function
  2. overloaded , virtual
  3. extend , implement
  4. virtual function , overloaded
 
7.If there is no inheritance in Java then this environment may be __________but not ____________. 
    1. object oriented, object based
    2. component based , object based
    3. object based ,component based
    4. object based , object oriented
 
8.
In inheritance if a subclass defines a method with the same name and the same number and types of arguments then the subclass has only one method with the same name of parent class method but with different functionality. Then it is termed as__________ method. 
    1. Overwritten
    2. Overloaded
    3. Overridden
    4. Hidden
 
9.In Java a sub class of a/an______ can override a method of its super class and declare it ___________ . In that case the subclass must be declared abstract. 
    1. Abstract class, non abstract class
    2. non abstract class, abstract
    3. non abstract class , reference data type
    4. overloaded class, private
 
10._______exception inherits from exception class and _________ exception is anywhere in the program. 
    1. Java , C#
    2. C++ , C#
    3. C# , Java
    4. Java ,C++
Sage
Karma Points: 3,357
(Memorial High School)
posted by sapporo on 7/23/2008 12:12:10 PM  |  status: Live
Asker's Rating: Lifesaver   
Dreamz's comment:
"Thanks"
Response Details:

Choose the correct option and bold it. Each MCQ carry two marks.

 

  1. The _________ in Java is passed by value but ______ is passed by reference.

 

a.       Object, Parameters

b.      Parameters, Object

c.       Arguments, Reference type

d.      Reference type, Primitive type

 

  1. Array of array in ________is not fixed but in ____it is in a rectangle.

 

  1. C# , Java
  2. C++ , C#
  3. Java , C++
  4. C++ , Java

 

  1. Method that would be free functions in _________(not members of any class) should be static method in _________.

 

  1. Java , C#
  2. C++ , C#
  3. Java , C++
  4. C++ , Java

 

  1. In ________ for final fields and methods the value is assigned later but in ______ you assign the value during declaration.

 

  1. Java , C++
  2. C++ , C#
  3. Java , C#
  4. C++ ,Java

 

  1. In Java the ______________are not objects. All of the rest are objects, or any ___________ is called as object.

 

  1. generic type , reference type
  2. primitive types , generic type
  3. Reference type , generic type
  4. Reference type , primitive types

 

  1. For inheritance we use______ for interface we use________ keywords.

 

  1. subclass:baseclass , virtual function
  2. overloaded , virtual
  3. extend , implement
  4. virtual function , overloaded

 

  1. If there is no inheritance in Java then this environment may be __________but not ____________.

 

    1. object oriented, object based
    2. component based , object based
    3. object based ,component based
    4. object based , object oriented

 

  1. In inheritance if a subclass defines a method with the same name and the same number and types of arguments then the subclass has only one method with the same name of parent class method but with different functionality. Then it is termed as__________ method.

 

    1. Overwritten
    2. Overloaded
    3. Overridden
    4. Hidden

 

  1. In Java a sub class of a/an______ can override a method of its super class and declare it ___________ . In that case the subclass must be declared abstract.

 

    1. Abstract class, non abstract class
    2. non abstract class, abstract
    3. non abstract class , reference data type
    4. overloaded class, private

 

  1. _______exception inherits from exception class and _________ exception is anywhere in the program.

 

    1. Java , C#
    2. C++ , C#
    3. C# , Java
    4. Java ,C++

Rate me livesaver!!and let me know if you need help!

s
Answer Question
Ask New Question

Join Cramster's Community

Cramster.com brings together students, educators and subject enthusiasts in an online study community. With around-the-clock expert help and a community of over 100,000 knowledgeable members, you can find the help you need, whenever you need it. Join for free today »