logo

Crowdly

Browser

Add to Chrome

11ºN-PSI

Looking for 11ºN-PSI test answers and solutions? Browse our comprehensive collection of verified answers for 11ºN-PSI at moodle.escolatic.com.pt.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Nos

Diagrama

de Classe,

representados segundo a UML, uma classe é representada por um retângulo com quatro divisões.

67%
33%
View this question

Considere:  

     static void Main(string[ ] args)

        {

            int[ ] x;    

            x = new int[30];   

            carrega(x);

            escreve(x);

        }

Estebeleça as seguintes correspondências corretamente:

View this question

Considere o seguinte código:

class Animal

{

     public string Nome { get; set; }

     public Animal(string nome)

     {

         Nome = nome;

      }

}

Animal animal1 = new Animal("Cão");

Animal animal2 = new Animal("Gato");

No código acima, animal1 e animal2 são objetos dependentes, ou seja, alterar a propriedade Nome de um deles afeta automaticamente o valor da propriedade Nome do outro.

17%
83%
View this question

Considere a seguinte sequência de instruções:

        String[] nomes = new String[] { "Ana", "Carlos", "Francisca", "Isabel", "João" };

        foreach (string s in nomes)

                Console.Writeln(s);

A mensagem de saída (output)

produz o seguinte resultado:

0%
0%
0%
0%
View this question

A

instrução c = n++; e a instrução c = ++n; são equivalentes.  

0%
0%
View this question

A

instrução 

          c = n++; 

e a instrução

          c = ++n; 

são equivalentes quanto ao resultado produzido sobre a variável c.  

17%
83%
View this question

Os

métodos get e set estão implícitos nas operações de atribuição de valores para

as propriedades de uma dada classe.

100%
0%
View this question

Considere:

int a = 5;

int b = ++a; // pré-incremento

int c = a++; // pós-incremento

No código acima, após a execução das instruções:

b será igual a 6.

c será igual a 7

33%
67%
View this question

Assinale a definição correta de encapsulamento em P.O.O.:

0%
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.escolatic.com.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome