
Examen Java
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Hard
HECTOR ITURBE
Used 15+ times
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
1) Dada la siguiente clase:
1. class ArrayCopy3{
2. public static void main( String [] args) {
3. int [][] z1 = new int [][] {{1,2,3}, {4,5,6}};
4. for (int j= 0;j<3; j++) {
5. System.out.println(" ");
6. for(int k= 0;k<2; k++) {
7. System.out.print(" z1 "+ j +" "+ k +" = " + z1[j][k]);
8. }
9. }
10. }
11. }
Cual seria el resultado al ejecutarla?
La compilación falla
Una excepción es lanzada en tiempo de ejecución
z1 0 0 = 1 z1 0 1 = 2 z1 0 2 = 3
z1 1 0 = 4 z1 1 1 = 5 z1 1 2 = 6
z1 0 0 = 1 z1 0 1 = 3 z1 0 2 = 5
z1 1 0 = 2 z1 1 1 = 4 z1 1 2 = 6
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Menciona los tres modificadores de acceso
Public, private, protected
Clase, static, public
Static, final, private
Class, final, static
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué es una interface?
Una súper clase
Es un conjunto de declaraciones de funciones
Una herencia múltiple
Un fichero public
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué se debe utilizar para simular la herencia múltiple de una clase?
Extends
Public
Implements
Interface
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Para que se utiliza la clase abstract?
Para poder ser accesibles en otras clases
Para acceder desde otros paquetes
Para la clase base para la herencia
Para ser una súper clase
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
¿Qué hace el siguiente código fuente?
int x=0; boolean flag = false; while ((x<10) || !flag) { System.out.println(x); x++; }
Muestra los números del 0 al 9
Muestra los números del 1 al 10
Muestra un 10
Se queda en un bucle infinito
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
int x= 0;
do {
System.out.println(x);
x++;
} while (x<10);
int y= 0;
while (y<10){
System.out.println(y);
y++;
}
x=9 y=9
x=10 y=10
x=9 y=10
Error de compilación
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
ANIME!!
Quiz
•
5th Grade - Professio...
14 questions
KPOP
Quiz
•
KG - Professional Dev...
12 questions
Pre- Training Evaluation
Quiz
•
Professional Development
10 questions
UPA Khadijah Al-Fikri Target Ramadhan
Quiz
•
Professional Development
15 questions
Tema 10
Quiz
•
Professional Development
18 questions
Cuánto sabes de tu banda 2024
Quiz
•
Professional Development
10 questions
Sifat Pepejal (5 Jaya)
Quiz
•
KG - Professional Dev...
10 questions
Quiz Monthly HSSE Meeting Central Shop
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
