Job Saarnee

JOB SAARNEE

Top Most Platform for Job Updates O Level Results Answer keys AKTU MCQs

Web Technology 99+ Top Most Important MCQ part3

 Web Technology 99+ Top Most Important MCQ

WEB TECHNOLOGY MCQ – Multiple Choice Questions and Answers on topic related to Web Technology Given below some important MCQ questions on WEB TECHNOLOGY (Objective type, Multiple Choice) Question and Answer, from where you can sharpen your knowledge on WEB TECHNOLOGY. There are some questions on Java, JavaScript, CSS, JSP, Java servlet, Java Beans. This online WEB TECHNOLOGY test will introduce you to some advanced aspect of WEB TECHNOLOGY related code. As a whole these questions on WEB TECHNOLOGY will improve your understanding of the subject. Cascading Style Sheets, that is used with HTML code to design an interesting webpage. WEB TECHNOLOGY lets us control the look and feel of a web page. If you attempt all questions, you will definitely learn how to use Web Technology with some new aspect of WEB TECHNOLOGY. It will be helpful if you practice these concept of WEB TECHNOLOGY practically then it will prepare you for online Web Technology MCQ aptitude test of job interview, written test as well as practical tests.

Here you will find a list of common important questions on Web Technology in MCQ quiz style with answer for competitive exams and interviews. These frequently asked sample questions on WEB TECHNOLOGY are given with correct choice of answer that you can check instantly. Presently we have added total 100 questions on Web Technology for you to practice rest will present in the second part. We will keep adding more questions and provide this question bank in PDF format, so that you can download them instantly in E-book style.

MCQ Related to XML

Q1. XML is way of_______

a) transferring data

b) Storing Data

c) Both a and b

d) None of the above

Sol. c) Both a and b


Q2. XML is the subset of____

a) HTML

b) SGML

c) Java Script

d) None of the above

Sol. b) SGML


Q3. Which of the following is not a markup language, but a language for defining Markup language 

a) HTML

b) SGML

c) DHTML

d) None of the above

Sol. b) SGML


Q4. The task of developing DTD depends on What you want to do with________

a) information

b) Data

c) Web

d) None of the above

Sol. b) Data


Q5. XMLdso stands for

a) Extensible Markup Language data source object

b) Extended Markup Language data source orientation

c) Extensible Markup Language data subject object

d) Extensible Markup Language date source object

Sol. a) Extensible Markup Language data source object


Q6 Which of the following refers to the name of the data source object

a) DATASRC

b) DATAFLD

c) both a and b

d) None of the above

Sol. a) DATASRC


Q XSL stand for 

a) SML style language

b) extended style sheet

c) extensible style sheet

d) None of the above

Sol. c) extensible style sheet


Q DOM stands for 

a) Document Object model

b) Document Objective Menu

c) Document Object Model

d) None of the above

Sol. a) Document Object model


Q which of the following is used to process XML data

a) DOM

b) SAX

c) both a and b

d) None of the above

Sol. c) both a and b


Q Which of the following is event driven interface

a) DOM

b) SAX

c) both a and b

d) None of the above

Sol. b) SAX


Q Which of the following is interface Oriented API

a) DOM

b) SAX

c) both a and b

d) None of the above

Sol. a) DOM


Q which of the following provide a call back interface

a) DOM

b) SAX

c) both a and b

d) None of the above

Sol. a) SAX


Q XSD stands for

a) XML Schema definition

b) XML serial Data

c) XML Standard Definition

d) XNL Standard data

Sol. a) XML Schema definition


Q What is the correct Syntax of Declaration which define the XML version

a) <xml version=”2.3″/>

b) <?xml version=”2.3″?>

a) <?xml version=”2.3″/>

a) <%xml version=”2.3″/>

Sol. <?xml version=”2.3″?>


Q Which of the following Statement is True about XML

a) All XML must have closing tag

b) All the element must be lower case

c) All XML document must have DTD 

d) All of the above

Sol. a) All XML must have closing tag

Explanation: it is not necessary that XML must have DTD. when you are working with small XML files, than it is easy to understood the structure of XML. Element must be in lower case.


