O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

4100 Quiz 2

Alexander Rojas 15 perguntas

Fazer o quiz

Perguntas do quiz (15)

  1. 1This type of polymorphism the same method is overridden with same signature in different classes.
    1. Astatic
    2. Bflexible
    3. CObject Oriented
    4. Ddynamic
  2. 2In this type of polymorphism methods are overridden that exist in the same class
    1. Arun-time
    2. Breliable
    3. Cstatic
    4. Ddynamic
  3. 3What is a strength of using Object Oriented Inheritance?
    1. AObjects with inheritance chains run faster than objects without them
    2. BRemoving redundant parameters in the base class constructor allows less code needed in the children
    3. CAdding behaviours in the children are isolated from the parent
    4. DAdding new behaviours in the base class makes these behaviours available to the children
  4. 4What is true about a class defined as follows:

    public abstract MyClass{}
    1. AIt can contain properties but it cannot have setter or getter methods dened within it
    2. BIt cannot contain method definitions
    3. CIt cannot contain properties just methods
    4. Dif cannot be instantiated by a main program
  5. 5What would be the rationale for a developer to create the following code: This design will ...Imagem da pergunta 5
    1. Aallow different implementations of getMeTheData() to work with the program
    2. Bpredefine the return dataType of getMeTheData() coding of the implementation can start earlier
    3. Cdefine just enough of the return data type so testers can prepare test cases sooner.
    4. Dhelp delay the definition of getMeTheData() until more information is know about its implenmentation
  6. 6Suppose you have the following class structure
    (see below). What is the proper way to create a polymorphic use of the structure?
    Imagem da pergunta 6
    1. AMyClass data2 = new DataRep1();
    2. BDataRep2 data2 = new DataRep1();
    3. CMyClass data2 = new MyClass();
    4. DDataRep2 data2 = new dataRep2();
  7. 7If you have the same code logic in 3 different places in your program you are likely violating
    1. ASOLID
    2. BDRY
    3. CYAGNI
    4. DKISS
  8. 8Which is of the following is not a rationale for using KISS?
    1. ACode is more likely to have bugs
    2. BThe design tradeoffs are hidden
    3. CIncreased debugging time
    4. DCode is more difficult to understand
  9. 9Which true about C# Vs Java?
    1. AC# recommends using List instead of ArrayList
    2. BArrayList is slower in C# than Java
    3. CC# does not support ArrayList
    4. DC# ArrayLists do not support a sort method
  10. 10Which is a rationale we discussed for using an interface?
    1. AOne class needs to utilize methods from another class
    2. BOne class needs to access a data structure only know in another class
    3. COne class needs to inherit methods from 2 different inheritance trees.
    4. DOne class is similar to another but needs to override certain methods

Informações

Descrição
Quiz sobre 4100 Quiz 2, criado por Alexander Rojas em 26-02-2020.
Idioma
English
Visualizações
3
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?