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 programming languages
  1. True

  2. False

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

JSON is indeed a text format that is completely language independent. While JSON's syntax was derived from JavaScript, it's supported by virtually every modern programming language through parsers and generators. It was specifically designed to be a universal data interchange format that any language can read and write.

Multiple choice technology programming languages
  1. Superset of JavaScript

  2. Subset of Javascript

  3. Not related to Javascript

  4. Union of Java and Javascript

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

JSON (JavaScript Object Notation) is a lightweight text-based data format that is formally defined as a subset of the JavaScript programming language syntax. It is not a superset, nor is it unrelated to JavaScript, and it has no syntax union with Java.

Multiple choice technology web technology
  1. ActionForm

  2. Action

  3. All of the Above

  4. None of the Above

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

In Struts 2, HTML form parameters are automatically passed directly to Action classes via parameter interception. The Action class properties match form field names, and Struts 2 populates them automatically. ActionForm (used in Struts 1) is not required in Struts 2.

Multiple choice technology web technology
  1. SampleAction-validation.xml

  2. SampleClass-validation.xml

  3. All Of the above

  4. None of the above

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

In Struts 2, validation XML files are named after the Action class, not the action name specified in struts.xml. For an action with class SampleClass, the validation file must be named SampleClass-validation.xml. The framework looks for validation files based on the fully qualified class name.

Multiple choice technology web technology
  1. True

  2. False

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

In Struts 2, the configuration file name 'struts.xml' cannot be changed. The framework hardcodes this name and looks for it in the classpath. This is different from Struts 1, where you could specify a different config file name in web.xml. Struts 2 requires struts.xml to be in a specific location with that exact name.

Multiple choice technology testing
  1. XMLfile1.compare(XMLfile2)

  2. XMLcompare(file1,file2)

  3. compare(XMLfile1,XMLfile2)

  4. compare(file XML1,file XML2)

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

In QTP/UFT, the compare() method accepts two XML file objects as parameters and returns their differences. This is the standard syntax for XML comparison within the tool's testing framework.

Multiple choice technology programming languages
  1. Web System Description Language

  2. Web Service Description Language

  3. Web Service Definition Language

  4. Web System Definition Language

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

WSDL (Web Services Description Language) is an XML-based language for describing web services. It defines the service's location, available operations, input/output messages, and data types, enabling clients to understand how to interact with the web service.

Multiple choice technology programming languages
  1. Transfers all the form data to test.aspx with HTTP headers

  2. Transfers all the form data to test.aspx with out HTTP headers

  3. Calls Post method on test.aspx

  4. Transfers all the form data from test.aspx to others

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

To understand the output of the statement ``, the user needs to know the basics of HTML forms.

This HTML statement creates a form that will be submitted to the URL specified in the action attribute, in this case, "test.aspx". The method attribute specifies how the form data will be submitted to the server.

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

A. Transfers all the form data to test.aspx with HTTP headers: This option is partially correct. The form data will be transferred to test.aspx, but the HTTP headers will also be included in the request. The method attribute is set to "post", which means that the form data will be sent in the request body. This is more secure than sending the data in the URL, which is what happens when method is set to "get".

B. Transfers all the form data to test.aspx without HTTP headers: This option is incorrect. The HTTP headers will be included in the request, regardless of the method attribute value.

C. Calls Post method on test.aspx: This option is partially correct. The method attribute is set to "post", which means that the HTTP POST method will be used to submit the form data to test.aspx.

D. Transfers all the form data from test.aspx to others: This option is incorrect. The statement `` creates a form that submits data to test.aspx, not from test.aspx.

Therefore, the correct answer is: A. Transfers all the form data to test.aspx with HTTP headers.

Multiple choice technology web technology
  1. Holds the HTML code for the form.

  2. Holds the control configuration for the form.

  3. Holds the C# code for the codebehind module.

  4. Holds the C# code that will be translated into HTML on the client.

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

The .aspx.cs file is the code-behind file that contains C# server-side logic for the Web Form. The .aspx file itself contains the HTML markup and control definitions. Options A and D are incorrect because HTML code lives in the .aspx file, not the .cs file.

Multiple choice technology web technology
  1. Extended expressions

  2. Regular expressions.

  3. Irregular expressions.

  4. Basic expressions.

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

Regular expressions provide a powerful pattern-matching language for validating complex string formats like email addresses, phone numbers, and URLs. They use special syntax to define patterns with character classes, quantifiers, and anchors. Options A, C, and D are not standard programming terms for pattern validation.

Multiple choice technology web technology
  1. True

  2. False

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

AJAX supports multiple data formats including XML, JSON, HTML, and plain text. The name AJAX comes from 'Asynchronous JavaScript and XML,' but JSON is now more commonly used than XML.

Multiple choice technology
  1. Case

  2. Action Item

  3. Link-Delink

  4. Both A & B

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

Flexible attribute Templates are related to Case management in CIM. These templates allow customizable fields and attributes to be added to Case records to capture specific information based on business needs.

Multiple choice technology enterprise content management
  1. odbase.xml

  2. odrcvr.xml

  3. Deployment Configuration xml

  4. None of the above

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

The list of target nodes that can be deployed to in OpenDeploy is defined within the odnodes.xml configuration file. Since odnodes.xml is not listed among the choices (which include odbase.xml and odrcvr.xml), the option "None of the above" is correct.