Q Which of the following is case sensitive

a) HTML

b) XML

c) Both XML and HTML

d) None of the above

Sol. b) XML

Explanation: because in this we are making use of user defined tag


Q It is easier to Process XML than HTML

a) True

b) False

c) Some time

d) None of the above

Sol. a) True

because it does not have fixed structure like HTML


Q Which of the following Supports XML

a) Internet explorer 5.5

b) Netscape  4.7

c) Real player

d) Both a and b

Sol. d) Both a and b


Q Kind of parser are

a) well-formed

b) well-documented

c) non-validating and validating

d) none of the above

Sol. c) non-validating and validating

Q Well formed XML Document means 

a) it contain a root element

b) it contain an elements

c) it contain one or more elements

d) must contain one or more elements and a root element that contain all other elements

Sol. d) must contain one or more elements and a root element that contain all other elements

Q Does XML replace HTML

a) No

b) Yes

Sol. No

Q Which of the following has fixed Format

a) HTML

b) XML

c) both a and b

d) none of the above

 Sol. a) HTML

Q Comments in XML document is given by

a) <?____>

b) <!_____!>

c) <!______>

d) </_____>

Sol <!______>

Q When processing an Output XML, “New Line” Symbol

a) are Converted to single LF symbol

b)  are Converted to single CR symbol

c) are copied into out put “as is” “CR+LF” for windows, CR for Macintosh LF for Unix

d) are discarded 

Sol. c) are copied into out put “as is” “CR+LF” for windows, CR for Macintosh LF for Unix

Q Which of the following strings are a Correct XML name

a) #myElement

b) my Element

c) _myElement

d) None of the above

Sol. c) _myElement

Name Rules in XML is as following

  • Name should consist of at least one letter a to z or A to Z
  • if the name contain more than one character it may start with in an underscore (_) or a colon (:)
  • the underscore can be followed by one or more letters, digits  hyphens
Q Which of the following XML fragments are well-formed
a) <?xml?>
b) <?xml version=”1.0″ ?>
c) <?xml encoding=”JIS”>
d) <?xml encoding=”JIS” version=”1.0″>

Sol. b) <?xml version=”1.0″ ?>

Q Which of the following are predefined attribute
a) xml: lang
b) xml: space
c) both a and b
d) None of the above

Sol. c) both a and b

Q Kind of parser are
a) Well formed
b) validating
c) non validating
d) Both b) and c)

Sol. d) Both b) and c)

Q valid XML document means 
a) the document has  root elements
b) the document contain at least one or more root elements
c) the XML document has DTD associated with it and it complies with that DTD
d) Each element must nest inside any enclosing element properties.

Sol. c) the XML document has DTD associated with it and it complies with that DTD

Q There are following way of describing XML
a) using DTD
b) using XSL
c) using description node
d) both DTD and Description Node

Sol. d) both DTD and Description Node

Q What is the full form of DTD  
a) Direct Type Definition 
b) Document type Definition
c) Do the documentation 
d) Dynamic type Definition

Sol. b) Document type Definition

Q DTD include specification about markup that can be used in documentation except 
a) entity declaration
b) element declaration
c) name of browser
d) the of element name

Sol. c) name of browser

Q Which of the following XML document are well formed
a)</first Element> some text </second element> more text <second element> <first Element>
b)<first Element> some text </first Element><second element> more text </second element> 
c)<first Element> some text <second element> more text </first Element> </second element> 
d)<first Element> some text <second element> more text </second element> </first Element>

Sol d)<first Element> some text <second element> more text </second element> </first Element>

Q Which of the following XML fragment are well formed
a) <element name Attribute=”value”/>
b) <element name Attribute=value/>
c) <element name Attribute=’value’>
d) <element name Attribute=”value’/>

Sol. a) <element name Attribute=”value”/>

Q How we can make attribute having multiple values
a) <element name Attribute=”value1 value2″/>
b) <element name Attribute=”value1″ Attribute=”value2″/>
c) <element name Attribute=”value1,value2″/>
d) Attribute cant have multiple values

Sol. d) Attribute cant have multiple values

