1.
1. ¿Cuál de los siguientes lenguajes puede ser usado para escribir un script del lado del servidor en ASP.NET?
Correct Answer
D. A y B
Explanation
La respuesta correcta es A y B. Tanto C-sharp como VB son lenguajes que pueden ser utilizados para escribir un script del lado del servidor en ASP.NET. ASP.NET es una tecnología de Microsoft que permite la creación de aplicaciones web dinámicas y escalables, y admite varios lenguajes de programación, incluyendo C-sharp y VB. Estos lenguajes se utilizan para escribir el código del lado del servidor que se ejecuta en el servidor web y genera la página web que se envía al cliente. C++ no es un lenguaje comúnmente utilizado para escribir scripts del lado del servidor en ASP.NET.
2.
2. ¿Cuando una página .aspx es solicitada por el servidor web, el resultado será renderizado al browser en el siguiente formato?
Correct Answer
A. HTML
Explanation
When a .aspx page is requested by the web server, the result will be rendered to the browser in HTML format. HTML is the standard markup language used for creating web pages, and it is supported by all web browsers. XML, WML, and JSP are not typically used for rendering web pages in the context of .aspx files.
3.
3. ¿El primer evento que se dispara en una página aspx es?
Correct Answer
B. Page_Init()
Explanation
The correct answer is Page_Init(). In an ASPX page, the Page_Init() event is the first event that is triggered when the page is loaded. This event is used to initialize the page and its controls before any other events or controls are processed. It is commonly used for tasks such as setting initial values, binding data to controls, or dynamically creating controls. The Page_Load() event is triggered after the Page_Init() event and is used for tasks that need to be performed every time the page is loaded. The Page_click() event does not exist in ASPX pages.
4.
4.¿Postback ocurre en cual de las siguientes formas?
Correct Answer
C. Webforms
Explanation
Postback occurs in Webforms.
5.
5. ¿A qué
namespace pertenece la página Web en la jerarquía de clases en el Framework de
.NET?
Correct Answer
A. System.web.UI.Page
Explanation
The correct answer is System.web.UI.Page. This is because in the hierarchy of classes in the .NET Framework, the namespace to which the web page belongs is System.web.UI. The Page class is a part of this namespace and is used for creating web pages in ASP.NET.
6.
6. ¿A qué método se invoca en el control Data Adapter para cargar el dataset generado?
Correct Answer
A. Fill( )
Explanation
The correct answer is Fill( ). The Fill() method is used in the Data Adapter control to load the dataset that has been generated. This method retrieves the data from the data source and populates the dataset with the retrieved data.
7.
7. ¿Cómo se registra un control de usuario?
Correct Answer
C. Add Src, Tagprefix, Tagname
Explanation
To register a user control, you need to add the "Src" attribute to specify the path of the user control file, and also add the "Tagprefix" and "Tagname" attributes to define the prefix and name of the user control respectively. This combination of attributes is necessary to properly register and include the user control in the page.
8.
8.¿Cuál de las siguientes sentencias es verdadera?
Correct Answer
B. Los controles personalizados son mostrados correctamente en el Diseñador de Visual Studio .NET
Explanation
The correct answer states that "Los controles personalizados son mostrados correctamente en el Diseñador de Visual Studio .NET" which means that custom controls are displayed correctly in Visual Studio .NET Designer. This implies that the designer is capable of rendering and displaying custom controls without any issues.
9.
9. ¿Para añadir un control personalizado a un Web Form se debe registrar con cuál de los siguientes?
Correct Answer
D. Todas las anteriores
Explanation
To add a custom control to a Web Form, it must be registered using the TagPrefix, the namespace of the referenced dll, and the Assemblyname. All of these options are necessary for registering a custom control in a Web Form.
10.
10. ¿Los controles personalizados provienen de cuál de las siguientes clases?
Correct Answer
C. System.Web.UI.Customcontrols.Webcontrol
Explanation
The correct answer is System.Web.UI.Customcontrols.Webcontrol. This is because custom controls are created by inheriting from the WebControl class in the System.Web.UI namespace. Therefore, the custom controls would come from the System.Web.UI.Customcontrols.Webcontrol class.
11.
11. ¿En qué se diferencia el ASP.NET del ASP clásico?
Correct Answer
B. El Scripting esta separado del HTML, el código es compilado como un DLL, los DLL pueden ser ejecutados en el servidor.
Explanation
In ASP.NET, the scripting is separated from the HTML, and the code is compiled as a DLL (Dynamic Link Library). This means that the code can be executed on the server. This is different from classic ASP, where the scripting is also separated from the HTML, but the code is interpreted separately.
12.
12. ¿Cuál
es la diferencia entre Response.Write() y Response.Output.Write()?
Correct Answer
C. Response.Output.Write(), permite escribir la salida con formato.
Explanation
The difference between Response.Write() and Response.Output.Write() is that Response.Output.Write() allows writing the output with formatting.
13.
13. ¿Para
qué es usada Global.asax?
Correct Answer
A. Implementar eventos de aplicación y niveles de sesión
Explanation
Global.asax es utilizado para implementar eventos de aplicación y niveles de sesión en una aplicación web. Permite manejar eventos como el inicio y finalización de la aplicación, así como el inicio y finalización de una sesión de usuario. Esto es útil para realizar tareas específicas cuando se inicia o finaliza la aplicación, como configurar variables globales, establecer la configuración de la aplicación o gestionar la autenticación de los usuarios. Además, permite gestionar eventos de sesión, como el inicio de sesión de un usuario, el cierre de sesión o el tiempo de espera de la sesión.
14.
14. ¿Puede haber mas de un archivo machine.config en un sistema?
Correct Answer
A. VERDADERO
Explanation
Yes, there can be more than one machine.config file in a system. The machine.config file is a configuration file in the .NET framework that contains settings and configurations for the entire machine or server. In some cases, there may be multiple versions of the .NET framework installed on a system, and each version may have its own machine.config file. Additionally, different applications or components may have their own machine.config files with specific configurations. Therefore, it is possible to have multiple machine.config files in a system.
15.
15.¿Cuál es la
extensión para un web user control file?
Correct Answer
B. .Ascx
Explanation
The correct answer is .Ascx. A web user control file in ASP.NET has the file extension .ascx. This file is used to define a reusable user interface element that can be added to web pages. It contains a combination of HTML markup and server-side code, allowing developers to encapsulate and reuse specific UI components across multiple pages in a web application. The .ascx extension is used to identify and differentiate these specific files from other file types in the ASP.NET framework.
16.
16. ¿Cuál de las siguientes sentencias es verdadera?
Correct Answer
C. IsPostBack es una propiedad solo de lectura de System.Web.UI.Page class
Explanation
IsPostBack is a read-only property of the System.Web.UI.Page class.
17.
17. ¿El número
de formularios que se puede añadir a una página aspx es?
Correct Answer
A. 1
Explanation
There is only one correct answer to this question, which is 1. This means that the number of forms that can be added to an aspx page is limited to one.
18.
18. ¿Cómo se gestiona los estados en una aplicación ASP.NET?
Correct Answer
D. Todas las anteriores
Explanation
La respuesta correcta es "Todas las anteriores". En una aplicación ASP.NET, los estados se pueden gestionar utilizando objetos de sesión, objetos de aplicación y el Viewstate. Los objetos de sesión permiten almacenar y recuperar información específica de un usuario durante su sesión en la aplicación. Los objetos de aplicación permiten compartir información entre todos los usuarios de la aplicación. El Viewstate es una técnica que permite mantener el estado de los controles en una página web entre las solicitudes del servidor. Por lo tanto, todas estas opciones son formas válidas de gestionar los estados en una aplicación ASP.NET.
19.
19. ¿Qué propiedad del objeto sesión es usada para poner un identificador local?
Correct Answer
B. LCID
Explanation
LCID is the property of the session object that is used to set a local identifier.
20.
20. Seleccione el tipo de caching soportado por ASP.NET
Correct Answer
C. A y b
Explanation
The correct answer is "a y b" which means "a and b" in English. This suggests that both Output Caching and Data Caching are supported by ASP.NET. Output Caching refers to the caching of the rendered output of a web page, while Data Caching involves caching data retrieved from a data source. Therefore, ASP.NET supports both types of caching mechanisms for improved performance and efficiency in web applications.
21.
21. ¿Seleccione el tipo de modelo de procesamiento que simula el ASP.NET?
Correct Answer
A. Event-driven
Explanation
The correct answer is "Event-driven". In ASP.NET, the event-driven model of processing is used to simulate the behavior of the web application. This means that the application responds to user actions or events, such as button clicks or form submissions. The event-driven model allows for a more interactive and dynamic user experience, as the application can react and update in real-time based on user input.
22.
22. ¿EnableViewState permite a una página guardar lo ingresado por el usuario en un formulario?
Correct Answer
A. VERDADERO
Explanation
EnableViewState es una propiedad en ASP.NET que permite a una página guardar y restaurar el estado de los controles de servidor, incluyendo los datos ingresados por el usuario en un formulario. Esto significa que cuando un usuario envía un formulario y la página se vuelve a cargar, los datos ingresados por el usuario se mantienen en los campos correspondientes. Por lo tanto, la afirmación "EnableViewState permite a una página guardar lo ingresado por el usuario en un formulario" es verdadera.
23.
23. ¿Qué DLL traduce XML a SQL en IIS?
Correct Answer
A. SQLISAPI.dll
Explanation
SQLISAPI.dll is the correct answer because it is a DLL (Dynamic Link Library) file that is specifically designed to translate XML to SQL in IIS (Internet Information Services). DLL files contain code and data that multiple programs can use simultaneously, making them useful for tasks like translating XML to SQL. The other options, SQLXML.dll, LISXML.dll, and SQLIIS.dll, do not have the specific functionality mentioned in the question.
24.
24. ¿Cuál es el máximo número de cookies que se puede permitir en un sitio web?
Correct Answer
C. 20
Explanation
The correct answer is 20. This is the maximum number of cookies that can be allowed on a website. Cookies are small text files that are stored on a user's computer and are used to track their activity on the website. Having too many cookies can slow down the website and potentially invade the user's privacy. Therefore, it is recommended to limit the number of cookies to ensure a smooth browsing experience.
25.
25. Seleccione el control que no tiene una interfaz visible.
Correct Answer
C. Repeater
Explanation
The correct answer is Repeater. The Repeater control does not have a visible interface. It is used to display repeated sets of data without any predefined layout or formatting. Unlike the other controls listed, the Repeater control does not have built-in visual elements such as dropdown menus or data grids.
26.
26. ¿Cómo mata usted explícitamente a una sesión de usuario?
Correct Answer
C. Session.Abandon
Explanation
To explicitly kill a user session, you can use the Session.Abandon method. This method terminates the session and releases any resources associated with it.
27.
27. ¿Cuál
de los siguientes no es un miembro del objeto ADODBCommand?
Correct Answer
D. Open
Explanation
The Open method is not a member of the ADODBCommand object. The ADODBCommand object is used to execute commands and retrieve data from a database using ActiveX Data Objects (ADO). The ExecuteReader method is used to execute a command and return a DataReader object, which allows for forward-only access to the data. The ExecuteScalar method is used to execute a command and return a single value. The ExecuteStream method is not a valid method for the ADODBCommand object. The CommandText property is used to set or get the text of the command to be executed.
28.
28. ¿Cuál de los siguientes namespaces contiene la definición para IdbConnection?
Correct Answer
C. System.Data
Explanation
The correct answer is System.Data. This namespace contains the definition for IdbConnection, which is used for establishing and managing connections to a database.
29.
29. Escriba un programa con código .NET que permita conectarse a una base de datos con la estructura de las tablas presentadas mas abajo. Realice un select a la tabla departamentos HR_DEPARTAMENTO seleccionando el departamento ="ADAM" y este campo sea actualizado a todos los registros de la tabla HR_PAGO?HR_DEPARTAMENTO----------------------------------COD EMPRESA | VARCHAR2 (2) | PRIMARY KEY NOT NULLCOD_DEPARTAMENTO | VARCHAR2 (16) |PRIMARY KEY NOT NULLNOMBRE | VARCHAR2 (64)HR_PAGO----------------CODIGO | INTEGER | PRIMARY KEY NOT NULLCOD_EMPRESA | VARCHAR2(2) | PRIMARY KEY NOT NULLCOD_RUBRO_PAGO | VARCHAR2(32) | NOT NULLRESULTADO | NUMERIC(18,6) FECHA_PAGO | DATECOD_DEPARTAMENTO | VARCHAR2(16) | FOREIGN KEY