Search Header Logo

Vectores en C#

Authored by Lucas Barbero

Instructional Technology

University

Used 4+ times

Vectores en C#
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

¿Cuál es la forma correcta de declarar un vector en C#?

int[] vector = new int[5]

int vector[] = new int[5]

array vector;

vector<int>

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

¿Cómo se accede al primer elemento de un vector en C#?

vector[1]

vector[0]

vector.first()

vector.first

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

¿Cuál es el método para obtener la longitud de un vector?

vector.length()

vector.size()

vector.Length

vector.count

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

¿Cómo se asigna un valor a un elemento específico en un vector?

vector.setValue(0, valor)

vector[0] = valor

vector.set(0, valor)

vector.add(valor)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

¿Cuál es la forma correcta de recorrer un vector utilizando un bucle FOR?

for(int i = 0; i < vec.length(); i++)

for(int i = 0; i < vec.Length; i++)

for(int i = 0; i < vec.size(); i++)

for(int i = 0; i < vec.count(); i++)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?