
Parcial 1 Programación en Java
Authored by Prof. Porras
Computers
12th Grade
Used 80+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la sintaxis correcta para generar "Hello World" en Java?
echo("Hello World");
Console.WriteLine("Hello World");
print("Helo World");
System.out.println("Hello World");
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se insertan COMENTARIOS en el código Java?
# This is a comment
//This is a comment
/* This is a comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué tipo de datos se usa para crear una variable que debería almacenar texto?
Txt
myString
string
String
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se crea una variable con el valor numérico 5?
x = 5;
float x = 5;
int x = 5;
num x = 5;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo se crea una variable con el número flotante 2.8?
byte x = 2.8f
int x = 2.8f;
x = 2.8f
float x = 2.8f
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué método se puede utilizar para encontrar la longitud de una cadena?
getLength()
length()
getSize()
len()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué operador se usa para sumar dos valores?
&
*
+
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?