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 technology web technology
  1. an jsp-based service IDL

  2. an non XML-based service IDL

  3. an XML-based service IDL

  4. none

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

WSDL serves as an Interface Definition Language (IDL) for web services, similar to how CORBA IDL works for distributed objects. Being XML-based makes it platform-independent and readable by both humans and machines. It defines the service contract without exposing implementation details.

Multiple choice technology web technology
  1. all validations and requests

  2. all Validations

  3. all requests

  4. None

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

In SOAP message structure, the header contains auxiliary information like authentication tokens, transaction IDs, validation rules, and routing information. The actual request or response payload goes in the body section. This separation of concerns keeps metadata separate from core message content.

Multiple choice technology web technology
  1. only XML

  2. XSD, XML, XML schemas

  3. only XSD

  4. only XML schemas

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

Web services can process various XML-based request formats including plain XML documents, XSD (XML Schema Definition) for structure validation, and XML schemas that define document structure. These formats provide type safety and validation for service messages, ensuring proper data exchange between systems.

Multiple choice technology security
  1. Java

  2. ASP.Net

  3. Perl

  4. All of the above

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

Cross-Site Scripting is a vulnerability that affects any web application technology, not specific languages. Java, ASP.NET, Perl, PHP, Python, Ruby, and JavaScript-based frameworks can all be vulnerable if they improperly handle user input and render it without proper sanitization. The vulnerability is in how the application processes output, not the language itself.

Multiple choice technology security
  1. Is a good programming practice

  2. Is very useful during code reviews

  3. Is the recommended practice for secure code maintenance

  4. May give the attacker valuable information to perform an exploit

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

HTML comments visible in source code can reveal internal application structure, debugging information, file paths, or sensitive implementation details to attackers. Code comments are useful during development but should be removed or minimized in production to prevent information disclosure vulnerabilities.

Multiple choice technology web 2.0
  1. stylesheet>mystyle.css</stylesheet />

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

  3. <link rel="stylesheet" type="text/css" src="mystyle.css">

  4. <style src="mystyle.css" />

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

External style sheets are linked using the element with attributes `rel="stylesheet"`, `type="text/css"`, and `href`. Using `src` instead of `href` is incorrect for links, and tags with src or custom &lt;stylesheet&gt; tags are invalid HTML.

Multiple choice technology web 2.0
  1. body {color: black}

  2. {body;color:black}

  3. {body:color=black(body}

  4. body:color=black

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

CSS syntax uses the format: selector { property: value; }. The correct form is 'body { color: black; }' where 'body' is the selector, 'color' is the property, and 'black' is the value.

Multiple choice technology web 2.0
  1. p {font-weight:bold}

  2. <p style="font-size:bold">

  3. p {text-size:bold}

  4. <p style="text-size:bold">

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

The correct CSS property for making text bold is font-weight with value bold. Option A uses the correct CSS syntax with a selector (p) and property-value pair (font-weight:bold). Options B and D incorrectly use inline style syntax with font-size or text-size, which are not properties for bold text. Option C uses the non-existent property text-size.

Multiple choice technology web 2.0
  1. True

  2. False

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

CSS is not limited to HTML - it can style XML documents, SVG graphics, and other markup languages. The statement claims CSS can only style HTML webpages, which is false. CSS is a general-purpose styling language.

Multiple choice technology web 2.0
  1. display

  2. view

  3. visibility

  4. z-index

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

Two main CSS properties can hide elements: display:none removes the element completely from the layout, while visibility:hidden hides it visually but maintains its space in the layout. Options A and C are both correct. The 'view' property doesn't exist, and z-index only controls stacking order.

Multiple choice technology web 2.0
  1. display

  2. position

  3. z-index

  4. depth

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

The CSS z-index property determines the stack order of elements that overlap. Elements with a larger z-index cover those with a smaller z-index. The display and position properties control layout and placement, while depth is not a valid CSS property.

Multiple choice technology web technology
  1. printf("Hello World")

  2. echo "Hello World";

  3. "Hello World";

  4. Document.write("Hello World");

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

echo is the correct way to output text in PHP. While printf also works for formatted output, echo is the standard method for simple string output and is the most commonly used. Option C is just a string literal without an output command, and option D uses JavaScript syntax.

Multiple choice technology architecture
  1. JavaScript

  2. Multiplatform Compatible Script

  3. Web Application security vulnerability to inject client side scripting into web pages viewed in other user sessions

  4. Extended Secure Scripting

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

Cross-Site Scripting (XSS) is a security vulnerability where attackers inject malicious client-side scripts (typically JavaScript) into web pages viewed by other users. This occurs when a web application accepts and displays user input without proper sanitization, allowing scripts to execute in victims' browsers. Option A 'JavaScript' is merely the language used, not the vulnerability itself. Options B and D are fabricated meanings unrelated to actual security terminology.