Computer Knowledge

Markup and Web Languages

1,492 Questions

Test your understanding of HTML tags, XML structures, and web page creation technologies. The questions cover elements like CSS styling, parsing documents, and defining web attributes. This section is essential for candidates appearing for computer proficiency tests in various competitive exams.

HTML tags and attributesXML document parsingCSS styling levelsWeb page creation basicsBrowser compatibility

Markup and Web Languages Questions

Multiple choice technology programming languages
  1. Transfers all the form data to test.aspx with HTTP headers

  2. Transfers all the form data to test.aspx with out HTTP headers

  3. Calls Post method on test.aspx

  4. Transfers all the form data from test.aspx to others

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To understand the output of the statement ``, the user needs to know the basics of HTML forms.

This HTML statement creates a form that will be submitted to the URL specified in the action attribute, in this case, "test.aspx". The method attribute specifies how the form data will be submitted to the server.

Now, let's go through each option and explain why it is right or wrong:

A. Transfers all the form data to test.aspx with HTTP headers: This option is partially correct. The form data will be transferred to test.aspx, but the HTTP headers will also be included in the request. The method attribute is set to "post", which means that the form data will be sent in the request body. This is more secure than sending the data in the URL, which is what happens when method is set to "get".

B. Transfers all the form data to test.aspx without HTTP headers: This option is incorrect. The HTTP headers will be included in the request, regardless of the method attribute value.

C. Calls Post method on test.aspx: This option is partially correct. The method attribute is set to "post", which means that the HTTP POST method will be used to submit the form data to test.aspx.

D. Transfers all the form data from test.aspx to others: This option is incorrect. The statement `` creates a form that submits data to test.aspx, not from test.aspx.

Therefore, the correct answer is: A. Transfers all the form data to test.aspx with HTTP headers.

Multiple choice technology web technology
  1. The Session object.

  2. The Application object.

  3. The Response object.

  4. The Request object.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The Request object encapsulates all data sent from the client to the server, including form data, query strings, cookies, and server variables. When a user submits a form, the form data is accessible through the Request object (Request.Form, Request.QueryString). Session (option A) stores user-specific data across pages, Application (option B) stores application-wide data, and Response (option C) sends data to the client.

Multiple choice technology web technology
  1. The Session object.

  2. The Application object.

  3. The Response object.

  4. The Server object

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The Server object provides access to server-related information and utilities. To get the web server's hostname, you would use Server.MachineName or access server variables through ServerVariables. The Session object (option A) stores user-specific data, Application (option B) stores application-wide state, and Response (option C) sends output to the client.

Multiple choice technology web technology
  1. The Session object.

  2. The Application object.

  3. The Response object.

  4. The Request object.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Session object encapsulates user-specific state and browser information, maintaining data across multiple page requests for a single user. It tracks session ID, stores user data, and can maintain information about the client's browser session. The Application object (option B) is shared across all users, Response (option C) sends data to the client, and Request (option D) handles incoming client data.

Multiple choice technology web technology
  1. Holds the HTML code for the form.

  2. Holds the control configuration for the form.

  3. Holds the C# code for the codebehind module.

  4. Holds the C# code that will be translated into HTML on the client.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The .aspx.cs file is the code-behind file that contains C# server-side logic for the Web Form. The .aspx file itself contains the HTML markup and control definitions. Options A and D are incorrect because HTML code lives in the .aspx file, not the .cs file.

Multiple choice technology web technology
  1. To store the global information and variable definitions for the application.

  2. Configures the time that the server-side codebehind module is called.

  3. To configure the web server.

  4. To configure the web browser.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Web.config is the primary configuration file for ASP.NET applications, storing global application settings, connection strings, and variable definitions accessible throughout the application. It does not directly configure the web server (IIS) or web browser. Option B is incorrect because Web.config doesn't control timing of code-behind execution.

Multiple choice technology web technology
  1. The control will operate as usual; the default is runat="server"

  2. The control will revert to being a client-side control and function as such.

  3. The control will not function; the default is runat="client".

  4. The compilation of the application will fail.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

ASP.NET server controls require the runat="server" attribute to be processed on the server. Without this attribute, the control is treated as a literal HTML element during page compilation, causing compilation to fail because server-side control properties and event handlers cannot be resolved. Option A is incorrect - there is no automatic default. Option B is wrong because the code won't compile to begin with.

Multiple choice technology web technology
  1. Extended expressions

  2. Regular expressions.

  3. Irregular expressions.

  4. Basic expressions.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Regular expressions provide a powerful pattern-matching language for validating complex string formats like email addresses, phone numbers, and URLs. They use special syntax to define patterns with character classes, quantifiers, and anchors. Options A, C, and D are not standard programming terms for pattern validation.

Multiple choice technology web technology
  1. PHP

  2. JSP

  3. JavaScript

  4. ASP

  5. CSS

  6. HTML

Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Explanation

PHP, JSP, and ASP are all server-side scripting languages used to generate dynamic web content. JavaScript (C) is primarily a client-side language (though Node.js exists, the question context implies traditional web development). CSS (E) and HTML (F) are client-side presentation technologies, not server-side languages.

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

AJAX supports multiple data formats including XML, JSON, HTML, and plain text. The name AJAX comes from 'Asynchronous JavaScript and XML,' but JSON is now more commonly used than XML.

Multiple choice technology web technology
  1. Annotation

  2. XML

  3. HTML

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

EJB 3.0 introduced annotations as the primary mechanism for mapping entity columns to database columns, replacing the verbose XML deployment descriptors of earlier EJB versions. While XML mapping files are still supported as an alternative, annotations provide a simpler, more intuitive inline approach. HTML is never used for ORM mapping.

Multiple choice technology platforms and products
  1. In ASP.NET 4, new configuration elements have been added to Web.config and Web.Config size has increased

  2. A new auto-start feature in ASP.NET 4.0 lets you perform expensive application initialization prior to processing the first HTTP request

  3. ASP.NET 4 allow to extend output caching by enabling you to configure one or more custom output-cache providers that can use any storage mechanisms

  4. ASP.NET 4 introduces a new compression option for Session State Compression for both out-of-process State Server & SQL Server session state providers to improve the performance

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

ASP.NET 4.0 actually simplified the default Web.config by moving many configuration elements to machine.config, reducing rather than increasing the file size. Options B, C, and D correctly describe ASP.NET 4.0 improvements: auto-start feature, extensible output caching, and session state compression.