Q the use of DTD in XML development
a) Required when validating XML documents
b) no longer needed
c) used to perform direct conversion
d) Good guide to populate templates to be filled when generating XML documents

Sol. a) required when validating XML documents  

Q Parameter entities can used within
a) a XML file
b) a DTD file
c) a XSL file
d) Both a) and b)

Sol. b) a DTD file
 
Q Attribute standalone=”no” should be included in XML declaration if a document 
a) is linked to external XSL
b) Has general reference
c) has processing instruction
d) has an external DTD

Sol. d) has an external DTD

Q In XML
a) the External DTD subset is read before internal DTD
b) the Internal DTD subset is read before external DTD  
c) there is no external type of DTD
d) there is no internal type of DTD

Sol. b) the Internal DTD subset is read before external DTD 

Q Which of the following list are disadvantage of DTD
1. DTDs are extensible
2. DTDs are not in to the support for namespaces
3. there is no provision for inheritance from one DTDs to another

a) 1 is correct 
b) 1,2 is correct
c) 2,3 is correct
d) 1,2,3 is correct

Sol. c) 2,3 is correct

Q which of the following is correct syntax to use external DTD

a) <xml version=”1.0″ standalone=”yes”?> <! DOCTYPE document system “test.dtd” ?> 
a) <?xml version=”1.0″ standalone=”no”?> <! DOCTYPE document “test.dtd” ?> 
c) <?xml version=”1.0″ standalone=”yes”?> <! DOCTYPE document system “test.dtd” ?> 
d) <?xml version=”1.0″ standalone=”no”?> <! DOCTYPE document system “test.dtd” ?> 

Sol. d) <?xml version=”1.0″ standalone=”no”?> <! DOCTYPE document system “test.dtd” ?> 

Q Right syntax to add attribute named type to <student> tag the syntax will be

a) <student attribute Type=”PC type”>
b) <student  Type attribute=”PC type”>
c) <student Type attribute_type=”PC type”>
d) <student Type=”PC type”>

Sol. a) <student attribute Type=”PC type”>

Q The Syntax for parameter entity is
a) <! Entity % Name Definition>
b) <Entity % Name Definition>
c) <! Entity $ Name Definition>
d) <! Entity & Name Definition> 

Sol. a) <! Entity % Name Definition>

Q Which of the following is correct syntax to name schema using name attribute
a) <schema name_attribute=”name”>
b) <schema nameattri=”name”>
c) <schema name=”name”>
d) <schema attribute=”name”>

Sol. c) <schema name=”name”>


MCQ related to Java Script

Q Which of the following is top level object in JavaScript hierarchy   
a) Document Object
b) History Object
c) Window Object
d) Button Object

Sol. c) Window Object

Q Which of the following is the object that contain content of Page
a) Document Object
b) History Object
c) Window Object
d) Button Object

Sol. a) Document Object

Q Which of the following returns all the named frame in the window
a) Table
b) Frame
c) Frames[]
d) List

Sol. c) Frames[]

Q Which of the following object is an object wrapper for a Boolean value n JavaScript.
a) Boolean
b) Bool
c) True
d) False

Sol. a) Boolean

Q Which of the following Object is used to store a set of values in a single variable name
a) LIST
b) TABLE
c) ARRAY
d) None of the above

Sol. c) ARRAY

Q Which of the following Object is used to Work with Dates and Time
a) LIST
b) TABLE
c) ARRAY
d) DATE

Sol. d) DATE

Q Which of the following removes focus from current window
a) Blur ()
b) Alert ()
c) Focus()
d) None of the above

Sol. a) Blur ()

Q Which of the following set focus to the current window
a) Blur ()
b) Alert ()
c) Focus()
d) None of the above

Sol. a) c) Focus()

Q Which of the following moves a window to specific position
a) moveby()
b) moveTo()
c) moveFrom()
d) None of the above

Sol. b) moveTo()

Q Which of the following function joins two or more arrays 
a) join()
b) add()
c) concat()
d) None of the above

Sol. c) concat()

Q Which of the following function method returns an array as a string
a) join()
b) add()
c) concat()
d) None of the above

