Search Header Logo

Semana 02

Authored by Mauricio Quintero

Computers

University

Used 5+ times

Semana 02
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

¿Cómo instancio un objeto?

Console.WriteLine();

Auto = new Auto();

Auto a = Auto;

Auto a = new Auto();

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Mesa m1 = new Mesa();

m1.Color = "rojo";

Mesa m2 = m1;

m2.Color = "azul";

¿De qué color es la mesa 1?

violeta

rojo

azul

no definido

3.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

¿Cómo defino el atributo NOMBRE de la clase Persona?

_nombre;

string Nombre;

private string _nombre;

public string Nombre;

4.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Si al atributo _nombre, quiero hacer una propiedad de lectura:

string Nombre {return _nombre;}

public string Nombre {

get { return _nombre; }

}

public string Nombre { get; }

string Nombre { public get; }

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

¿Cuál sería el método que devuelve la edad de una clase Persona que tiene como atributo la fecha de nacimiento?

Persona.Edad();

unaPersona.edad(fechaNac);

Persona.FechaNac.Edad();

unaPersona.Edad();

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?