¿Qué imprime el siguiente código?

I2025_QUIZZ_FPOO

Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Hard
Deny Hernández
Used 1+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1
2
3
4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la forma correcta de declarar un arreglo de enteros en Java de tamaño 5?
int arr[5];
int arr[] = new int[5];
int[] arr = new int();
int arr[];
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué salida tendrá el siguiente código?
3
10
20
Error de compilación
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es el valor de arr[3] después de ejecutar el siguiente código?
1
2
3
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se pasa un arreglo a una función en Java?
Usando el operador &
Usando el operador []
Simplemente pasando el nombre del arreglo
Usando el operador *
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué imprimirá el siguiente código?
1 2 3
3 2 1
1 2
2 3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo recorrerías un arreglo en Java utilizando un ciclo for para imprimir cada valor?
for (int i = 0; i < arr.length; i++) { System.out.println(arr[i]); }
for (int i = 1; i < arr.length; i++) { System.out.println(arr[i]); }
for (int i = 1; i <= arr.length; i++) { System.out.println(arr[i]); }
for (int i = 0; i <= arr.length; i++) { System.out.println(arr[i]); }
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
Diagnostico Grado Sexto

Quiz
•
6th Grade - University
10 questions
Evaluación de Software y Sistemas Operativos

Quiz
•
12th Grade
10 questions
¿Cuánto sabes de programación?

Quiz
•
10th Grade
10 questions
Pensamiento Algorítmico

Quiz
•
1st Grade - University
17 questions
Algoritmos

Quiz
•
1st Grade - University
15 questions
Test wiedzy: Tablice jednowymiarowe w C++

Quiz
•
10th Grade - University
10 questions
QUIZ 2 PLC

Quiz
•
10th Grade - University
10 questions
Teste Diagnóstico 11º TI

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University