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. .<style type="text/css">

  2. .<link rel="stylesheet" type="text/css" href="r4rcss.css">

  3. Both

  4. None

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

External CSS files are linked using the element placed in the HTML section. This approach separates content from presentation and allows multiple pages to share the same stylesheet. The tag is used for internal CSS embedded within the HTML document itself.

Multiple choice technology programming languages

  1. tag works in all browsers


  2. is recommended now.


  3. tag not supported for IE, Mazola etc. works in all browsers


  4. is more will outdated

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

The
tag is a self-closing element for line breaks. HTML5 allows
without the closing slash, but XHTML and earlier standards recommended
. Both syntaxes work in modern browsers, though the self-closing version is considered more standards-compliant.

Multiple choice technology programming languages
  1. HTML allow images and objects to be embedded on web page to create interactive forms by using some script

  2. .HTML allow images and objects to be embedded on web page to create interactive forms by using tags.

  3. Both of the above

  4. None

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

HTML allows images and objects to be embedded on a web page to create interactive forms using tags. While scripts can add dynamic behaviors, the capability to embed these objects is natively provided by standard HTML tags rather than scripting.

Multiple choice technology programming languages
  1. .shtml

  2. .html

  3. .htm

  4. .jsp

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

Server Side Includes (SSI) are HTML directives that are evaluated on the server to add dynamic content to pages. The standard and most common file extension used to process these directives on the server is .shtml.

Multiple choice technology programming languages
  1. <html><head></head><body><title></<title></body></html>

  2. <html><head><title></<title></head><body></body></html>

  3. <html><head><title></<title><body></body></head></html>

  4. <html><title></<title><head></head><body></body></html>

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

HTML requires proper nesting: contains and . The contains , and contains page content. Option B correctly shows -> -> sequence with proper closing order. Other options have incorrect nesting like outside .

Multiple choice technology web technology
  1. JavaScript and AJAX

  2. CSS

  3. LINQ

  4. HTML

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

Visual Studio 2008 (.NET 3.5) introduced IntelliSense support for JavaScript and AJAX to improve client-side development. CSS, LINQ, and HTML support existed or aren't the primary new feature.

Multiple choice technology programming languages
  1. page

  2. request

  3. context

  4. application

  5. None

  6. context and application

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

The valid scopes for jsp:useBean are page, request, session, and application. 'context' is not a valid scope value - it should be 'application' for application scope. Option C correctly identifies 'context' as invalid.

Multiple choice technology programming languages
  1. page

  2. request

  3. context

  4. application

  5. None

  6. context and application

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

The valid scope values for are: page (default), request, session, and application. 'context' is NOT a valid scope value. Option C is correct because 'context' is invalid. Option F claims both 'context and application' are invalid, but 'application' IS valid, so F is incorrect.

Multiple choice technology architecture
  1. a.Show-XML

  2. b.Show-Html

  3. c.Show-Page

  4. d.Show-Step-Page

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

Show-Page is the Pega method that displays a step page's complete structure in XML format, making it invaluable for debugging. It shows all properties and their values in the current clipboard context. Despite the name, it outputs XML, not HTML, and is specifically designed for page inspection.

Multiple choice technology web technology
  1. error-page

  2. exception-type

  3. location

  4. None of the above

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

The 'error-page' tag in web.xml is used to define error pages for JSP/servlet applications. It maps error codes or exception types to specific location URLs where error handling pages reside. The other options are sub-elements within error-page configuration, not the defining tag itself.

Multiple choice technology web technology
  1. AirthmaticFormat

  2. CurrencyFormat

  3. NumberFormat

  4. StringBuffer

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

The NumberFormat class (specifically NumberFormat.getCurrencyInstance()) is the correct Java class for formatting monetary values on JSP pages. ArithmeticFormat is not a standard Java class, CurrencyFormat doesn't exist in the standard API, and StringBuffer is for string manipulation not formatting.

Multiple choice technology
  1. True

  2. False

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

SOAP messages do not have a default encoding style. SOAP supports multiple encoding styles including document/literal and RPC/encoded. The encoding is specified in the WSDL and SOAP message itself, not predefined by the SOAP specification.