0% found this document useful (0 votes)
31 views10 pages

Web Tech MCQ1

Uploaded by

atul916201
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views10 pages

Web Tech MCQ1

Uploaded by

atul916201
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

WEB TECHNOLOGY

1. Which of the following


options is correct with
regard to HTML?

(a) It is a modelling language


(b) It is a DTP language
(c) It is a partial programming language
(d) It is used to structure web documents

2. When trying to access a


URL, the following message
is displayed on the browser:
Server; Error 403
What could be the reason for the message?

(a) The requested HTML file is not available


(b) The URL refers to a CGI script
and the header of the script does not
indicate where the interpreter is
located
(c) The path to the interpreter of the script file is invalid
(d) The requested HTML file has
insufficient permission.

3. Which of the following


statements is incorrect
regarding multimedia on the
web?

(a) The MPEG, AIFF and WAV are cross-platform formats


(b)The MPEG, AU and MIDI are cross-platform formats
(c)The SND format has a relatively low fidelity
(d)VRML can be used to model and display 3D interactive graphics
4. HTTPs stands for:-

(a) Hyper Text Transfer Protocol Secure


(b) Hyper Text Transfer Protocol Standard
(c) High Text Transfer Protocol Secure
(d) Hyper Text Test Protocol Secure

5. XML Stands for:-

(a) Extensible Markup language


(b) Extensible Mask Language
(c) Extented Markup language
(d) Extension of Markup langauge

6. Which of the following


statement is not true
regarding JavaScript?

(a) JavaScript is a loosely typed language


(b) JavaScript is not an object-based language
(c) JavaScript is event driven
(d) JavaScript can not run in stand-alone mode (without a
browser).
7.
The following statements
are about three important
browser objects in
JavaScript.

I. window object : The highest of all


objects in the client- side JavaScript
object hierarchy.
II. navigator object : A collection of
information about the browser.
Useful in browser sniffing.
III. document object : Provides
access to the document being
viewed.
Which of the above statements is/are true?

(a) Only (I) above


(b) Only (III) above
(c) Both (I) and (II) above
(d) All (I), (II) and (III) above.
8. Which of the following
statements is false
regarding “Cookies”?
(a) Cookies are programs which
run in the background of the web-
client
(b) Cookies have the potential of
being used to violate the privacy of
users
(c) Cookies are very helpful in
keeping track of users in developing
online shopping cart applications,
personalized portals and in
advertising on web sites
(d) Cookies cannot contain more than 4Kb of data

9. Which of the following


statements is true
regarding HTTP?

(a) Web browsers use only HTTP as a


communication protocol with serers
(b) It does not maintain any
connection information on
previous transactions
(c) It refers to resources using their Universal Resource
Identifier(URI)
(d) It does not carry browser information to the server.

10. Which of the following is true about XHTML?

(a) It is a new hybrid technology that is


different from both XML and HTML
(b) It has totally replaced HTML as the tool for building Web
pages
(c) It is a reformulation of HTML in XML
(d) One cannot use it to create Web pages
11. While working on a
JavaScript project, in your
JavaScript application,
which function would you
use to send messages to
users requesting for text
input?

(a) Display()
(b) Prompt()
(c) Alert()
(d) GetInput()

12. Which of the following


is true about client-side
script use in HTML
documents?
(a) Java, JavaScript, Jscript and
VBScript are used on many web
sites as Scripting languages
(b) Client side scripts are executed
on the server and the resulting page
will be downloaded and
interpreted by the browser
(c) Client-side scripts increase the
network traffic on execution of the
script
(d) Client-side scripts can perform
many functions such as data
validation and provide interactive
feedback to the user
13. Which property does
one use to align text to the
right side of a block-level
element in Cascading Style
Sheets?

(a) horizontal-align
(b) align
(c) block-align
(d) text-align.

14. Which of the following


statements is false about
event handlers in
JavaScript?

(a) They can be included with input tags


(b) They can be associated with end
of file processing for a database
application
(c) They can be included with the form tag
(d) They are generally used to call functions when triggered

15. What method is used to


specify a container’s layout
in JSP?

(a) setLayout()
(b) Layout()
(c) setContainerLayout()
(d) ContainerLayout()
16. Which method of the
Component class is used to
set the position and size of
a component in JSP?

(a) setSize()
(b) setBounds()
(c) setPosition()
(d) setPositionSize()

17. What value does


readLine() return
when it has reached
the end of a file in
JSP?

(a) Last character in the file


(b) False
(c) Null
(d) EOF
18. Which class in
JSP provides the
capability to
implement a
growable array of
objects?
(a) Array class
(b) GrowAbleArray class
(c) Container class
(d) Vector class

19. In JSP, the classes


that allow primitive
types to be accessed as
objects are known as

(a) Primitive classes


(b) Object classes
(c) Boxing classes
(d) Wrapped classes.

20. In JSP, a Canvas object


provides access to a
Graphics object via one of
its method called:

(a) getCanvas()
(b) getGraphics()
(c) paint()
(d) accessGraphics().
21. In ASP the function
which returns the current
system date is:

(a) getDate()
(b) Date()
(c) Now()
(d) getCurrentDate()

22. In ASP the function


which returns an
expression formatted as
a date or time is:

(a) FormatDateOrTime()
(b) FormatDateAndTime()

(c) FormatTimeDate()
(d) FormatDateTime()

23. The function returns a


Boolean value that
indicates whether a
specified expression can
be evaluated as a number;
in ASP is

(a) IsNumeric()
(b) IsNumber()
(c) IsNotNumeric()
(d) IsNotNumber()
24. Main difference between

HTML and XML is:-

(a) HTML has predefined tags and XML has self describing tags
(b) Both have self describing tags
(c) Both have predefined tags
(d) None of the above

You might also like