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 javascript
  1. Conservation of client CPU resources

  2. Increased validity of form submission

  3. Conservation of bandwidth

  4. Increase end-user satisfaction

  5. Either BCD

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

JavaScript form validation provides multiple benefits: it increases validity by catching errors before submission (B), conserves bandwidth by reducing server round-trips for invalid data (C), and increases user satisfaction by providing immediate feedback (D). Option E correctly identifies all these advantages. Option A is incorrect because client-side validation uses client CPU resources, it doesn't conserve them.

Multiple choice php
  1. <?php>...</?>

  2. <?php…?>

  3. <script>...</script>

  4. <&>...</&>

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

PHP code is embedded in HTML using opening delimiters. This tells the server to parse everything between these tags as PHP code. The correct syntax is without any angle brackets on the closing tag. Option B shows the correct delimiter syntax.

Multiple choice php
  1. "Hello World";

  2. echo "Hello World";

  3. Document.Write("Hello World");

  4. response.write("Hello World")

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

The echo statement is the most common way to output text to the browser in PHP. Option 4371 is just a string literal without an output command. 4373 is JavaScript syntax, and 4374 is ASP syntax. PHP requires an explicit command like echo or print to generate output.

Multiple choice php
  1. It requires short tags and this is not compatible with XML

  2. There is no problem

  3. This syntax doesn't even exist It requires a special PHP library that may not always be available

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

The short echo syntax =$expression ?> requires short_open_tag to be enabled in php.ini. This conflicts with XML declarations which also start with . Since PHP 5.4, short echo tags are always available regardless of short_open_tag setting, but full short tags ?> still conflict with XML and are discouraged for portable code.

Multiple choice .net vb
  1. True

  2. False

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

XML is the fundamental language for data exchange and integration within the .NET ecosystem. It is used for configuration files, web services (SOAP), and ADO.NET data representation, facilitating seamless communication between different components and platforms.

Multiple choice web-design
  1. It is a new hybrid technology that is different from both XML and HTML.

  2. You can't use it to create Web pages.

  3. It is a reformulation of HTML in XML.

  4. It has totally replaced HTML as the tool for building Web pages.

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

To solve this question, the user needs to have a basic understanding of web development and markup languages.

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

A. It is a new hybrid technology that is different from both XML and HTML. - This option is incorrect. XHTML stands for "Extensible Hypertext Markup Language", and it is a markup language that is based on XML. XHTML combines the syntax of HTML with the strictness of XML.

B. You can't use it to create Web pages. - This option is incorrect. XHTML is used to create web pages just like HTML.

C. It is a reformulation of HTML in XML. - This option is correct. XHTML is a reformulation of HTML in XML, which makes it easier for web developers to create valid and well-formed web pages.

D. It has totally replaced HTML as the tool for building Web pages. - This option is incorrect. Although XHTML has some advantages over HTML, it has not completely replaced it. HTML is still widely used for building web pages.

Therefore, the correct answer is:

The answer is: C

Multiple choice web-design
  1. It designs XML forms.

  2. It supports forms generated by Access Database.

  3. It has no server side form processing features.

  4. It has no client side form processing features.

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

Dreamweaver provides tools to design the visual layout of forms (client-side), but it does not inherently include server-side processing logic (like PHP or ASP scripts) to handle the data once submitted; that must be coded or configured separately.

Multiple choice web-design
  1. The use of SCRIPT tags in line with the HEAD and BODY tags.

  2. The addition of the INLINE tag within the controlling HTML.

  3. The embedding of scripting instructions within certain HTML tags.

  4. The physical justification of the script (major routines on the left, and lesser routines indented and on the right).

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

Inline scripting refers to placing script code directly within HTML event attributes (like onclick or onmouseover) inside the tags themselves. This differs from internal scripting (using SCRIPT tags in the head/body) or external scripting (linking to a .js file).

Multiple choice web-design
  1. ISAPI

  2. VB Script

  3. SGML

  4. HTML

  5. XML

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

ISAPI (Internet Server Application Programming Interface) is a more efficient alternative to CGI for Windows/IIS servers. Unlike CGI which creates a new process for each request, ISAPI runs in-process with the server, reducing overhead and improving performance. VB Script, SGML, HTML, and XML are not CGI alternatives.

Multiple choice web-design
  1. CODE

  2. ALIGN

  3. ALT

  4. CODEBASE

  5. All of the above

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

The APPLET tag (now deprecated) supported various attributes: CODE specifies the class file, CODEBASE specifies the base URL, ALIGN controls positioning, and ALT provides alternative text. Since all listed options were valid attributes for the tag, 'All of the above' is correct.

Multiple choice web-design
  1. DHTML

  2. SGML

  3. CSS

  4. XHTML

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

CSS (Cascading Style Sheets) is the technology for handling multiple overlapping styles through specificity, inheritance, and cascade rules. Inline styles are part of CSS. While the question's phrasing is awkward (it should say 'inline styles are part of'), CSS is clearly the intended answer over DHTML, SGML, or XHTML.

Multiple choice web-design
  1. you cannot do this

  2. use the ASK attribute

  3. use the MESSAGE attribute

  4. use the PROMPT attribute

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

The ISINDEX tag (a deprecated HTML element for simple search queries) used the PROMPT attribute to override the default prompt text that appeared before the input field. There is no ASK or MESSAGE attribute in the HTML specification for ISINDEX, and it was possible to customize the prompt.

Multiple choice web-design
  1. Absolute URL (http://www.site.com/directory/page.htm)

  2. Relative URL (../directory/page.htm)

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

Relative URLs are preferred for internal linking because they make the website portable. If the domain name changes or the site is moved to a different directory level, the links remain functional. Absolute URLs are rigid and harder to maintain for internal site structures.

Multiple choice xhtml
  1. X-function of HTML

  2. Ex Hyper Text Markup Language

  3. Extensible Hypertext Markup Language

  4. Extensible Hype Manditory Learning

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

XHTML stands for Extensible Hypertext Markup Language. It is a stricter, XML-based version of HTML that requires well-formed syntax and proper nesting of elements.