
Arreglos

Quiz
•
Computers
•
University
•
Medium
Andrés Jiménez
Used 4+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Quiz de Repetição em Java

Quiz
•
University
15 questions
2 en 1

Quiz
•
University
10 questions
Array in C

Quiz
•
University
13 questions
C programming-1

Quiz
•
University
13 questions
Vetores C# Quiz

Quiz
•
University
15 questions
Java Method

Quiz
•
University
12 questions
Hoy si

Quiz
•
University
13 questions
Ciclos Python

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University