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

Quiz

Final Quiz - 1409

Albert Kozak 67 questions

Take the quiz

Questions in this quiz (67)

  1. 1Which of these best describes a Java class?
    1. AThe place I go every Thursday night.
    2. BA blue print from which Objects are created.
    3. CA runtime representation of data and behaviour.
    4. DA type of data used in Object Oriented Programming.
  2. 2What is an Object in OO Programming?
    1. AAn instance of a class.
    2. BA blueprint of a reference type.
    3. CA kind of primitive data type type to hold undefined data.
    4. DA abstract tool used to model a class design.
  3. 3Choose the reference type from the list below.
    1. Achar
    2. Bboolean
    3. Cint
    4. DString
  4. 4Which of these is a valid boolean?
    1. Ano
    2. B"false"
    3. Cfalse
    4. Dyes
  5. 5Which of the following is the correct way to declare an instance variable which holds a "null" value?
    1. ADog name = "Darby";
    2. BString gender;
    3. Cint dogsAge;
    4. Dpublic class Dog{...}
  6. 6Select the best way to name a class that holds data for a person.
    1. APERSON
    2. BPerson
    3. Cperson
    4. Dobject
  7. 7Constructors are used to
    1. ANone of these.
    2. Bensure valid data types are declared for instance variables
    3. Cconstruct proper return types are declared for methods
    4. Densure valid default values are set for instance variables
  8. 8What is this signature inferring?

    public void bark()
    1. AThis method can be called internally only.
    2. BThis method is actually a constructor.
    3. CThis method can be called externally
    4. DThis method will return a value called void.
  9. 9Assuming age has a value of 10, what is the output of the following?

    if(age > 10 && age < 100)
    {
    System.out.println("foo");
    }
    else
    {
    System.out.println("bar");
    }
    1. Ano output
    2. Bfoo
    3. Cfoo

      bar
    4. Dbar
  10. 10Assuming age has a value of 10, what is the output of the following?

    if(age > 10 || age < 0)
    {
    System.out.println("foo");
    }
    else
    {
    System.out.println("bar");
    }
    1. Abar
    2. Bno output
    3. Cfoo
    4. Dfoo
      bar

Information

Description
Computer Science Quiz on Final Quiz - 1409, created by Albert Kozak on 03/04/2019.
Language
English
Views
11
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?