
Vetores C# Quiz

Quiz
•
Computers
•
University
•
Medium
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
Similar Resources on Wayground
15 questions
BASIC C PROGRAMMING QUIZ

Quiz
•
University
15 questions
Qûîz

Quiz
•
University
14 questions
Lets explore Java

Quiz
•
University
15 questions
DATA STRUCTURES QUIZ

Quiz
•
University
9 questions
Trắc nghiệm kiến thức Java Core - Phần II

Quiz
•
University
15 questions
Archivos y Colecciones

Quiz
•
University
15 questions
Java

Quiz
•
University
10 questions
PHP

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University