Database Multiple Choice Questions on “Web Fundamentals”.
1. Which of the following is a valid uniform resource locator?
a) http://www.acm.org/sigmod
b) www.google.com
c) www.ann.in
d) http:/www.acm.org/sigmod/
Answer: a
Clarification: A uniform resource locator (URL) is a globally unique name for each document that can be accessed on the Web.
2. http://www.google.com/search?q=silberschatz
In the above URL which one is the argument which is used for processing of the URL?
a) google
b) google.com
c) search
d) q=silberschatz
Answer: d
Clarification: Argument is always placed after ? symbol.
3. HTTP defines two ways in which values entered by a user at the browser can be sent to the Web server. The _____ method encodes the values as part of the URL.
a) Post
b) Get
c) Read
d) Argument
Answer: b
Clarification: For example, if the Google search page used a form with an input parameter
named q with the get method, and the user typed in the string “silberschatz” and submitted the form, the browser would request the following URL from the Web server: http://www.google.com/search?q=silberschatz.
4. A __________ is a program running on the server machine, which accepts requests from a Web browser and sends back results in the form of HTML documents.
a) HTML
b) HTTP
c) Web Server
d) Web browser
Answer: c
Clarification: The browser and Web server communicate via HTTP. Web servers provide powerful features, beyond the simple transfer of documents.
5. The application program typically communicates with a database server, through ___________ or other protocols, in order to get or store data.
a) JDBC
b) ODBC
c) All of the mentioned
d) None of the mentioned
Answer: c
Clarification: The common gateway interface (CGI) standard defines how the Web server communicates with application programs.
6. This extra information is usually maintained in the form of a _________ at the client.
a) Cookie
b) History
c) Remainder
d) None of the mentioned
Answer: a
Clarification: A cookie is simply a small piece of text containing identifying information and with an associated name.
7. Which of the following is not true about HTML ?
a)…
b) <meta…./>
c) …
d)
Answer: b
Clarification: Meta data is the data about data which is included in the meta data tag.
8. Html code contains:
a) Tags
b) Attributes
c) Elements
d) All of the mentioned
Answer: d
Clarification: <> are tags,size is a attribute.
9. Html document must always be saved with:
a) .html
b) .htm
c) .doc
d) Both .html & .htm
Answer: d
Clarification: .doc is used only for the word document format.
10. How many levels of headings are in html:
a) 2
b) 7
c) 6
d) 4
Answer: c
Clarification: The heading levels are h1,h2,h3,h4,h5,h6.