
Test SDIAZ - GrupoE

Quiz
•
Computers
•
University
•
Easy

Ottho Fon
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Seleccione el estilo de comentario correcto que se utiliza para trabajar con Javadoc.
/* @author Robert */
// @author Robert
/** @author Robert */
/** @author Robert ;
// @author Robert */
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cual es output del siguiente snippet de codigo?
int y = 5;
int x = (y > 4) ? (4.1 y) : (3 y);
System.out.println(x);
20
15
30
20.5
ninguna
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Cuál de las siguientes opciones es un identificador válido en Java según las reglas de nomenclatura?
my-variable
123identifier
_myIdentifier
break
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
¿Que imprimirá en el siguiente código?
public static void main(String[] laB) {
double b,c;
double a= ((a=2.0)+(a++))+((b=10.0)/(c=3.0));
System.out.print(a);
}
5
7.0
7.33333
8.33333
No compila
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
¿Cuál es el resultado de la siguiente expresión? public class EjemploDePregunta {
public static void main(String[] args) {
int a = 5;
int b = 7;
boolean result = (++b < 10) || (a > 3);
System.out.println(result);
}
}
verdadero
falso
La expresión genera un error de
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Que imprime el programa?:
1:public class Exercise{
2: private int x;
3: private boolean y;
4: private String z;
5: public Exercise() {
6: x = 5;
7: y = x > 10;
8: z = y ? "Hello" : "World";
9: }
10: public static void main(String[] args) {
11: Exercise ae = new Exercise();
12: System.out.println("x = " + ae.x);
13: System.out.println("y = " + ae.y);
14: System.out.println("z = " + ae.z);
15: System.out.println("Result = " + (ae.x * ae.z.length() / (ae.y ? ae.x : ae.z.length())));
16: }
17: }
x = 5, y = true, z = "Hello", Result = 2
x = 5, y = true, z = "Hello", Result = 10
x = 5, y = false, z = "World", Result = 1
x = 5, y = false, z = "World", Result = 5
Compilación fallida debido a error en la línea 8
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Supongamos que tenemos una clase llamada "Person" con los atributos "name" y "age". ¿Cuál es la forma correcta de declarar e inicializar un objeto de la clase "Person" llamado "person1" con el nombre "John" y la edad 25?
Person person1 = new Person();
person1.name = "John";
person1.age = 25;
Person person1 = Person("John", 25);
Person person1 = new Person("John", 25);
Person person1;
person1.name = "John";
person1.age = 25;
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
MS Core Java Quiz-2 2023

Quiz
•
University
10 questions
Java Programming

Quiz
•
University
10 questions
exception

Quiz
•
University
15 questions
002_Java Methods

Quiz
•
12th Grade - University
10 questions
Java Basic 1

Quiz
•
University
11 questions
Basics of JAVA

Quiz
•
University
12 questions
Java quiz-2024-Sec-B

Quiz
•
University
10 questions
Array in C

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University