Examen Asp.Net

By Cristina Medina
Cristina Medina, QA and Testing
Cristina, a seasoned QA Engineer with nineteen years of experience in object-oriented software, thrives on continuous learning and collaborative teamwork. Her expertise ensures the quality and efficiency of software development processes.
Quizzes Created: 2 | Total Attempts: 23,097
, QA and Testing
Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
preguntas: 29 | Attempts: 9,736

SettingsSettingsSettings
Examen Asp.Net - Quiz

Permite evaluar su nivel en asp.net . Es indispensable que ingrese su nombre completo para poder seguir con su proceso, de otra forma su prueba no tendra validez. Piense bien  su repuesta ya que no podra regresar a revisar las mismas. Su tiempo para la prueba es de 25 minutos.


Questions and Answers
  • 1. 

    1. ¿Cuál de los siguientes lenguajes puede ser usado para escribir un script del lado del servidor en ASP.NET?

    • A.

      C-sharp

    • B.

      VB

    • C.

      C++

    • D.

      A y B

    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.

    Rate this question:

  • 2. 

    2. ¿Cuando una página .aspx es solicitada por el servidor web, el resultado será renderizado al browser en el siguiente formato?

    • A.

      HTML

    • B.

      XML

    • C.

      WML

    • D.

      JSP

    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.

    Rate this question:

  • 3. 

    3. ¿El primer evento que se dispara en una página aspx es?

    • A.

      Page_Load()

    • B.

      Page_Init()

    • C.

      Page_click()

    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.

    Rate this question:

  • 4. 

    4.¿Postback ocurre en cual de las siguientes formas?

    • A.

      Winforms

    • B.

      HTMLForms

    • C.

      Webforms

    Correct Answer
    C. Webforms
    Explanation
    Postback occurs in Webforms.

    Rate this question:

  • 5. 

    5. ¿A qué namespace pertenece la página Web en la jerarquía de clases en el Framework de .NET?

    • A.

      System.web.UI.Page

    • B.

      System.Windows.Page

    • C.

      System.Web.page

    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.

    Rate this question:

  • 6. 

    6. ¿A qué método se invoca en el control Data Adapter para cargar el dataset generado?

    • A.

      Fill( )

    • B.

      ExecuteQuery( )

    • C.

      Read( )

    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.

    Rate this question:

  • 7. 

    7. ¿Cómo se registra un control de usuario?

    • A.

      Add Tag prefix, Tag name

    • B.

      Add Source, Tag prefix

    • C.

      Add Src, Tagprefix, Tagname

    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.

    Rate this question:

  • 8. 

    8.¿Cuál de las siguientes sentencias es verdadera?

    • A.

      Los controles de usuario son mostrados correctamente en el Diseñador de Visual Studio .NET

    • B.

      Los controles personalizados son mostrados correctamente en el Diseñador de Visual Studio .NET

    • C.

      Los controles de usuario y los personalizados son mostrados correctamente en el Diseñador de Visual Studio .NET

    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.

    Rate this question:

  • 9. 

    9. ¿Para añadir un control personalizado a un Web Form se debe registrar con cuál de los siguientes?

    • A.

      TagPrefix

    • B.

      El namespace del dll al que se esta referenciando

    • C.

      Assemblyname

    • D.

      Todas las anteriores

    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.

    Rate this question:

  • 10. 

    10. ¿Los controles personalizados provienen de cuál de las siguientes clases?

    • A.

      System.Web.UI.Webcontrol

    • B.

      System.Web.UI.Customcontrol

    • C.

      System.Web.UI.Customcontrols.Webcontrol

    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.

    Rate this question:

  • 11. 

    11. ¿En qué se diferencia el ASP.NET del ASP clásico?

    • A.

      El Scripting esta separado del HTML, el código es interpretado separadamente.

    • B.

      El Scripting esta separado del HTML, el código es compilado como un DLL, los DLL pueden ser ejecutados en el servidor.

    • C.

      El código esta separado del HTML y el código interpretado es interpretado separadamente.

    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.

    Rate this question:

  • 12. 

    12. ¿Cuál es la diferencia entre Response.Write() y Response.Output.Write()?

    • A.

      Response.Output.Write(), permite hacer flush output.

    • B.

      Response.Output.Write(), permite hacer buffer output.

    • C.

      Response.Output.Write(), permite escribir la salida con formato.

    • D.

      Response.Output.Write(), permite hacer stream output.

    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.

    Rate this question:

  • 13. 

    13. ¿Para qué es usada Global.asax?

    • A.

      Implementar eventos de aplicación y niveles de sesión

    • B.

      Declarar variables globales

    • C.

      No tiene uso

    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.

    Rate this question:

  • 14. 

    14. ¿Puede haber mas de un archivo machine.config en un sistema?

    • A.

      VERDADERO

    • B.

      FALSO

    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.

    Rate this question:

  • 15. 

    15.¿Cuál es la extensión para un web user control file?

    • A.

      .Asmx

    • B.

      .Ascx

    • C.

      .Aspx

    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.

    Rate this question:

  • 16. 

    16. ¿Cuál de las siguientes sentencias es verdadera?

    • A.

      IsPostBack es un método de System.UI.Web.Page class

    • B.

      IsPostBack es un método de System.Web.UI.Page class

    • C.

      IsPostBack es una propiedad solo de lectura de System.Web.UI.Page class

    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.

    Rate this question:

  • 17. 

    17. ¿El número de formularios que se puede añadir a una página aspx es?

    • A.

      1

    • B.

      2

    • C.

      3

    • D.

      Mas de tres

    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.

    Rate this question:

  • 18. 

    18. ¿Cómo se gestiona los estados en una aplicación ASP.NET?

    • A.

      Session Objects

    • B.

      Application Objects

    • C.

      Viewstate

    • D.

      Todas las anteriores

    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.

    Rate this question:

  • 19. 

    19. ¿Qué propiedad del objeto sesión es usada para poner un identificador local?

    • A.

      SessionId

    • B.

      LCID

    • C.

      Item

    • D.

      Key

    Correct Answer
    B. LCID
    Explanation
    LCID is the property of the session object that is used to set a local identifier.

    Rate this question:

  • 20. 

    20. Seleccione el tipo de caching soportado por ASP.NET

    • A.

      Output Caching

    • B.

      DataCaching

    • C.

      A y b

    • D.

      Ninguno de los anteriores

    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.

    Rate this question:

  • 21. 

    21. ¿Seleccione el tipo de modelo de procesamiento que simula el ASP.NET?

    • A.

      Event-driven

    • B.

      Static

    • C.

      Linear

    • D.

      Topdown

    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.

    Rate this question:

  • 22. 

    22. ¿EnableViewState permite a una página guardar lo ingresado por el  usuario en un formulario?

    • A.

      VERDADERO

    • B.

      FALSO

    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.

    Rate this question:

  • 23. 

    23. ¿Qué DLL traduce XML a SQL en IIS?

    • A.

      SQLISAPI.dll

    • B.

      SQLXML.dll

    • C.

      LISXML.dll

    • D.

      SQLIIS.dll

    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.

    Rate this question:

  • 24. 

    24. ¿Cuál es el máximo número de cookies que se puede permitir en un sitio web?

    • A.

      1

    • B.

      10

    • C.

      20

    • D.

      Mas de 30

    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.

    Rate this question:

  • 25. 

    25. Seleccione el control que no tiene una interfaz visible.

    • A.

      Datalist

    • B.

      DropdownList

    • C.

      Repeater

    • D.

      Datagrid

    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.

    Rate this question:

  • 26. 

    26. ¿Cómo mata usted explícitamente a una sesión de usuario?

    • A.

      Session.Close( )

    • B.

      Session.Discard( )

    • C.

      Session.Abandon

    • D.

      Session.End

    • E.

      Session.Exit

    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.

    Rate this question:

  • 27. 

    27. ¿Cuál de los siguientes no es un miembro del objeto ADODBCommand?

    • A.

      ExecuteReader

    • B.

      ExecuteScalar

    • C.

      ExecuteStream

    • D.

      Open

    • E.

      CommandText

    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.

    Rate this question:

  • 28. 

    28. ¿Cuál de los siguientes namespaces contiene la definición para IdbConnection?

    • A.

      System.Data.Interfaces

    • B.

      System.Data.Common

    • C.

      System.Data

    • D.

      System.Data.Connection

    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.

    Rate this question:

  • 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

Cristina Medina |QA and Testing
Cristina, a seasoned QA Engineer with nineteen years of experience in object-oriented software, thrives on continuous learning and collaborative teamwork. Her expertise ensures the quality and efficiency of software development processes.

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Oct 21, 2009
    Quiz Created by
    Cristina Medina
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.