
Examen de Java

Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
Sharik Chango
Used 2+ times
FREE Resource
57 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué tipo de variable se utiliza para almacenar números enteros?
double
boolean
int
String
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la asignación correcta para una variable String llamada ciudad?
String ciudad = Quito;
String ciudad = 'Quito';
String ciudad = "Quito";
ciudad = String "Quito";
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la forma correcta de asignar un valor decimal a una variable double?
double peso = "65.5";
double peso = 65.5;
peso = double 65.5;
double peso = '65.5';
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la forma correcta de asignar un valor entero a una variable int llamada cantidad?
int cantidad = "20";
int cantidad = 20;
cantidad = int 20;
int cantidad = 20.0;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué método de Scanner se utiliza para leer cadenas de texto completas?
next()
nextLine()
getLine()
readLine()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es el operador correcto para comparar dos valores por igualdad en Java?
=
!=
equal
==
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué imprime el siguiente código? int a = 5, b = 10; if (a < b) { System.out.println("Menor"); } else { System.out.println("Mayor"); }
Menor
Mayor
Error
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