¿Cuál es la sentencia para disparar una nueva excepcion de tipo ApplicationException sin parámetros? new exception ApplicationException(); throw new exception ApplicationException(); //throw new ApplicationException(); new ApplicationException().Throw();
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> ¿Cómo se declara un método privado, estático y que no devuelve nada llamado Ejecutar? Private Ejecutar() Static Nothing {} //private static void Ejecutar() {} static private void Ejecutar() {} Ninguna de las opciones es correcta.
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> ¿Cómo se declara e instancia un objeto llamado cuentas, que sea de una colección de objetos de tipo Cuenta, utilizando Generics? //List(Cuenta) cuentas = new List(Cuenta); List(Cuenta) cuentas = new List(Cuenta)(); List<Cuenta> cuentas = new List<Cuenta>(); List<Cuenta> cuentas = new List<Cuenta>;
Las respuestas están a mi parecer, si alguien me dice que es lo que estoy haciendo mal.
UN saludo y gracias de antemano.
dejarmelas aqui ó pasarmelas al correo. hackermen@hotmail.es
las primeras dos estan bien, la ultima debe ser List<Cuenta> cuentas = new List<Cuenta>(); Entonces de pronto tienes otras respuestas incorrectas, y no son estas
estoy revisando todo y tengo dudas en estas también.
a v er si me puedes ayudar, las que he marcado es las q creo q son.
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> ¿Cómo se declara un método abstracto, público, que retorna un entero, no recibe parámetros y que se denomina CalcularTotal? abstract public int CalcularTotal() //public abstract CalcularTotal() : int public abstract int CalcularTotal() abstract int public CalcularTotal()
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> ¿Cuál de las siguientes sentencias es la correcta para obtener un System.Int32 correspondiente a la segunda columna de un DbDatReader llamado reader? //reader.GetInt32(2); reader.GetInt32(1); reader.GetInt32()[1]; reader.GetInt32()[2];
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> La clase Prueba posee un método estático denominado Iniciar. ¿Cuál de las siguientes sentencias no da error de compilación? Prueba prueba = new Prueba().Iniciar(); Prueba prueba = new Iniciar(); Prueba.Iniciar(); //Ninguna de las opciones es correcta.
hola q tal necesito tu ayuda para poder aporobar el examen de la estrella dos exactamente el examen de c# o el de vb por favor si tiene la solucion alguna de las respuesta le pediria el favor q me las enviara a este correo erwinmilan22@hotmail.com gracias
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.