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
-
<![CDATA[ Text to be ignored ]]>
-
<xml:CDATA[ Text to be ignored ]>
-
<PCDATA> Text to be ignored </PCDATA>
-
<CDATA> Text to be ignored </CDATA>
A
Correct answer
Explanation
CDATA sections in XML use the syntax to tell parsers to treat the content as literal text, ignoring any special characters or markup within. Option A shows the correct syntax.
-
<h1>
-
<h6>
-
<head>
-
<heading>
A
Correct answer
Explanation
In HTML, heading tags range from
(largest) to (smallest). The tag contains metadata like title and styles, not visible content. Option A is correct.
-
<input type="check" />
-
<check>
-
<checkbox>
-
<input type="checkbox" />
D
Correct answer
Explanation
HTML checkboxes are created using the tag with type="checkbox" (option D). There is no dedicated or tag in HTML. Checkboxes are a type of input element.
-
<JS></JS>
-
<JScript></JScript>
-
<java></java>
-
<script></script>
D
Correct answer
Explanation
JavaScript is embedded in HTML using tags (option D). There are no , , or tags in HTML. The script tag is the standard container for JavaScript code.
A
Correct answer
Explanation
The correct syntax to open a new window in JavaScript uses the window.open() method with parentheses. Option A shows w2=window.open("http://www.w3schools.com"); which is correct. Option B is missing parentheses, and options C and D use the non-existent window.new() method.
-
all child nodes
-
all elements
-
all elements which have attributes
-
no meaning at all
-
aJavascript file
-
an XML file
-
a Java file
-
an XSLfile
C
Correct answer
Explanation
An eventflow file in Genesys is a Java file that defines the processing logic for handling events. While Genesys uses XML for configuration, the actual event flow logic is implemented in Java classes. These files contain the code that executes when events are triggered, handling business logic and data processing. Option A (Javascript) and option D (XSL) are incorrect.
-
Java files
-
Javascript files
-
XML files
-
XSL files
C
Correct answer
Explanation
Event files in Genesys are XML files. XML is the standard format for structured event data as it provides schema validation, human readability, and broad tooling support in enterprise systems.
-
.xml files
-
.java files
-
.xsl files
-
.css files
C
Correct answer
Explanation
Translator files in Genesys use .xsl extension because they are XSL (XSL Transform) stylesheets that perform XML transformations. XSL is the standard technology for converting XML documents between different formats.
-
<iw:content>
-
<iw:reference>
-
<iw:resource>
-
<iw:iwidget>
C
Correct answer
Explanation
The tag in widget definition XML files is used to reference external JavaScript files that implement the widget's functionality. It links the widget's declarative definition to its executable code. defines widget content structure, is for other types of references, and is the root element of the widget definition.
-
HTML mode
-
URL mode
-
GUI mode
-
Rapid mode
B
Correct answer
Explanation
URL-based recording mode captures each HTTP request as a separate statement, including all resources (images, CSS, JS, etc.), resulting in much larger scripts. HTML mode groups requests and uses context-sensitive functions, creating more compact scripts that mirror user actions at the browser level.
-
Bio Authentication
-
Optimization and acceleration of XML and XSLT
-
Security, monitoring, threat mediation, and
-
Process WSDL described Services
B
Correct answer
Explanation
The XSL Accelerator Service in IBM DataPower is specifically designed to optimize and accelerate XML and XSLT transformations. It offloads CPU-intensive XSL processing from the main appliance, improving performance for XML-heavy workloads. Option A (Bio Authentication) refers to authentication mechanisms, C describes security/monitoring functions typically handled by firewall services, and D (WSDL processing) is handled by Web Service Proxy.
-
PHP can be used to develop web applications.
-
PHP makes a website dynamic
-
PHP applications can not be compiled
-
PHP can not be embedded into html.
D
Correct answer
Explanation
Option D 'PHP can not be embedded into html' is the statement that is NOT true. PHP was specifically designed to be embedded directly into HTML using PHP tags (), which is one of its fundamental features. Options A and B are true - PHP is widely used for web applications and makes websites dynamic by generating HTML content on-the-fly. Option C is technically true in that PHP is traditionally an interpreted language, though modern tools like HHVM, Phalanger, and Bcompiler can compile PHP applications for performance optimization.
-
<? ?>
-
<script language=”php”> </script>
-
<% %>
-
NONE
-
You can use any of the delimiting style
-
You can use different delimiting styles in same page
-
You can use any delimiting style but must use a single style consistently for a page
-
Variables declared in previous blocks are remenbered on later blocks too!
C
Correct answer
Explanation
PHP allows mixing different delimiter styles in the same page, so the statement requiring a single consistent style is false. Option A claims you can use any style (true). Option B claims you can mix styles in same page (true). Option D is true - variables persist across PHP blocks on the same page. Only C is false.