
Cuestionario de Programación en Java

Quiz
•
Information Technology (IT)
•
2nd Grade
•
Medium
Claudia Roy
Used 2+ times
FREE Resource
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 4 pts
¿Qué paquete se debe importar para usar Scanner en Java?
java.lang.*
java.io.*
java.util.*
java.text.*
2.
MULTIPLE CHOICE QUESTION
20 sec • 4 pts
¿Cuál de las siguientes opciones es correcta para crear un objeto Scanner que lea desde el teclado?
Scanner sc = new Scanner(System.input);
Scanner sc = new Scanner(System.console());
Scanner sc = new Scanner(System.in);
Scanner sc = Scanner();
3.
MULTIPLE CHOICE QUESTION
20 sec • 4 pts
¿Cuál es el método de Scanner para leer un texto completo ingresado por el usuario?
nextString()
nextChar()
nextLine()
getText()
4.
MULTIPLE CHOICE QUESTION
20 sec • 4 pts
¿Qué imprimirá el siguiente código si el usuario ingresa 18?
"Eres mayor de edad"
"Eres menor de edad"
Error en compilación
No imprimirá nada
5.
MULTIPLE CHOICE QUESTION
20 sec • 4 pts
¿Cuál es el operador lógico para representar "Y" en Java?
&&
||
!
AND
6.
MULTIPLE CHOICE QUESTION
20 sec • 4 pts
Dado el siguiente código, ¿Qué imprimirá si el usuario ingresa 5?
"Uno"
"Dos"
"Otro número"
No imprimirá nada
7.
MULTIPLE CHOICE QUESTION
20 sec • 4 pts
¿Qué imprimirá el siguiente código si x = 4 y y = 8?
"Condición cumplida"
"Condición no cumplida"
Error en compilación
No imprimirá nada
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade