Cramster.com - Homework Solutions, Lecture Notes, Exams, and Free Online Homework Help
Sign Up Now! Login Customer Support Cramster Blog
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Problem Solved.
    Home    
    Homework Help    
   Answer Board   
    Resources (Beta)    
   
Member's Topic Headline:

MCQ's

Know the answer? Have a better solution? Share it.
Get Help Now.
View homework problems
explained for free!
Member Testimonials

Question:

Advertisement:

Answer | Ask New Question | Customize Profile | Leaderboards | 
FAQ

Member's Avatar

Scholar
Karma Points: 207
(virtual university)
Respect (76%):
Date Posted: 7/22/2008 12:47:10 AM  Status: Live
MCQ's
Course Textbook Chapter Problem
N/A N/A N/A N/A
Question Details:
 

Choose the correct option and bold it.

 

  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++

 

Answers:

Member's Avatar

Mentor
Karma Points: 527
Date Posted: 7/22/2008 12:52:12 AM  Status: Live
Asker's Rating: None Provided    Moderator's Rating: Somewhat Helpful
Response:
hiiiiiii frnd,
plz visit http://java.sun.com/docs/books/tutorial/ (copy/paste in ur browser)





By reading or posting messages on these forums, you are agreeing to the Answer Board's Terms of Service and Conduct (TSC).


About Cramster | Terms of Use | Privacy Policy | Contact Us | Press Room | Site Map | Support | Anti-Cheating Policy

Cramster.com is not affiliated with any publisher. Book covers, title and author names appear for reference only.
Copyright © 2008 Cramster, Inc.