Vetores C# Quiz

Vetores C# Quiz

University

13 Qs

quiz-placeholder

Similar activities

Algoritmo y estructura de datos S3

Algoritmo y estructura de datos S3

University

10 Qs

Protocolos de Roteamento Resumo Geral

Protocolos de Roteamento Resumo Geral

University

10 Qs

Vetores

Vetores

University

10 Qs

Associação com Matrizes - Parte 02

Associação com Matrizes - Parte 02

University

10 Qs

Java Programming

Java Programming

University

15 Qs

Apo 1 - Level 3 and 4

Apo 1 - Level 3 and 4

University

11 Qs

Array in C

Array in C

University

10 Qs

C++ Array

C++ Array

University

10 Qs

Vetores C# Quiz

Vetores C# Quiz

Assessment

Quiz

Computers

University

Medium

Created by

MÁRIO NASCIMENTO

Used 65+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é a sintaxe correta para declarar um vetor de inteiros em C#?

`int[] vetor = new int[5];`

`int vetor = new int[5];`

`int vetor[] = new int[5];`

`int vetor = int[5];`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você inicializa um vetor de inteiros com valores específicos em C#?

`int[] vetor = {1, 2, 3, 4, 5};`

`int vetor = {1, 2, 3, 4, 5};`

`int vetor[] = new int[] {1, 2, 3, 4, 5};`

`int[] vetor = new int[5] {1, 2, 3, 4, 5};`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você acessa o terceiro elemento de um vetor chamado `numeros`?

`numeros[2]`

`numeros[3]`

`numeros(2)`

`numeros(3)`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é o valor padrão dos elementos de um vetor de inteiros em C#?

`1`

`0`

`null`

`-1`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você inicializa um vetor de inteiros com os valores 1, 2 e 3?

`int[] vetor = {1, 2, 3};`

`int[] vetor = new int[3]{1, 2, 3};`

`int[] vetor = new int[]{1, 2, 3};`

Todas as opções acima

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual é o método usado para obter o comprimento de um vetor em C#?

`vetor.Length`

`vetor.Size`

`vetor.Count`

`vetor.GetLength()`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Como você copia um vetor chamado `origem` para um vetor chamado `destino`?

`Array.Copy(origem, destino, origem.Length);`

`Array.Clone(origem, destino, origem.Length);`

`Array.CopyTo(origem, destino, origem.Length);`

`Array.Transfer(origem, destino, origem.Length);`

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?