Search Header Logo

EVALUACIÓN DE VECTORES EN C++ 1

Authored by Cesar Hidalgo

Other

2nd Grade

Used 43+ times

EVALUACIÓN DE VECTORES EN C++ 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Cuál es la declaración correcta de un vector en C:

float notas(20);

float notas[20];

notas[20] int;

int notas[0 .. 20];

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Cuál es la instrucción que permite la impresión de un vector en C:

cin << "VECTOR["<<i<<"]="<< notas[i];

cout << "VECTOR["<<i<<"]=";

cout << "VECTOR["<<i<<"]="<< notas[i];

cout >> "VECTOR[">>i<<"]=">> notas[i];

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Cuál es la instrucción que permite la lectura de un vector en C:

cin << notas[i];

cout >>notas[i];

cin >>notas[i];

cin>>notas[i]

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Cuál es la instrucción que permite la asignar 0 a un vector en C:

for(i=0;i<=20;i++); notas[i]=0;

for(i=0;i>=20;i++) notas[i]=0;

for(i=20;i>=0;i--) notas[i]=0;

for(i=0;i<=20;i++) notas[j]=0;

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Qué es vector en C:

Un dato simple - dinámico

Un dato estructurado - dinámico

Un dato estructurado - estático

Un dato simple - estático

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Un vector es homogéneo en C por que :

Los elementos tienen el mismo tipo

Los datos son del mismo valor

Los subindices son del mismo tipo

Los datos tienen un mismo nombre

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Un vector es ordenado en C por que :

for(i=pos_borrar;i>=n-1;i++) A[i]=A[i+1];

for(i=pos_borrar;i<=n-1;i++) A[i]=A[i+1];

for(i=pos_borrar;i<=n-1;i--) A[i]=A[i-1];

for(i=pos_borrar;i<=n+1;i++) A[i]=A[i+1];

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?