
Preguntas sobre Java y Estructuras de Datos
Authored by Avelino Gomez
Instructional Technology
Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué método de File se usa para obtener la ruta completa de un archivo en Java?
getPath()
getAbsolutePath()
getCanonicalPath()
getFullPath()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué mostrará el siguiente código si el archivo "datos.txt" no existe? java Copiar Editar File archivo = new File("datos.txt"); if (!archivo.exists()) { System.out.println("El archivo no está disponible"); } else { System.out.println("¿Existe?"); }
Lanza una excepción
"El archivo no está disponible"
"¿Existe?"
No se ejecuta correctamente
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál de estas excepciones no es obligatoria capturar al manipular archivos en Java?
IOException
FileNotFoundException
SecurityException
EOFException
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál de estas afirmaciones sobre ArrayList y LinkedList es incorrecta?
ArrayList permite acceso rápido a elementos por índice
LinkedList es eficiente para inserciones en el medio de la lista
LinkedList siempre es más rápida que ArrayList
ArrayList usa un array redimensionable internamente
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué imprimirá el siguiente código? java Copiar Editar List nombres = Arrays.asList("Lucas", "María", "David"); nombres.forEach(n -> System.out.println("Bienvenido " + n));
Bienvenido Lucas, Bienvenido María, Bienvenido David
[Bienvenido Lucas, Bienvenido María, Bienvenido David]
Error en tiempo de compilación
No imprime nada
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo obtener el primer elemento de un LinkedList sin eliminarlo?
first()
getFirst()
head()
retrieveFirst()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué sucede si se inserta un valor con una clave ya existente en un HashMap?
Se lanza una excepción
Se reemplaza el valor anterior
La clave se ignora y el nuevo valor no se guarda
Se agrega una nueva clave con el mismo nombre
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
20 questions
AUT 102 Chapter 21 Week 8/9 Quiz
Quiz
•
Professional Development
20 questions
ArqAdv_Class7_DevOps
Quiz
•
Professional Development
20 questions
Cuestionario Curso Diseño de Revistas con InDesign
Quiz
•
Professional Development
20 questions
MOS PowerPoint General Test
Quiz
•
Professional Development
19 questions
PowerPoint
Quiz
•
10th Grade - Professi...
20 questions
Adobe Fireworks CS6 - 4° Secundaria
Quiz
•
10th Grade - Professi...
20 questions
RESUMEN 1º SEMESTRE TECNOLOGÍA
Quiz
•
1st Grade - Professio...
20 questions
Ddy Quiz 13 Sept
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 Instructional Technology
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...