Computer Knowledge

Markup and Web Languages

1,701 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 .net
  1. all ASP.NET code.

  2. as much ASP.NET code as is in the ASP.NET file.

  3. a mix of ASP.NET and HTML code.

  4. all HTML code.

  5. None of the above.

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

ASP.NET is a server-side technology. When a browser requests an .aspx file, IIS processes the server-side code and sends only pure HTML to the client. No ASP.NET code is ever sent to the browser, as this would expose your server-side logic.

Multiple choice .net
  1. .asp

  2. .aspx

  3. .asp.vb

  4. .aspx.vb

  5. .asp.vb.net

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

To solve this question, the user needs to know about Visual Basic web form code files and their extensions.

The extension for a Visual Basic web form code file is typically ".aspx.vb". This file contains the code-behind logic for a web form created using Visual Basic.

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

A. .asp: This extension is used for Active Server Pages, which is a server-side scripting language used to create dynamic web pages. It is not the extension for Visual Basic web form code file.

B. .aspx: This extension is used for Active Server Pages.NET, which is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites, applications and services. It is not the extension for Visual Basic web form code file.

C. .asp.vb: This extension is not typically used for Visual Basic web form code file. It is not the correct answer.

D. .aspx.vb: This extension is the correct answer. This is the extension used for Visual Basic web form code file which contains the code-behind logic for a web form created using Visual Basic.

E. .asp.vb.net: This extension is not typically used for Visual Basic web form code file. It is not the correct answer.

Therefore, the answer is: D. .aspx.vb

Multiple choice .net
  1. ControlName

  2. Designation

  3. ID

  4. Name

  5. Title

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

To solve this question, the user needs to know about web controls and how they are named. Web controls are elements used to interact with a user on a web page, such as buttons, text boxes, or drop-down lists. Each web control needs a unique identifier or name to distinguish it from other controls on the page.

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

A. ControlName: This option is incorrect because "ControlName" is not a commonly used property to name a web control. The property used to name a web control is typically something else.

B. Designation: This option is incorrect because "Designation" is not a commonly used property to name a web control. The property used to name a web control is typically something else.

C. ID: This option is correct. The "ID" property is commonly used to name a web control. It provides a unique identifier for the control, which can be used to manipulate or access the control in code.

D. Name: This option is incorrect because "Name" is not commonly used as a property to name a web control. The property used to name a web control is typically something else.

E. Title: This option is incorrect because "Title" is not commonly used as a property to name a web control. The property used to name a web control is typically something else.

The Answer is: C

Multiple choice asp
  1. True

  2. False

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

ASP (Active Server Pages) enables server-side scripting, allowing websites to generate dynamic content based on user interactions, database queries, and other server-side logic. This makes websites more interactive compared to static HTML pages. The False option is incorrect because ASP's primary purpose is specifically to add dynamic, interactive functionality to web pages.

Multiple choice asp
  1. Syntax error such as missing parentheses, comma or quotation mark.

  2. Comments in your code are not tagged properly as comments.

  3. Make sure function names have both opening and closing parentheses.

  4. Check to see that the web page is properly saved with the extension as .asp

  5. All of the above

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

All listed issues can cause ASP pages to fail. Syntax errors (missing parentheses, commas, or quotes) prevent code from parsing. Improperly tagged comments get interpreted as code. Functions need parentheses even with no arguments. And pages must be saved with .asp extension for the server to recognize and process them as ASP files. Each issue alone can break the page.

Multiple choice asp
  1. That all pages are saved in .asp extensions.

  2. Check that the web server has Microsoft FrontPage extensions installed.

  3. Make sure the web server is capable of hosting ASP pages.

  4. Check the coding and be sure the ASP code is surrounded with <% and %>

  5. All of the above

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

Before adding ASP capability, you must verify the web server supports ASP - this is a server-side technology that requires specific server software (IIS or compatible). Checking file extensions (A) or coding syntax (D) are later steps. FrontPage extensions (B) are unrelated to ASP support. Only after confirming server capability should you proceed with implementation.