Sol. a) join()

Q Which of the following function copies array elements to another position in an array and overwriting the existing values.

a) copyWithin()
b) fill()
c) lastIdexof()
d) pop()

Sol. a) copyWithin()

Q Which of the following return the selected element form the exiting array
a) slice()
b) sort()
c) cut()
d) None of the above

Sol. a) slice()

Q Inside which element Element we put JavaScript
a) <scripting>
b) <script>
c) <JS>
d) <JavaScript>

Sol. b) <script>

Q Which of the following Correct way to write “Hello friend” in Java script
a) “Hello friend”
b) response.write(“Hello Friend”)
c) (“Hello friend”)
d) document.write(“Hello Friend”)

Sol. d) document.write(“Hello Friend”)

Q where is the right place to put java script
a) in Header section
b) in Body section
c) in Header and Body Section Both
d) None of the above

Sol. c) in Header and Body Section Both

Q What is the correct way to refer external Java Script
a) <script name=”doc.js”>
b) <script href=”doc.js”>
c) <script src=”doc.js”>
d) None of the above

Sol. c) <script src=”doc.js”>

Q An External JavaScript must contain the <script> tag
a) True
b) False

Sol. a) True

Q How do you write “Hello Friend” in an Alert Box
a) msgBox(“Hello Friend”)
b) alertBox(“Hello Friend”)
c) alertBox=”Hello Friend”
d) alert(“Hello Friend“)

Sol. d) alert(“Hello Friend“)

Q How do you create a function?
a) function my_Function()
b) function = my_Function()
c) function : my_Function()
d) None of the above

Sol. a) function my_Function()

Q How do you write a conditional statement for executing some statements only if “i” equal to 5
a) if(i==5)
b) if(i=5)
c) if (i==5) than
d) if i=5 then

Sol. a) if(i==5)

Q How do you write a conditional statement for executing some statements only if “i” NOT equal to 5
a) if(i!=5)
b) if(i<>5)
c) if (i=!5) than
d) if i<>5 then

Sol. a) if(i != 5)

MCQ Related to RMI

Q An application can register its remote objects with RMI simply naming facility called as  
a) RMI registry
b) RMI
c) Registry
d) None

Sol. a) RMI registry

Q Object with method that can be invoked across Java Virtual Machine are called 
a) Internal Object
b) Local Object
c) Remote Object
d) None of the above

Sol. c) Remote Object

Q A Remote interface extents the interface

a) java.rmi.remote
b) java.rmi.remoteinterface
c) java.rmi
d) None of the above

Sol. a) java.rmi.remote 

Q the client Invokes a method on the _____ which is responsible for carrying out the method invocation on the remote object
a) remote stub
b) local stub
c) java stub
d) None of the above
Sol. a) remote stub

Q A _____________ Specify the method that can be invoked remotely 
a) remote interface
b) local interface
c) remote method
d) None of the above

Sol. a) remote interface
Q. Java Server Pages (JSP) is NOT a technology that lets you mix regular, static HTML with dynamically-generated HTML. 
a) True
b) False

Sol. b) False

Q. JSP simply puts Java inside
a) HTML
b) XML
c) JAVA SCRIPT
d) SGML

Sol. a) HTML

Q. The character sequences, enclose Java expressions, which are evaluated at run time.
a) <$ and $>
b) <# AND #>
c) <%= and %>
d) None

Sol. c) <%= and %>

Q. The block of code present in
a) ‘scriptlet”.
b) Declarative
c) Directive
d) None

Sol. a) ‘scriptlet”.

Q. The JSP “request” variable is used to obtain information from the request as sent by the browser.
a) True
b) False

Sol.a) True

Q. JSP tags can NOT have a “start tag”, a “lag body and an “end tag”.
a) True
b) False

Sol. True

Q The end starts with a / character after the < character. The tag names have an embedded colon character in them, the part before the colon describes the type of the tag. 
a) True
b) False

Sol. b) False

Q Predefined tags start with jsp
a) %
b) #
c) : 
d) None

Sol. a) %

