Vetores C# Quiz

Vetores C# Quiz

University

13 Qs

quiz-placeholder

Similar activities

Advanced C# Quiz 5: Arrays and Method

Advanced C# Quiz 5: Arrays and Method

University

10 Qs

Computer programming-Array

Computer programming-Array

University

10 Qs

แบบทดสอบ Array

แบบทดสอบ Array

University

14 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Arrays in C (II yr 02.07.2020)

Arrays in C (II yr 02.07.2020)

University

10 Qs

Linked List

Linked List

University

14 Qs

BCSC0006 - Quiz 2 - Big-Oh Notation

BCSC0006 - Quiz 2 - Big-Oh Notation

University

10 Qs

Vetores C# Quiz

Vetores C# Quiz

Assessment

Quiz

Computers

University

Medium

Created by

MÁRIO NASCIMENTO

Used 66+ 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?