Arreglos

Arreglos

University

10 Qs

quiz-placeholder

Similar activities

 QUIZ  MS Core Java Quiz-3 2023

QUIZ MS Core Java Quiz-3 2023

University

11 Qs

Computer Intro-Final Review 4

Computer Intro-Final Review 4

KG - University

10 Qs

Fundamentals of Algorithms - Unit 1 - Test 1

Fundamentals of Algorithms - Unit 1 - Test 1

University

15 Qs

Administracion de una Red Lan

Administracion de una Red Lan

University

12 Qs

HTML -znaczniki 1

HTML -znaczniki 1

7th Grade - University

15 Qs

python quiz

python quiz

6th Grade - Professional Development

10 Qs

Java Programming-1

Java Programming-1

University

10 Qs

Bài tập trắc nghiệm C++(tiếp)

Bài tập trắc nghiệm C++(tiếp)

3rd Grade - University

10 Qs

Arreglos

Arreglos

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Andrés Jiménez

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

1. ¿Cuál es la forma correcta de declarar un arreglo de 10 #decimales en C++?

int arreglo(10);

float arreglo[10];

float[10] arreglo;

array<int> arreglo[10];

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

2. ¿Qué imprime este código?

int numeros[3] = {10, 20, 30};

cout << numeros[1];

10

20

30

error de compilación

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

3. ¿Qué bucle se usa para recorrer todos los elementos de un arreglo?

while

do-while

for

switch

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

4. ¿Qué valor tiene numeros[3] en el siguiente arreglo?

int numeros[5] = {2, 4, 6, 8, 10};

6

8

10

error posición inválida

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

5. ¿Cuál es la instrucción que permite insertar un elemento al final de un arreglo fijo, donde n sería igual al tamaño del arreglo?

arreglo[n+1] = nuevoElemento;

push_back(nuevoElemento);

arreglo.push(nuevoElemento);

arreglo[n] = nuevoElemento;

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

6. ¿Cuál de las siguientes afirmaciones sobre arreglos es FALSA?

Los arreglos tienen un tamaño fijo

Los elementos se almacenan en posiciones consecutivas

Se pueden cambiar de tamaño en tiempo de ejecución

Los índices comienzan en 0

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

7. ¿Qué hace el siguiente código?

for(int i = 0; i < 5; i++) {

cout << numeros[i];

}

Inserta 5 elementos en el arreglo

Imprime los primeros 5 números del teclado

Declara el arreglo numeros

Recorre e imprime los 5 elementos del arreglo numeros

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?

Discover more resources for Computers