placeholder image to represent content

CompProg2 CP2 Assessment

Quiz by Maria Lolita Masangcap

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
30 questions
Show answers
  • Q1

    In the image, there are different companies that produce distinct classifications of cars. As shown, the black car represents a/an ________.

    Question Image

    Objects Toyota, Honda, Mitsubishi

    Class Toyota, Honda, Mitsubishi

    Class Car

    Object Car

    60s
  • Q2

    In the image, there are different companies that produce distinct classifications of cars. As shown, the different colors of cars represent the ________.

    Question Image

    Object Car

    Objects Toyota, Honda, Mitsubishi

    Class Toyota, Honda, Mitsubishi

    Class Car

    60s
  • Q3

    In the given image, what is the name of the class?

    Question Image

    Flowers

    growing()

    numPetals

    type

    60s
  • Q4

    In the given image, name, type, color, and numPetals are the ____________ of the declared class.

    Question Image

    class variables

    class name

    methods

    instance variables

    60s
  • Q5

    In the given image, growing() and produceSeed() are the ____________ of the declared class.

    Question Image

    methods

    class name

    instance variables

    class variables

    60s
  • Q6

    (1) __________ itself does nothing but the real functionality is achieved through their (2) ____________.

    (1) Attribute, (2) Methods

    (1) Class, (2) Objects

    (1) Method, (2) Attribute

    (1) Object, (2) Classes

    60s
  • Q7

    In the given image, what step of object creation is represented by the statement inside the rectangle?

    Question Image

    Initialization

    Instantiation

    Creation

    Declaration

    60s
  • Q8

    Every class in java is considered as an implementation of the concept of ____________________.

    Users re-arrange answers into correct order
    Jumble
    60s
  • Q9

    In the given program code in the image, identify the variables that are encapsulated in the class and cannot be accessed by other classes. 

    Question Image

    Remarks and age only

    salary and age only

    age and amt

    Remarks, age and salary

    60s
  • Q10

    Say that there are three classes: Computer, MacComputer, and IBMComputer. What are the likely relationships between these classes?

    IBMComputer is the parent class, MacComputer and Computer are child classes of the IBMComputer.

    none of the given options

    Computer is a parent class. MacComputer is a child class of Computer, then IBMComputer is a child class of MacComputer.

    Computer is the parent class, MacComputer and IBMComputer are child classes of the Computer.

    60s
  • Q11

    Which of the following is a correct syntax of defining a new class myIpad that inherits the parent class AppleDevice?

    Answer Image
    Answer Image
    Answer Image
    Answer Image
    60s
  • Q12

    What type of inheritance is shown in the program code?

    Question Image

    Hierarchical Inheritance

    Multilevel Inheritance

    Single Inheritance

    Multiple Inheritance

    60s
  • Q13

    What type of inheritance is shown in the program code?

    Question Image

    Hierarchical Inheritance

    Multiple Inheritance

    Multilevel Inheritance

    Single Inheritance

    60s
  • Q14

    What type of inheritance is shown in the image?

    Question Image

    Single Inheritance

    Multilevel Inheritance

    Multiple Inheritance

    Hierarchical Inheritance

    60s
  • Q15

    Which of the following program fragment can implement the type of inheritance shown in the given image?

    Question Image
    Answer Image
    Answer Image
    Answer Image
    Answer Image
    60s

Teachers give this quiz to your class