Multiple choice asp
  1. True

  2. False

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

Client-side and server-side scripting serve different purposes and can work together seamlessly. ASP (server-side) generates initial content and handles server logic, while JavaScript (client-side) handles browser interactions and DOM manipulation after the page loads. They complement each other - ASP can even generate JavaScript code dynamically.

Multiple choice asp
  1. a client-side executable code.

  2. a server-side executable code.

  3. a world-wide-web executable code.

  4. all of the above.

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

ASP (Active Server Pages) is a Microsoft server-side scripting technology. The ASP code executes on the web server, not in the client's browser. The server processes the ASP code and generates HTML which is then sent to the browser. This is why ASP files must be hosted on a web server like IIS, not simply opened as local files.

Multiple choice asp
  1. True

  2. False

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

To solve this question, the user needs to have knowledge of ASP (Active Server Pages) and HTML.

ASP pages are a type of web page that allows for server-side scripting. They can contain embedded code written in a scripting language such as VBScript or JScript. This code is processed by the server before the resulting HTML is sent to the client's web browser.

HTML (Hypertext Markup Language) is the standard markup language for creating web pages. It is used to structure and present content on the web.

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

A. True: This option is correct. ASP pages can indeed contain embedded HTML code. HTML is used to define the structure and content of the page, while ASP code can be embedded within the HTML to perform server-side processing and generate dynamic content.

B. False: This option is incorrect. ASP pages can contain embedded HTML code, so the statement is true.

Therefore, the answer is: A. True

Multiple choice asp
  1. Browser requests ASP code, server returns code, browser executes code into HTML form

  2. Browser requests ASP code, server executes ASP code and returns HTML document to browser

  3. Browser requests code, server returns code, Windows executes code since ASP is Microsoft code.

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

When a browser requests an ASP page, the web server (IIS) executes the ASP code on the server side. The ASP code generates HTML content dynamically, which is then sent back to the browser as a pure HTML document. The browser never sees the original ASP code, only the resulting HTML. This is why you cannot view ASP source code by using 'view source' in a browser.

Multiple choice asp
  1. index.asp

  2. default.asp

  3. home.asp

  4. Both A and B

  5. Both B and C

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

In IIS (Internet Information Services), the default document list can be configured. By default, 'default.asp' and 'index.asp' are the most common filenames recognized as the entry point for an ASP-based directory when no specific file is requested.

Multiple choice asp
  1. True

  2. False

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

ASP files are simply text files with .asp extension, so they can be created in any plain text editor including Notepad, TextEdit, or VS Code. ASP doesn't require a special IDE or compiler. However, you need to save the file with the .asp extension and place it in a web server's directory to test it. Modern editors with syntax highlighting are more convenient but not required.

Multiple choice .net asp
  1. HTML

  2. JavaScript

  3. VBScript

  4. Perl

  5. All of the above

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

Include files can be written in multiple scripting and markup languages depending on what needs to be included. HTML for structural content, JavaScript for client-side scripting, VBScript for server-side scripting in ASP, and potentially Perl if supported by the server environment. The appropriate language depends on the content's purpose and the server's capabilities.

Multiple choice .net asp
  1. .shtml

  2. .shtm

  3. .stm

  4. .html

  5. .asp

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

Standard .html files are processed as static content by web servers and will not recognize or execute server-side include directives. The .shtml, .shtm, and .stm extensions are configured on servers to parse and process SSI directives. The .asp extension supports includes through ASP's specific #include directive, which is processed before the page executes. Plain .html files lack this server-side processing capability.

Multiple choice .net asp
  1. True

  2. False

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

JavaScript is client-side and visible in the browser source. However, server-side include statements (like ) are processed by the server before the page is sent. The resulting HTML is sent, but the include logic itself is never visible to the client, making the statement false.