Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Examen-parcial-Programacion-Semana-4 90-100 PDF
Examen-parcial-Programacion-Semana-4 90-100 PDF
10 / 10 ptos.
Pregunta 1
Ejercicio de Compilación:
1. Ingrese a eclipse.
2. Cree un proyecto.
3. Cree una clase.
4. Realize el encabezado public static void main (String[] args){
5. Declare variables ( DE SER NECESARIO)
int x=700;
else {
else {
else {
System.out.println(cadena);
https://poli.instructure.com/courses/1769/quizzes/8612/history?version=1 1/9
20/10/2017 Historial de evaluaciones para Velasquez Penas Carol Mariana: Examen parcial - Semana 4
¡Correcto!
El programa genera una cadena compuesta de X y O. Donde X representa los
dígitos impares de un número de 3 cifras y O representa los dígitos pares.
10 / 10 ptos.
Pregunta 2
¡Correcto!
10 / 10 ptos.
Pregunta 3
https://poli.instructure.com/courses/1769/quizzes/8612/history?version=1 2/9
20/10/2017 Historial de evaluaciones para Velasquez Penas Carol Mariana: Examen parcial - Semana 4
Ejercicio de Compilación:
1. Ingrese a eclipse.
2. Cree un proyecto.
3. Cree una clase.
4. Realize el encabezado public static void main (String[] args){
5. Declare variables ( DE SER NECESARIO)
char i = 'd';
char j = 'e';
int n = 2;
String s = "d+e";
String t = "de";
String u = i + "" + n + j + "!";
System.out.println (i);
System.out.println (j);
System.out.println (s);
System.out.println (t);
System.out.println (u);
d
e
de
de
d2!
¡Correcto!
d
e
d+e
de
d2e!
d
e
de
de
de!
e
e
d+e
de!
de
https://poli.instructure.com/courses/1769/quizzes/8612/history?version=1 3/9
20/10/2017 Historial de evaluaciones para Velasquez Penas Carol Mariana: Examen parcial - Semana 4
10 / 10 ptos.
Pregunta 4
¡Correcto! True
False
10 / 10 ptos.
Pregunta 5
¡Correcto! Módulo
Resta
Multiplicación
División
10 / 10 ptos.
Pregunta 6
boolean a = false;
boolean b = true;
boolean c = !a;
boolean d = a || b;
boolean e = d || c && !a;
boolean f = true && !e;
System.out.println (a);
System.out.println (b);
System.out.println (c);
System.out.println (d);
System.out.println (e);
System.out.println (f);
https://poli.instructure.com/courses/1769/quizzes/8612/history?version=1 4/9
20/10/2017 Historial de evaluaciones para Velasquez Penas Carol Mariana: Examen parcial - Semana 4
false
true
true
true
true
true
¡Correcto!
false
true
true
true
true
false
false
true
false
true
true
false
false
true
true
true
false
false
10 / 10 ptos.
Pregunta 7
Ejercicio de Compilación:
1. Ingrese a eclipse.
2. Cree un proyecto.
3. Cree una clase.
4. Realize el encabezado public static void main (String[] args){
5. Declare variables ( DE SER NECESARIO)
https://poli.instructure.com/courses/1769/quizzes/8612/history?version=1 5/9
20/10/2017 Historial de evaluaciones para Velasquez Penas Carol Mariana: Examen parcial - Semana 4
int r3=0;
int x=3;
float a=28.99f;
int b=6;
x=(int)a;
b--;
x=x % b * b % x - 6;
System.out.println(x);
9 (9..9)
-0.92135647
34
¡Correcto! 9
10 / 10 ptos.
Pregunta 8
Ejercicio de Compilación:
1. Ingrese a eclipse.
2. Cree un proyecto.
3. Cree una clase.
4. Realize el encabezado public static void main (String[] args){
5. Declare variables ( DE SER NECESARIO)
String a = "hola";
String b = 'h' + "o" + 'l' + "a" + "";
boolean c = a.equals (b);
boolean e = !c;
char f = 'f';
char g = 'f';
boolean h = g != f;
System.out.println (a);
System.out.println (b);
System.out.println (c);
System.out.println (e);
System.out.println (f);
System.out.println (g);
System.out.println (h );
https://poli.instructure.com/courses/1769/quizzes/8612/history?version=1 6/9
20/10/2017 Historial de evaluaciones para Velasquez Penas Carol Mariana: Examen parcial - Semana 4
¡Correcto!
hola
hola
true
false
f
f
false
hola_
hola
false
false
g
g
false
hola
hola
false
false
f
g
false
hola
hola_
false
true
g
f
false
10 / 10 ptos.
Pregunta 9
https://poli.instructure.com/courses/1769/quizzes/8612/history?version=1 7/9
20/10/2017 Historial de evaluaciones para Velasquez Penas Carol Mariana: Examen parcial - Semana 4
x=+10; //línea 6
Línea 1
¡Correcto! Línea 5
Línea 3
Línea 2
Línea 6
Línea 4
0 / 10 ptos.
Pregunta 10
Ejercicio de Compilación:
1. Ingrese a eclipse.
2. Cree un proyecto.
3. Cree una clase.
4. Realize el encabezado public static void main (String[] args){
5. Declare variables ( DE SER NECESARIO)
System.out.println (i);
https://poli.instructure.com/courses/1769/quizzes/8612/history?version=1 8/9
20/10/2017 Historial de evaluaciones para Velasquez Penas Carol Mariana: Examen parcial - Semana 4
Respuesta correcta 10
9
8
7
6
5
4
3
2
1
0
Respondido
20
19
18
17
16
15
14
13
12
11
10
1.0
9.0
1.0
2
3
-1
Error de compilación
https://poli.instructure.com/courses/1769/quizzes/8612/history?version=1 9/9