Database Questions and Answers – Web Fundamentals

This set of Database Multiple Choice Questions & Answers (MCQs) focuses 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/
View Answer

Answer: a
Explanation: 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
View Answer

Answer: d
Explanation: 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
View Answer

Answer: b
Explanation: 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.
advertisement
advertisement

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
View Answer

Answer: c
Explanation: 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
View Answer

Answer: c
Explanation: 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
View Answer

Answer: a
Explanation: 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) <meta>…</meta>
b) <meta…./>
c) <metadata>…</metadata>
d) <metadata name=”” />
View Answer

Answer: b
Explanation: Meta data is the data about data which is included in the meta data tag.
advertisement

8. Html code contains:
a) Tags
b) Attributes
c) Elements
d) All of the mentioned
View Answer

Answer: d
Explanation: <> are tags,size is a attribute.

9. Html document must always be saved with:
a) .html
b) .htm
c) .doc
d) Both .html & .htm
View Answer

Answer: d
Explanation: .doc is used only for the word document format.
advertisement

10. How many levels of headings are in html:
a) 2
b) 7
c) 6
d) 4
View Answer

Answer: c
Explanation: The heading levels are h1,h2,h3,h4,h5,h6.

Sanfoundry Global Education & Learning Series – Database Management System.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.