logo

Crowdly

Browser

Додати до Chrome

ASIX M03 - Programació bàsica (2024/2025)

Шукаєте відповіді та рішення тестів для ASIX M03 - Programació bàsica (2024/2025)? Перегляньте нашу велику колекцію перевірених відповідей для ASIX M03 - Programació bàsica (2024/2025) в moodle.elpuig.xeill.net.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

¿Qué imprime este código?

 

class A {

int valor = 100;

}

 

public class Test {

public static void main(String[] args) {

A a1 = new A();

A a2 = a1;

a2.valor = 200;

System.out.println(a1.valor);

}

}

0%
0%
0%
0%
Переглянути це питання

¿Cuál es la salida del siguiente código?

class Punto {

int x;

 

Punto(int x) {

this.x = x;

}

 

void mover(int dx) {

x += dx;

}

}

 

public class Test {

public static void main(String[] args) {

Punto p = new Punto(3);

p.mover(2);

System.out.println(p.x);

}

}

 

❌
❌
❌
✅
Переглянути це питання

¿Qué significa que un atributo o un método tengan el nivel de acceso protegido (protected)?

❌
✅
❌
❌
Переглянути це питання

¿Cuál es la salida?

 

class Test {

public static void main(String[] args) {

    System.out.println("Hola " + 5 + 3);

}

}

0%
0%
0%
0%
Переглянути це питання

¿Qué imprime?

 

class Coche {

static int contador = 0;

Coche() {

contador++;

}

}

public class Test {

public static void main(String[] args) {

new Coche();

new Coche();

System.out.println(Coche.contador);

}

}

❌
❌
❌
✅
Переглянути це питання

¿Cuál es el resultado de este código?

class A {

A() {

System.out.print("A");

}

}

class B extends A {

B() {

System.out.print("B");

}

}

class C extends B {

C() {

System.out.print("C");

}

}

public class Test {

public static void main(String[] args) {

new C();

}

}

0%
0%
0%
0%
Переглянути це питання

¿Por qué falla la siguiente clase?

 

public final class Persona {

private final String nombre;

private final int edad;

 

public Persona(String nombre, int edad) {

this.nombre = nombre;

this.edad = edad;

}

public String getNombre() {

return nombre;

}

public void setEdad(int nuevaEdad) {

this.edad = nuevaEdad;

}

}

0%
0%
0%
0%
Переглянути це питання

class Punto {

int x, y;

 

Punto(int x, int y) {

this.x = x;

this.y = y;

}

}

 

public class Test {

public static void main(String[] args) {

Punto[] puntos = new Punto[2];

puntos[0] = new Punto(1, 2);

System.out.println(puntos[0].x);

}

}

❌
✅
❌
❌
Переглянути це питання

¿Qué es el polimorfismo?

✅
❌
❌
❌
Переглянути це питання

¿Qué palabra clave evita que un método sea sobreescrito?

❌
✅
❌
❌
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.elpuig.xeill.net?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome