0

Online test 1 - Web Technologies

Description: GATE Exam online practice test Web Technologies
Number of Questions: 25
Created by:
Tags: GATE CS Web Technologies
Attempted 0/25 Correct 0 Score 0

Which of the following attributes of text box control allows limiting the maximum characters?

  1. Size

  2. Len

  3. Maximum length

  4. All of these


Correct Option: C
Explanation:

Maximum length is the attribute of the text box control that allows limiting maximum characters. Whereas, size and len attribute level are invalid attributes for the text box control that allows limiting the maximum characters.

Markup tags tell the browser

  1. how to organize the page

  2. how to display the page

  3. how to display message box on page

  4. none of these


Correct Option: B
Explanation:

How to display the page, as we use markup language it tells browser to display the page as per the markup tags, which is the main goal of HTML and not to describe or organize the page. To organize the page i.e. for describing the contents we use XML and obviously to display message box on page we use tags but the entire markup tags do not have only one functionality.

The <DIR> tag can only have

  1. 12 Characters

  2. 18 Characters

  3. 22 Characters

  4. 24 Characters


Correct Option: D
Explanation:

24 CharactersAs we use tag to create a directory list, so using this tag, HTML enables the user to create a directory list which will have by default 24 characters for each name.

Choose the correct HTML tag for the longest heading.

  1. <head>

  2. <h6>

  3. <heading>

  4. <h1>


Correct Option: D
Explanation:

<h1>The <h1> tag is the tag used for the largest heading from heading tags <h1> to <h6> whereas, <h6> tag is used from the smallest heading and <head> tag is used to display the header of the pages on browser while <heading> tag does not have any functionality.

Where is the map-definition file generally stored?

  1. CGI - Bin

  2. Recycle Bin

  3. Bin

  4. All of these


Correct Option: A
Explanation:

CGI - BINThe map-definition file is generally stored in CGI - BIN, while designing a web page which is by default a directory to store map definition file whereas, Recycle Bin and Bin are the directories having different functionality, so treated as wrong options.

Main container for <TR>, <TD> and <TH> is

  1. <Table>

  2. <Group>

  3. <Data>

  4. all of these


Correct Option: A
Explanation:

TableThe , , and tags are used to create row, add data into table and to give heading for a table respectively. Whereas, and are not containers for these tags because these tags are specially used for creating and editing table data.

What is the attribute of <Form> tag?

  1. METHOD

  2. ACTION

  3. Both (1) and (2)

  4. None of these


Correct Option: C
Explanation:

The <Form> tag is container tag, which has different attributes like METHOD and ACTION. Method can be 'Get' or 'Post' and Action attribute gives the address of the script that will process the form. Where ACTION tag is required attribute, whereas METHOD is optional attribute.

With what is MIME Text file saved?

  1. HMT extension

  2. HTML extension

  3. THM extension

  4. None of these


Correct Option: B
Explanation:

The MIME text file is saved with HTML extension to display (multiples internet mail extensions) the page on web browser, which is the standard extension for MIME text file. Whereas HMT extension and THM extension does not contain any functionality so, treated as wrong options.

HTML is a subset of

  1. SGMT

  2. SGML

  3. SGMD

  4. None of these


Correct Option: B
Explanation:

 HTML is the subset of SGML with more forgiving rules that are not followed for XHTML and XML

The tag used to create a new item and also includes a hyperlink is

  1. <LI>

  2. <DL>

  3. <DD>

  4. <UL>


Correct Option: A
Explanation:

By using <LI> tag you can add links to lists and tables. Each list item or table entry can serve as a link to a different page, FTP site so on. Whereas <UL> tag is used for unordered list, <DD> and <DL> is used to create a glossary list.

The web standard allows programmers on many different computer platforms to dispersed format and display the information server. This program is called

  1. Web browser

  2. HTML

  3. Internet explorer

  4. none of these


Correct Option: A
Explanation:

Web Browser allows programmers to use these all features.

Which of the following is a container?

  1. <select>

  2. <value>

  3. <INPUT>

  4. <BODY>


Correct Option: A
Explanation:

The select tag is the container tag, we use <SELECT> ……. </SELECT> tags to create a pull-down menu inside a form. To create a pull-down menu we insert the <SELECT> tags between the <Form> tags. Whereas <Body> tag is used to display the body or matter on the page and <INPUT> and <VALUE> tags are not container tags.

What is a DOM?

  1. Document model, a specification

  2. Document object model, a parser

  3. Dom is coding style.

  4. None of these


Correct Option: B
Explanation:

DOM is a parser. XML parsers, also called as XML processors provide a standard API to navigate and manipulate XML documents and it is not a specification or a coding style.

<_Person> or <123 person>, which is a valid name?

  1. <_Person>

  2. <123 person>

  3. Both 1 and 2

  4. None of these


Correct Option: A
Explanation:

<- Person> is the only valid name as it starts with underscore and does not contain any numbers.

The latest HTML standard is

  1. XML

  2. SGML

  3. HTML 4.0

  4. XHTML 1.0


Correct Option: D
Explanation:

The latest HTML standard is XHTML 1.0, as it is released after all the standards given are older.

HTML is not a programming language, because

  1. it is a scripting language.

  2. as it contains ordinary text, symbol and markup language tags.

  3. both 1 and 2

  4. none of these


Correct Option: B
Explanation:

As it contains ordinary text, symbol and markup language tags, HTML is not a programming language.

Can XML be used as a database?

  1. Yes

  2. No

  3. XML is not a database, it is a language

  4. None of these


Correct Option: B
Explanation:

XML cannot be used as database, as it does not contain any database functionality.

After what is the body tag usually used?

  1. Title tag

  2. Head tag

  3. EM tag

  4. Form tag


Correct Option: B
Explanation:

The Body tag is usually used after Head tag because Head tag is used for Header after header, then comes Body.

The common element which describes the web page is

  1. heading

  2. paragraph

  3. list

  4. all of these


Correct Option: D
Explanation:

The heading, paragraph and list, all these are the common elements to describe the webpage.

What is Character Encoding?

  1. Method used to represent numbers in a character.

  2. Method used to represent characters in a number.

  3. There is no method as character encoding.

  4. None of these


Correct Option: A
Explanation:

The character encoding in XML is the method used to represent numbers in a character. 

Are the tags elements in XML case - sensitive?

  1. No

  2. Yes

  3. They are browser dependent.

  4. None of these.


Correct Option: B
Explanation:

Yet they are case- sensitive. The tags elements in XML are case - sensitive and they are browser independent.

How many root elements can an XML document have?

  1. One

  2. Two

  3. Three

  4. As many as the memory provides


Correct Option: A
Explanation:

An XML document can have only one root element called as document element.

Do DTD's follow the inheritance principle?

  1. No

  2. Yes

  3. DTD's are recommendation only

  4. None of these


Correct Option: A
Explanation:

DTD's do not follow the inheritance principle, as they do not form any relationship. So other options are wrong.

What is the mechanism by which a computer obtains an internet address?

  1. Reverse Address Resolution protocol (RARP)

  2. Address Resolution Protocol (ARP)

  3. Dynamic host configuration protocol (DHCP)

  4. Internet protocol (IP)


Correct Option: A
Explanation:

RARP is the protocol, which is used to obtain the internet address for a computer, whereas ARP is used in a LAN to determine a destination computer's hardware address.

What is the correct HTML for creating a hyperlink?

  1. <a url = "http:www.company.com"> company.com </a>

  2. <a> http://www.company.com </a>

  3. <a href = “http://www.company.com> Company </a>

  4. <a name = http://www.company.com? Company.com<(a)>


Correct Option: C
Explanation:

<a href = http://www.company.com> company </a> the format is only correct to create a hyperlink. Because we use <a href = “Link”> link name</a> URL to be displayed on browser. Standard tag to make the text as hyperlink, whereas < a url > and <a> and <a name> are invalid tags.

- Hide questions