Q. Variables you declare inside scriptlets are
a) <% int i = 45; %> 
b) <!% int i = 45; %> 
c) <$ int i = 45; $> 
d) None

Sol. (b) <!% int i = 45; %> 

Q. JSP directives are
a) Page directive 
b) Include directive 
c) Taglib directive 
d) All of the Above

Sol. d) All of the Above

Q Which of the following is a JSP directives will be used to include other files into the current jsp pag.
a) Page directive 
b) include directive
c) Taglib directive 
d) None of the above

Sol. b) include directive

Q. An error page can also be displayed using the Which jsp directive
a) Page directive 
b) Include directive 
c) Taglib directive 
d) None of the above


Sol. a) Page directive 


Q. The autoflash cannot be set to false when buffer is set to more

a) true
b) faise

Sol. a) true


Q. The <%@Page%> directive applies to an entire jsp file and any of its static include files, which together are called a

a) Session unit
b) Translation unit
c) Application unit 
d) Unit

Sol. b) Translation unit


Q. _________ action is used to provide other tags additional information in the form of values

a) <jsp param> 
b) <jsp:include?
c) <sp forward> 
d) none of the above

Sol. a) <jsp param> 

Q. <jsp: include> action allows a ___________ resource to be included in the JSP at request time.
a) static
b) dynamic 
c) static or dynamic
d) none


Sol. c) static or dynamic

Q._______ is complimentary to get property
a) getProperty
b) none
c) setProperty
d) getString

Sol. a) getProperty


Q. The JSP model revolves arounds 

a) ASP
b) beans
c) EJB
d) None of the above


Sol. b) beans

Q. What differentiates Beans from typical Java classes is
a) Design time
b) Introspection
c) Runtime
d) Libraries

Sol. b) Introspection

Q. The application assembly is referred to as
a) Design time
b) Introspection
c) Runtime
d) Libraries

Sol. a) Design time


Q. ___________allowing a user to alter the appearance and behavior of a bean
a) Events
b) Introspection
c) Customization
d) none

Sol. c) Customization


Q. ________allowing beans that have been customized in an application builder to have their state saved and restored.
a) Persistence
b) Events
c) Customization
d) None

Sol. a) Persistence

Q. It’s important that you install the JDK before the BDK because it has all the core support required of the BDK.

a) True
b) False
Sol. a) True

Q. The standard method of distributing beans involves packaging them into compressed archives called JAR (Java ARchive) files. 
a) True
b) False
Sol. a) True


Q. JAR files use a compression scheme based on the one used in ZIP files.

a) True
b) False
Sol. a) True


Q. _____________can run in any application server that implements the EJB specifications.

a) JSP
b) EJB
c) ASP
d) JDBC
Sol. b) EJB


Q. Enterprise JavaBeans (EJB) is a comprehensive technology that provides the infrastructure for building enterprise-level server-side distributed Java components.

a) True
b) False
Sol. a) True


Q. To be a servlet, a class should extend 

a) HttpServlet

b) HttpRequest

c) HttpResponse

d) none

Sol. a) HttpServlet


Q. _____  has methods that let you find out about incoming information such as FORM data, HTTP request headers, and the like.

a) HttpServletResponse

b) HttpServletRequest

c) HttpServletConfigure

d) None

Sol. b) HttpServletRequest


Q _______is used to send output back to the client.

a) PrintWriter 

b) ScriptWriter

c) Printin

d) None

Sol. a) PrintWriter 


Q _____ has an excellent mechanism for virtual servers, and it is not necessary to use packages solely to prevent name conflicts with other users.

a) IIS

b) Web Logic

c) IE

d) WebSphere

Sol. d) WebSphere


Q. Use to read incoming HTTP headers (e.g., cookies)

a) cookies

b) “request”

c) read

d) “response”


Sol. b) “request”


Q. Use ________ to specify the HTTP response Line and headers

a) feedback

b) response

c) write

d) none


Sol. b) response


Q. doGet and doPost are called by the service method, and sometimes you may want to override service directly, e.g.. for a servlet that handles both GET and POST request.

a) True

b) False

Sol. a) True

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart

You cannot copy content of this page