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 web technology
  1. The name attribute of action tag, specifies the action name

  2. Only one controller can be defined for a module in struts application

  3. Struts configuration files should be placed only inside WEB-INF folder or its sub folders

  4. The <exception> tag can be used to forward user to a specific view in case of an exception.

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

Statement B is true: Each Struts module can have only one controller (RequestProcessor) defined. Statement D is true: The tag in struts-config.xml allows configuring exception handling, including forwarding to specific error views when exceptions occur. Statement A is false: The 'name' attribute of specifies the form bean name, not the action name (the action's logical name is the 'path' attribute). Statement C is false: While WEB-INF is recommended for security, config files can be placed elsewhere if properly configured in web.xml.

Multiple choice technology enterprise content management
  1. a) A and B Only

  2. b) A, B and C only

  3. c) All of the above

  4. d) A, B and D only

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

In SAP IS Retail, standard article categories include Single articles, Generic articles, and Structured articles (such as sets, prepacks, and displays). Unstructured is not a standard article category.

Multiple choice technology web technology
  1. #GGRRBB

  2. #RRBBGG

  3. #RRGGBB

  4. #BBRRGG

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

To solve this question, the user needs to know the format of the Hex color code and the order of values it represents.

The Hex color code is a 6-digit representation of Red, Green, and Blue (RGB) values of a color. Each pair of digits represents the intensity of Red, Green, and Blue, respectively. The first two digits represent the intensity of Red, the second two digits represent Green, and the last two digits represent Blue.

Going through each option:

A. #GGRRBB: This option is incorrect because it has a different order of values than the Hex color code. The correct order is #RRGGBB, where RR represents the intensity of Red, GG represents the intensity of Green, and BB represents the intensity of Blue.

B. #RRBBGG: This option is incorrect because it has a different order of values than the Hex color code. The correct order is #RRGGBB, where RR represents the intensity of Red, GG represents the intensity of Green, and BB represents the intensity of Blue.

C. #RRGGBB: This option is correct. The order of values in the Hex color code is #RRGGBB, where RR represents the intensity of Red, GG represents the intensity of Green, and BB represents the intensity of Blue. In this case, FF represents the maximum intensity of Red, 99 represents the intensity of Green, and 66 represents the intensity of Blue.

D. #BBRRGG: This option is incorrect because it has a different order of values than the Hex color code. The correct order is #RRGGBB, where RR represents the intensity of Red, GG represents the intensity of Green, and BB represents the intensity of Blue.

Therefore, the correct answer is:

The Answer is: C. #RRGGBB

Multiple choice technology web technology
  1. Graphic designer

  2. Any text editor

  3. browsers

  4. all of the above

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

HTML is plain text markup. Any text editor (Notepad, VS Code, Sublime, etc.) can write HTML files. Graphic designers create visuals, browsers render HTML, and neither writes HTML code.

Multiple choice technology web technology
  1. <taglib> <uri>http://www.javabeat.net/studyKit&lt;/uri> <location>/studyKit.tld</location> </taglib>

  2. <taglib> <uri>http://www.javabeat.net/studyKit&lt;uri> <location>/studyKit.tld</location> </taglib>

  3. <taglib> <taglib-uri>http://www.javabeat.net/studyKit&lt;/taglib-uri> <taglib-location>/studyKit.tld</taglib-location> </taglib>

  4. <taglib> <uri>http://www.javabeat.net/studyKit&lt;/uri> <path>/studyKit.tld</path> </taglib>

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

The correct DD syntax uses and elements within . Options A and D use incorrect element names (uri/path instead of taglib-uri/taglib-location). Option B has malformed XML.

Multiple choice technology enterprise content management
  1. Comments and markups on the original items stored as base items

  2. Base Contains any type of content, including an image, audio, document, etc.

  3. Base Text Contains documents and other files that contain text for indexing so that users can do content searches.

  4. Notelog Log of information entered by users pertaining to the object.

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

The Base Document Part in Content Manager Item Types is the primary content container that can store any type of content - documents, images, audio files, or any other digital content. It's the main repository for the actual item content, as opposed to metadata or notes.

Multiple choice technology architecture
  1. a) XML

  2. b) HTML

  3. c) WSDL

  4. d) IPv6

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

XML and WSDL are fundamental standards in web services architecture. XML provides the data format for message exchange, while WSDL describes service interfaces, enabling service discovery and integration. HTML is for presentation, not a web services standard.

Multiple choice technology architecture
  1. a) XML

  2. b) HTML

  3. c) WSDL

  4. d) IPv6

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

XML is the standard format for data exchange in web services, providing platform-independent message encoding. WSDL (Web Services Description Language) is the standard for describing service interfaces, operations, and binding details. HTML is for web page markup, not services; IPv6 is a network layer protocol.

Multiple choice technology web technology
  1. Always converts HTML markup to entity equivalents, like <

  2. Never converts HTML markup to entity equivalents

  3. Converts markup when filter=true

  4. Converts markup when markup=false

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

The tag has a 'filter' attribute that controls HTML escaping. When filter=true (the default), special characters like < and > are converted to their entity equivalents (<, >) for XSS protection. Setting filter=false disables this conversion.

Multiple choice technology web technology
  1. Call the reset method if validation fails

  2. Set the tag's redisplay property to false

  3. Set the tag's reset property to false

  4. Use a plain html tag instead

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

The tag has a 'redisplay' attribute that controls whether the password value is shown when the form is redisplayed (e.g., after validation errors). Setting redisplay=false prevents the password from being rendered back to the browser, addressing security concerns.

Multiple choice technology web technology
  1. It may iterate over arrays, collections, maps and strings.

  2. The body of the tag may contain EL code, but not scripting code.

  3. When looping over collections, a loop status object may be used in the tag body.

  4. It may iterate over a map, but only the key of the mapping may be used in the tag body.

  5. When looping over integers (for example begin1='1' end='10'), a loop status object may not be used in the tag body.

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

JSTL iteration tags like `can iterate over arrays, collections, maps, and strings. When looping over collections, a loop status object (via thevarStatus` attribute) can be used to track the current index and status.