GoConqr has a new look! Let us know what you think.

Quiz

Java Level Knowledge Assessment

daniel maya 13 questions

Take the quiz

Questions in this quiz (13)

  1. 1What is Encapsulation?
    1. AEncapsulation is a technique to define different methods of same type.
    2. BEncapsulation is the ability of an object to take on many forms.
    3. CEncapsulation is the technique of making the fields in a class private and providing access to the fields via public methods.
    4. DNone of the above.
  2. 2What is polymorphism in Java?
    1. AIt is when a single variable is used with several different types of related objects at different places in a program.
    2. BIt is when a program uses several different types of objects, each with its own variable.
    3. CIt is when a single parent class has many child classes.
    4. DIt is when a class has several methods with the same name but different parameter types.
  3. 3Select Access Modifiers
    1. APrivate
    2. BStatic
    3. CProtected
    4. DAbstract
    5. EPublic
    6. FFinal
  4. 4The following is correct
    for(int i, i<10, i++ ){

    }
    1. ATrue
    2. BFalse
  5. 5Method Overloading is a feature that allows a class to have more than one method having the same name, if their argument lists are different.
    1. ATrue
    2. BFalse
  6. 61. Which of the following, if any, is an invalid array declaration?
    1. AString[] names = new String[5];
    2. BString names[] = new String[5];
    3. CString[] names = {"one", "two"};
    4. Dall are valid
  7. 7Overriding is a feature that enables a child class to provide different implementation for a method that is already defined and/or implemented in its parent class or one of its parent classes.
    1. ATrue
    2. BFalse
  8. 8Object-Oriented Programming refers to a programming methodology based on objects, instead of just functions and procedures. These objects are organized into classes, which allow individual objects to be group together.
    1. ATrue
    2. BFalse
  9. 9 Which of the following is a correct syntax for implementing inheritance
    1. Aclass Jolt isa SoftDrink { //additional definitions go here }
    2. Bclass Jolt implements SoftDrink { //additional definitions go here }
    3. Cclass Jolt defines SoftDrink { //additional definitions go here }
    4. Dclass Jolt extends SoftDrink { //additional definitions go here }
  10. 10Select types of variable
    1. Aint
    2. Bfinal
    3. Cstatic
    4. Ddouble
    5. EString

Information

Description
Quiz on Java Level Knowledge Assessment, created by daniel maya on 18/09/2017.
Language
English
Views
1
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?