Lewis Hellier
Quiz por , criado more than 1 year ago

A fun computing quiz about OOP

6
0
0
Lewis Hellier
Criado por Lewis Hellier mais de 6 anos atrás
Fechar

Object-Orientated Programming

Questão 1 de 8

1

A object is an of a class. Each class can have sub-classes which can the properties and methods of the main class. A is a action an object can perform, and a is a descriptor of the object, or a variable relating to it.

Arraste e solte para completar o texto.

    instance
    association
    inherit
    copy
    method
    property

Explicação

Questão 2 de 8

1

Interfaces can only be implemented by 1 class

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 3 de 8

1

Check all which might be a property of a dog:

Selecione uma ou mais das seguintes:

  • Breed

  • Colour

  • barkAtPostman

  • playDead

  • barkVolume

Explicação

Questão 4 de 8

1

An association relationship can be:

Selecione uma ou mais das seguintes:

  • 1-to-1

  • 1-to-Many

  • Many-to-Many

  • None of the above

Explicação

Questão 5 de 8

1

In an aggregation relationship, if the parent object is destroyed, the child object is also destroyed.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 6 de 8

1

Selecione das listas do Menu para completar o texto.

In composition relationships, if the ( parent, child ) object is destroyed, so too will the ( child, parent ) object. This is why it is often referred to as a "( death, destructive, murder, final )" relationship.

Explicação

Questão 7 de 8

1

With polymorphism, each subclass may have its own way of implementing a function from the parent class.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 8 de 8

1

Which of the following is not a real "method"?

Selecione uma das seguintes:

  • Static

  • Abstract

  • Virtual

  • Real

Explicação