Web Technology MCQ
Web Technology MCQ
in
WEB TECHNOLOGY 2020-21
to the Web server. The _____ method a. A URL represents the server a client
encodes the values as part of the URL. wants to make a request to
a. Post b. A URL helps identify the resource a
b. Get client wants to make a request to
c. Read c. URLs help find the fastest route on the
d. Argument network
11. Documents converted to …………… can d. None of the above
be published to the Web. 16. Dynamic web page:
a. .doc file a. Is same every time whenever it
b. http displays
c. machine language b. Generates on demand by a program
d. HTML or a request from browser
12. When sender and receiver of an e-mail are c. Both
on same system, we need only two d. None
a. User Agents 17. Which factor does NOT influence the
b. Servers performance of a webapp?
c. IP a. The browser used to open the webapp
d. Domain by your users
13. A web cookie is a small piece of data. b. The quality of the network between
a. Sent from a website and stored in client and server
user’s web browser while a user is c. The hardware configuration of the
browsing a website server
b. Sent from user and stored in the server d. The browser that you used while
while a user is browsing a website testing and deploying your webapp
c. Sent from root server to all servers 18. Common gateway interface is used to?
d. All a. Generate web pages
b. Generate executable files from web
14. URL stands for? content by web server
a. Unique reference label c. Stream videos
b. Uniform reference label d. All
c. Uniform resource locator
d. Unique resource locator 19. Computer which stores the different web
15. Which of the following statements are pages is called as:
correct? a. Service Provider
b. Web Browser
4 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
c. Web Crawler
d. Web Server 25. The following enables access to computing
resources remotely
20. A __________ is the simplest form of a a. FTP
website, in which the site’s content is b. VPN
delivered without the use of server-side c. Blog
processing. d. Twitter
a. E-Commerce Website
b. Dynamic Websites 26. The following allows an Internet host
c. Social Networking Websites Computer to become a terminal of another
d. Static website host on the Internet
21. Which protocol helps to transfer files a. TELNET
between computers? b. Google Groups
a. FTP c. Microsoft OneDrive
b. HTTP d. None of the above
c. UDP
d. FTTP 27. To which protocol(s) are all hosts on the
ARPANET were switched over from the
22. The values GET, POST, HEAD, etc are older ARPANET protocols
specified in ____ of HTTP message. a. UNIX
a. Request line b. TCP/IP
b. Header line c. SSL
c. Entity body d. SIP
d. Status line
23. DNS is an Internet service that translates 28. Who is the Inventor of the Internet?
domain names to or from: a. Vincent Cerf
a. MAC address b. Bob Kahn
b. IP address c. Both (a) and (b)
c. Both d. None of the above
d. None 29. The following is a collection of
24. FTP stands for interconnected documents and other
a. Food Transfer Program resources
b. File Transfer Protocol a. Web
c. File Transfer Programming b. E-mail
d. Facebook To Python c. Chat
5 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
6 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
41. CIDR stands for 47. The following is like a large notice board
a. Classless Internet Domain Routing a. Newsgroup
b. Classless Inter Domain Routing b. E-mail
c. Classless Inter Domain Router c. Chat
d. Classless Internet Domain Router d. Browsing
48. The following is a page or collection of
42. SMTP stands for web pages designed to create and edit
a. Simple Merge Transfer Protocol contents
b. Simple Manual Transfer Protocol a. Forum
c. Simple Mail Transfer Protocol b. Bulletin Board
d. Separate Mail Transfer Protocol c. Chat
43. The following folder normally stores all d. Wiki
unsolicited e-mails 49. The following is the name of the process of
a. Inbox moving a file from a remote location to
b. Spam another location, sometimes, to your
c. Starred Computer Hard Disk
d. Trash a. Uploading
44. The following software supports instant b. Downloading
messaging service c. Deleting
a. Messenger d. Creating
b. E-mail
c. Only Google 50. The following lists are also called glossary
d. Only Yahoo lists
45. SMS stands for a. Unordered lists
a. Sample Messaging Service b. Ordered lists
b. Simple Messaging Service c. Definition lists
c. Stationary Messaging Service d. Linked lists
d. Small Messaging Service 51. The following tag is supported by
Microsoft Internet Explorer but not by
46. Chat is formally known as Netscape Navigator
a. Asynchronous conferencing a. <marquee>
b. Synchronous conferencing b. <br>
7 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
c. <!–>
d. <p> 56. In java control statements break, continue,
return, try-catch-finally and assert belongs
52. The following is a tool for Web Page to?
Design a. Selection statements
a. Microsoft Expression Web b. Loop Statements
b. Microsoft Word c. Transfer statements
c. Google Sheets d. Pause Statement
d. Adobe Reader
53. TCP/IP stands for 57. Which provides runtime environment for
a. Transfer Control Protocol/Intranet java byte code to be executed?
Protocol a. JDK
b. Transfer Control Protocol/Internet b. JVM
Protocol c. JRE
c. Transmission Control d. JAVAC
Protocol/Internet Protocol
d. Transmission Control 58. What is byte code in Java?
Protocol/Intranet Protocol a. Code generated by a Java compiler
54. The following software allows authoring of b. Code generated by a Java Virtual
programs in identical environments on Machine
either the PC or the Macintosh and produce c. Name of Java source code file
runtimes for either d. Block of code written inside a class
a. Authorware 3
b. Fortran 59. Which of the following are not Java
c. DBase keywords ?
d. Pascal a. double
b. switch
55. Who is known as father of Java c. then
Programming Language? d. instanceof
a. James Gosling 60. Which of these have highest precedence?
b. M. P Java a. ()
c. Charel Babbage b. ++
d. Blais Pascal c. *
d. >>
8 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
65. What is garbage collection in the context of 69. Which of these operators is used to allocate
Java? memory to array variable in Java?
a. Java deletes all unused java files on a. alloc
the system. b. malloc
c. new malloc
d. new
9 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
c. go()
70. Which of these is not a bitwise operator? d. stop()
a. &' Operator
b. &=' Operator 75. What is the full form of JVM ?
c. |=' Operator a. Java Very Large Machine
d. <=' Operator b. Java Verified Machine
c. Java Very Small Machine
71. Which of these is returned by Greater Than, d. Java Virtual Machine
Less Than and Equal To (i.e Relational)
operator ? 76. In Java code, the line that begins with /*
a. Fload and ends with */ is known as?
b. Integer a. Multiline comment
c. Boolean b. Single line comment
d. Double c. Both A & B
d. None of these
72. Which statement transfer execution to 77. Which of the following are not Java
different parts of your code based on the modifiers?
value of an expression? a. Public
a. If b. private
b. Switch c. friendly
c. Nested-if d. transient
d. if-else-if
78. Output of the program
73. What feature of OOP has a super-class sub-
class concept?
a. Hierarchical inheritance
b. Single inheritance
c. Multiple inheritances
a. Compiler Error: Operator >> cannot
d. Multilevel inheritance
be applied to negative numbers
b. 2 2
c. 02
74. Which of the following are not the methods
d. -2 2
of the Thread class?
a. yield() 79. Output of the program
b. sleep(long msec)
10 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
b. Stack
c. Disk
d. File
11 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
c. try
d. None of these
90. Which of these packages contain all the
Java’s built in exceptions?
87. Find the correct statement about Java- a. java.lang
Exception b. java.util
c. java.io
d. java.net
12 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
95. " It causes the currently executing thread a. A class can extends only one
object to pause and allow other threads to another class
execute temporarily". The above statement b. A class can extends multiple
belongs to which JAVA-Thread -Method classes.
activity c. A class can extends multiple
a. yield() interfaces.
b. join() d. An interface can extends multiple
c. suspend() interfaces
d. notify()
100. In java, “this” keyword is used to
a. Pass as an argument to a method.
96. What concepts come under Polymorphism b. Refer current class object.
in java? c. Return current class object.
a. Method overloading d. All are correct
b. Constructor overloading
c. Method overriding
101. Garbage collection in Java is:
d. All the above
a. Unused package in a program
97. Which is runtime polymorphism in Java automatically gets deleted.
oops? b. Memory occupied by objects with
a. Method overriding no reference is automatically
b. Method overloading reclaimed for deletion.
c. Constructor overloading c. Java deletes all unused java files on
d. All the above the system.
d. The JVM cleans output of Java
98. "super" keyword in java is used to
program.
a. Refer immediate parent class
instance variables.
b. Invoke immediate parent class 102. Correct syntax to create Java
methods. package(named as "myPackage")
c. Invoke immediate parent class a. import myPackage;
constructor. b. create package myPackage;
d. All the above c. new package myPackage;
d. package myPackage;
13 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
14 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
c. Panel a. java.awt
d. Frame b. java.Graphics
111. Which is used to store data and partial c. java.awt.Graphics
results, as well as to perform dynamic d. None of the above
linking, return values for methods, and 116. How many ways can we align the
dispatch exceptions? label in a container?
a. Window a. 1
b. Panel b. 2
c. Frame c. 3
d. Container d. 4
112. What are the different types of 117. What will be the output of the
controls in AWT? following Java program?
a. Labels
b. Pushbuttons class main_class
c. Checkboxes {
d. Choice lists public static void main(String args[])
e. All of these {
int x = 9;
113. Give the abbreviation of AWT? if (x == 9)
a. Applet Windowing Toolkit {
b. Abstract Windowing Toolkit int x = 8;
c. Absolute Windowing Toolkit System.out.println(x);
d. None of the above }
}
114. The following specifies the advantages }
of It is lightweight. It supports pluggable a. 9
look and feel. It follows MVC (Model b. 8
View Controller) architecture. c. Compilation error
a. Swing d. Runtime error
b. AWT
c. Both A & B 118. What will be the output of the
d. None of the above following Java program?
115. Which class provides many methods
for graphics programming? class box
15 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
{ d. constructor
int width; 121. Which method can be defined only
int height; once in a program?
int length; a. main method
} b. finalize method
class mainclass c. static method
{ d. private method
public static void main(String args[]) 122. Which of this statement is incorrect?
{ a. All object of a class are allotted
box obj = new box(); memory for the all the variables
obj.width = 10; defined in the class
obj.height = 2; b. If a function is defined public it can be
obj.length = 10; accessed by object of other class by
int y = obj.width * obj.height * inheritation
obj.length; c. main() method must be made public
System.out.print(y); d. All object of a class are allotted
} memory for the methods defined in
} the class
a. 12
b. 200 123. What will be the output of the
c. 400 following Java program?
d. 100
class equality
119. What is the process of defining more {
than one method in a class differentiated by int x;
method signature? int y;
a. Function overriding boolean isequal()
b. Function overloading {
c. Function doubling return(x == y);
d. None of the mentioned }
120. Which of the following is a method }
having same name as that of it’s class? class Output
a. finalize {
b. delete public static void main(String args[])
c. class {
16 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
equality obj = new equality(); 127. What will be the output of the
obj.x = 5; following Java code?
obj.y = 5; class box
System.out.println(obj.isequal()); {
} int width;
} int height;
a. false int length;
b. true int volume;
c. 0 void finalize()
d. 1 {
volume = width*height*length;
System.out.println(volume);
124. Which of the following is a method }
having same name as that of its class? protected void volume()
a. finalize {
b. delete volume = width*height*length;
c. class System.out.println(volume);
d. constructor }
125. Which operator is used by Java run }
time implementations to free the memory class Output
of an object when it is no longer needed? {
a. delete public static void main(String args[])
b. free {
c. new box obj = new box();
d. none of the mentioned obj.width=5;
obj.height=5;
126. Which function is used to perform obj.length=6;
some action when the object is to be obj.volume();
destroyed? }
a. finalize() }
b. delete() a. 150
c. main() b. 200
d. none of the mentioned c. Run time error
d. Compilation error
17 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
18 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
19 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
20 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
21 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
22 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
23 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
14. Markup tags tell the web browser c. HTML, Head, Title, Body
a. The requested HTML file is not 19. How to insert an image in HTML?
b. The URL refers to a CGI script and b. <img url = "jtp.png" />
the header of the script does not c. <img link = "jtp.png" />
d. <img src = "jtp.png" />
24 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
25 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
c. <italic> c. dot
d. <i> d. all of above
40. Choose the correct HTML tag to make a 46. Which tag creates a check box for a form in
text bold? HTML?
a. <b> a. <checkbox>
b. <bold> b. <input type="checkbox">
c. <bb> c. <input=checkbox>
d. <bld> d. <input checkbox>
41. What is the correct HTML for adding a 47. To create a combo box (drop down box)
background color? which tag will you use?
a. <body color=”yellow”> a. <select>
b. <body bgcolor=”yellow”> b. <list>
c. <background>yellow</background> c. <input type="dropdown">
d. <body background=”yellow”> d. all of above
42. Choose the correct HTML tag for the 48. Which of the following is not a pair tag?
smallest size heading? a. <p>
a. <heading> b. < u >
b. <h6> c. <i>
c. <h1> d. <img>
d. <head> 49. To create HTML document you require
43. What is the correct HTML tag for inserting a. web page editing software
a line break? b. High powered computer
a. <br> c. Just a notepad can be used
b. <lb> d. None of above
c. <break> 50. HTML documents are saved in
d. <newline> a. Special binary format
44. What doesvlink attribute mean? b. Machine language codes
a. visited link c. ASCII text
b. virtual link d. None of above
c. very good link 51. The _____ character tells browsers to stop
d. active link tagging the text
45. Which attribute is used to name an element a. ?
uniquely? b. /
a. class c. >
b. id d. %
27 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
28 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
a. All the statements are true 71. DTD includes the specifications about the
b. All XML elements must have a markup that can be used within the
closing tag document, the specifications consists of all
c. All XML elements must be lower case EXCEPT
d. All XML documents must have a DTD
a. the browser name
67. Is it easier to process XML than HTML? b. the size of element name
c. entity declarations
a. Yes d. element declarations
b. No
c. Somtimes 72. The XML DOM object is
d. Cant say
a. Entity
68. Well formed XML document means b. Entity Reference
c. Comment Reference
a. it contains a root element d. Comment Data
29 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
a. Distributed HTML
b. Dynamic HTML
c. Distinct HTML
d. None of these
30 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
switch(expression)
{
statements
}
a. Code-A
a. = = =
b. Code-B
b. equal
c. Both Code-A and Code-B
c. ==
d. Cannot Compare
d. Equals
4. In JavaScript, what is a block of
7. Which of the following variables takes
statement?
precedence over the others if the names
a. Conditional block are the same?
b. block that combines a number of
a. Global variable
statements into a single
b. The local element
compound statement
31 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
c. The two of the above 12. When a user views a page containing a
d. None of the above JavaScript program, which machine
actually executes the script?
8. Which of the following type of a
variable is volatile? a. The User's machine running a
Web browser
a. Mutable variable
b. The Web server
b. Dynamic variable
c. A central machine deep within
c. Volatile variable Netscape's corporate offices
d. Immutable variable d. None of the above
9. Which of the following option is used 13. ______ JavaScript is also called client-
a. Microsoft
a. 00
b. Navigator
b. 0x
c. LiveWire
c. 0X
d. Native
d. Both 0x and 0X
14. __________ JavaScript is also called
10. In the JavaScript, which one of the server-side JavaScript.
following is not considered as an error:
a. Microsoft
a. Syntax error b. Navigator
32 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
a. Return a value
hold the JavaScript version?
27. What is the correct syntax for referring 31. What does the <noscript> tag do?
to an external script called " abc.js"?
a. Enclose text to be displayed by non-
a. <script href=" abc.js"> JavaScript browsers.
b. <script name=" abc.js">
34 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
JavaScript? c. ParseFloat
d. Efloat
a. a low-level programming language.
b. a scripting language precompiled in 39. Which of the following event fires
the browser. when the form element loses the focus:
c. a compiled scripting language. <button>, <input>, <label>, <select>,
d. an object-oriented scripting
<textarea>?
language.
a. onfocus
35. Choose the server-side JavaScript b. onblur
object? c. onclick
d. ondblclick
a. FileUpLoad
b. Function 40. The syntax of Eval is ____
c. File
35 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
a. [objectName.]eval(numeriC. b. dateObjectName.new
b. [objectName.]eval(string) Date([parameters])
c. [EvalName.]eval(string) c. dateObjectName := new
d. [EvalName.]eval(numeriC. Date([parameters])
41. JavaScript is interpreted by _________ d. dateObjectName Date([parameters])
45. The _______ method of an Array
a. Client
object adds and/or removes elements
b. Server
from an array.
c. Object
d. None of the above a. Reverse
42. Using _______ statement is how you b. Shift
test for a specific condition. c. Slice
d. Splice
a. Select
b. If
46. To set up the window to capture all
c. Switch
Click events, we use which of the
d. For
following statement?
a. window.captureEvents(Event.CLICK);
43. Which of the following is the structure b. window.handleEvents (Event.CLICK);
of an if statement? c. window.routeEvents(Event.CLICK );
d. window.raiseEvents(Event.CLICK );
a. if (conditional expression is true)
thenexecute this codeend if
47. Which tag(s) can handle mouse events
b. if (conditional expression is
in Netscape?
true)execute this codeend if
c. if (conditional expression is true) a. <IMG>
{then execute this code>->} b. <A>
d. if (conditional expression is true) then c. <BR>
{execute this code} d. None of the above
44. How to create a Date object in
JavaScript? 48. ____________ is the tainted property of
a window object.
a. dateObjectName = new
Date([parameters]) a. Pathname
b. Protocol
36 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
c. Defaultstatus c. JavaObject
d. Host d. Jobject
49. To enable data tainting, the end user 53. _________ is a wrapped Java array,
sets the _________ environment accessed from within JavaScript code.
variable.
a. JavaArray
a. ENABLE_TAINT b. JavaClass
b. MS_ENABLE_TAINT c. JavaObject
c. NS_ENABLE_TAINT d. JavaPackage
d. ENABLE_TAINT_NS 54. A ________ object is a reference to one
of the classes in a Java package, such as
50. In JavaScript, _________ is an object netscape.javascript .
of the target language data type that
a. JavaArray
encloses an object of the source
b. JavaClass
language.
c. JavaObject
a. a wrapper d. JavaPackage
b. a link
c. a cursor 55. To open a dialog box each time an error
d. a form occurs, which of the following is added
to prefs.js?
51. When a JavaScript object is sent to
a. user_pref("javascript.classic.error
Java, the runtime engine creates a Java
_alerts", true);
wrapper of type ___________
b. user_pref("javascript.classic.error_al
b. JSObject c. user_pref("javascript.console.open_o
d. Jobject d. user_pref("javascript.console.open_o
invoking JavaScript methods and 56. The syntax of a blur method in a button
a. ScriptObject a. Blur()
b. JSObject b. Blur(contrast)
c. Blur(value)
37 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
38 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
67. Which of the following is AJAX? 72. Which of the following makes Ajax
unique?
a. is a program
b. is a country name a. It works the same with all Web
c. is a football club name browsers.
d. All of these b. It works as a stand-alone Web-
68. Which of the following are the features development tool.
of Ajax? c. It makes data requests
asynchronously.
a. Live data binding d. It uses C++ as its programming
b. Declarative instantiation of client language.
components
c. Client-side template rendering 73. _________________ combination of
d. All of the above technologies gives AJAX its name.
39 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
popular. b. JSUnit
c. AjaxJSU
a. IBM d. JSUnitAjax
b. Microsoft 80. In Ajax ______________ready states
c. Sun Micro system are available.
d. Google
a. 4
75. AJAX can work with web application. b. 6
c. 8
a. true d. 2
b. False
79. How can you test the Ajax code? a. Debugging is difficult
40 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
b. Increases size of the requests 89. Which classes are used for connection-
c. Slow and unreliable network oriented socket programming?
connection.
d. All of the mentioned above a. Socket
b. ServerSocket
a. CORS
b. JSONP 90. Which class can be used to create a
c. both 1 & 2 server socket. This object is used to
d. None of the above establish communication with the
clients?
86. What are the technologies used by
Ajax? a. ServerSocket
b. Socket
a. XMLHttpRequest c. Both A & B
b. Cascading Style Sheets (CSS) d. None of the above
c. Extensible HTML (XHTML)
d. All of the above 91. Which methods are commonly used in
87. Show some networking terminologies ServerSocket class?
given below?
a. public OutputStream
a. IP Address getOutputStream()
b. Protocol b. public Socket accept()
c. MAC Address c. public synchronized void close()
d. All mentioned above d. None of the above
88. TCP,FTP,Telnet,SMTP,POP etc. are 92. The URLConnection class can be used
examples of ? to read and write data to the specified
resource referred by the URL?
a. Socket
b. IP Address a. True
c. Protocol b. False
d. MAC Address
41 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
c. IPAddress
93. The java.net.InetAddress class d. None of the choices are correct.
102. A concurrent server can server 107. Java implementation of TCP uses
_____ ___types of socket objects.
43 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
c. Stream
d. None of the choices are correct.
112. How many ports of TCP/IP are
reserved for specific protocols?
a. 10
b. 1024
c. 2048
d. 512
113. Which of these class is used to
encapsulate IP address and DNS?
a. DatagramPacket
b. URL
c. InetAddress
d. ContentHandler
44 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
45 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
46 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
d. None of the above 28. Which of the following EJB has no state?
23. Which session bean does the conversational i. Message-Driven Bean.
state between multiple method calls is not ii. BMP Entity Bean.
maintained by the container? iii. Stateless Session Bean.
iv. Stateful Session Bean.
a. Stateful Session Bean
b. Stateless Session Bean a. Both (I) and (II) above
c. Singleton Session Bean b. Both (II) and (III) above
d. None of the above c. Both (III) and (IV) above
24. EJB technology is built on the top of d. Both (I) and (III) above.
Socket Programming
a. True 29. Which of the following is true for EJB?
b. False
25. Which of the following is not true about a. EJB is server-side component
Java beans? architecture for distributed
a. Implements java.io.Serializable applications in Java
interface b. EJB facilitates scalable, secure and
b. Extends java.io.Serializable class transaction-oriented applications
c. Provides no argument constructor c. EJB supports portability and
d. Provides setter and getter methods for reusability
its properties d. All of the above.
26. Which of the following is the format for
EJB deployment descriptor files? 30. Which of the following EJB type has no
a. XML Remote interfaces?
b. XSL a. Message-Driven Bean
c. HTML b. BMP Entity Bean
d. Java c. Session Bean
27. EJB is a d. Sessionless Bean.
47 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
(b) Consistency
32. Which of the EJB has a passive state in its (c) Isolation
life cycle? (d) Distributed
I. Stateless Session Bean.
II. Message-Driven Bean. 36. Which EJB usually represents persistent
III. BMP Entity Bean. data?
a. Entity Bean
a. Only (I) above b. Stateless Session Bean
b. Only (II) above c. Stateful Session Bean
c. Only (III) above d. Message-Driven Bean
d. Both (I) and (II) above 37. Which is least visibility scope for Java bean
e. Both (II) and (III) above. in JSP?
33. Which part of multi-tier enterprise a. Page
application contains EJB component? b. Session
a. Application Server c. Request
b. Web Server d. Application
c. Database Server 38. Which of the following annotation is used
d. Fat Client to specify or inject a dependency as ejb
e. Thin Client. instance into another ejb?
34. Which of the following distributed object a. javax.ejb.Stateless
technology is/are not included in Java? b. javax.ejb.Stateful
I. CORBA. c. javax.ejb.MessageDrivenBean
II. DCOM. d. javax.ejb.EJB
III. RMI. 39. The EJB specification architecture does
IV. EJB. NOT define
a. transactional components
a. Only (I) above b. client side security and encryption
b. Only (II) above c. distributed object components
c. Only (III) above d. server-side components
d. Only (IV) above 40. Which case of a session bean obtains the
e. All (I), (II), (III) and (IV) above. UserTransaction object via the EJBContext
using the getUserTransaction() method in
35. Which of the following is not a property of EJB transaction management?
EJB transaction? a. Bean-managed transactions
(a) Atomicity b. Container-managed transactions
48 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
49 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
54. Where is metadata stored in MySQL? 59. Which JDBC driver Types are for use over
a. In the MySQL database metadata communications networks?
b. In the MySQL database metasql a. Type 3 only
c. In the MySQL database mysql b. Type 4 only
d. None of the above is correct. c. Both Type 3 and Type 4
d. Neither Type 3 nor Type 4
55. Which JDBC driver Type(s) can be used in
either applet or servlet code? 60. JDBC stands for:
a. Both Type 1 and Type 2 a. Java Database Connectivity
b. Both Type 1 and Type 3 b. Java Database Components
c. Both Type 3 and Type 4 c. Java Database Control
d. Type 4 only d. None of the above is correct.
61. Which of the following is correct about
56. What MySQL property is used to create a Statement class of JDBC?
surrogate key in MySQL? a. Statement encapsulates an SQL
a. UNIQUE statement which is passed to the
b. SEQUENCE database to be parsed and compiled.
c. AUTO_INCREMENT
50 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
51 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
52 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
8. Which of the following is true about 11. Connection Pooling Class manages no of
servlets? user requests for connections to improve the
a. Servlets execute within the address performance.
space of web server a. True
b. Servlets are platform-independent b. False
because they are written in java 12. Which object of HttpSession can be used
c. Servlets can use the full functionality of to view and manipulate information about a
the Java class libraries session?
d. Servlets execute within the address a. session identifier
space of web server, platform b. creation time
independent and uses the c. last accessed time
functionality of java class libraries d. All mentioned above
13. Using mail API we cannot send mail
9. How is the dynamic interception of requests from a servlet.
and responses to transform the information a. True
done? b. False
a. servlet container
b. servlet config 14. Which class provides stream to read binary
c. servlet context data such as image etc. from the request
d. servlet filter object?
53 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
54 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
55 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
56 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
46. State whether the following statements 49. State whether the following statements
about the methods provided by HTTP about the interfaces included in the servlet
servlet response are True or False. API are True or False.
i) The addCookie method must be called i) The HttpServletRequest provides access to
before the response is committed so that the an input stream and so allows the servlet to
appropriate headers can be set. read data from the client.
ii) Further output should be made by the ii) The HttpServletResponse provides access
servlet after calling the sendError method. to an output stream and so allows the servlet to
a. i-True, ii-True send data to the client.
b. i-True, ii-False a. i-True, ii-True
c. i-False, ii-True b. i-True, ii-False
d. i-False, ii-False c. i-False, ii-True
47. Which of the following are the methods of d. i-False, ii-False
cookies that are used for section tracking. 50. State whether the following statements
i) getMaxAge() about the GET method are True.
ii) getValue() i) In the GET method entire form submission
iii) getDate() can be encapsulated in one URL.
a. i and ii only ii) The query length is limited to 256
b. ii and iii only characters.
57 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
iii) The data is submitted as a part of the URL. 54. Which of the following are the life cycle
a. i and ii only method of jsp?
b. ii and iii only a. jspInit()
c. i and iii only b. _jspService()
d. All i, ii and iii c. jspDestroy()
d. All of the above
51. State whether the following statements
about the POST method are True or False. 55. Request processing of JSP is done by
i) In the POST method, data is submitted calling which method?
inside the body of the HTTP request. a. jspInit()
ii) Here the data is visible on the URL and less b. _jspService()
secure. c. jspDestroy()
a. i-True, ii-True d. _jspRequest()
b. i-True, ii-False
c. i-False, ii-True 56. Which of the following method helps in jsp
d. i-False, ii-False page initialization?
52. What is full form of JSP? a. jspInit()
a. Java Service Provider b. _jspService()
b. Java Service Pages c. jspDestroy()
c. Java Server Provider d. init()
d. Java Server Pages 57. Which of the following is correct about
53. Which of the following is true about JSP? JSP?
1. JSP page is translated into Servlet.
1.JSP technology is used to create web 2. JSP translator is a part of the web server
application. which is responsible for translating the JSP
2. The JSP pages are not easier to maintain page into Servlet.
than Servlet. a. only 1
3. JSP page consists of HTML tags and JSP b. only 2
tags. c. Both 1 & 2
a. 1&2 d. None
b. 1 & 3 58. Which of the following folder in JSP
c. 2&3 project contains web.xml file?
d. All of the above a. META-INF
b. WEB-INF
c. context-root
58 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
59 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
69. The ________ object is created by the web 74. Which of the following is/are jsp action
container for each jsp page. tags?
a. application a. jsp:getProperty
b. config b. jsp:plugin
c. exception c. jsp:fallback
d. All of the above d. All of the above
70. This object can be used to get initialization 75. ______ action tag helps embeds another
parameter from configuaration file components such as applet.
(web.xml) a. jsp:plugin
a. config b. jsp:config
b. application c. jsp:setProperty
c. session d. jsp:fallback
d. request 76. <%@ page ... %>
71. Which of the following is not a jsp directive Above jsp element defines page-dependent
element? attributes, such as:
a. page directive a. scripting language
b. include directive b. error page
c. taglib directive c. buffering requirements
d. session directive d. All of the above
72. The pageContext object can be used to set or 77. <%@ include ... %>
get or remove attributes from which of the This jsp element helps to:
following scopes a. Includes a file during the translation
a. request phase
b. session b. Includes plugins during the translation
c. application phase
d. All of the above c. Declares a tag library, containing
custom actions, used in the page
73. Which of the following is not a jsp action d. there is no such jsp element available
tag?
60 University Academy
www.aktutor.in
WEB TECHNOLOGY 2020-21
78. <%@ taglib ... %> b. A JSP page can be sent as-is to the
above jsp element is used to: browser
a. Declare a tag library used in the page c. The JSP container is often
b. Declare scripting language implemented as a servlet configured to
handle all requests for JSP pages.
c. Declare error page d. A JSP container is responsible for
d. All of the above converting the JSP page into a servlet
79. Which of the following jsp element makes a 83. The difference between Servlets and JSP is
JavaBeans component available in a page? the …………….
a. jsp:useBean element a. Translation
b. jsp:getProperty element b. Compilation
c. jsp:include element c. Syntax
d. jsp:plugin element d. Both A and B
84. Which attribute specifies a JSP page that
80. Gets a property value from a JavaBeans should process any exceptions thrown but
component and adds it to the response in jsp not caught in the current page?
a. jsp:getProperty element a. The ErrorPage Attribute
b. jsp:setProperty element b. The IsErrorPage Attribute
c. jsp:param element c. Both A & B
d. jsp:includeProperty element d. None of the above
81. Which of the following are scopes provided
by jsp:
a. Page, Request, Session, Global-
Session
b. Page, Request, Session, Application,
Global-Session
c. Page, Request, Session, Application
d. Page, Request, Session, Application,
Response
82. Which of the following is not correct
statement related to jsp?
a. A JSP page cannot be sent as-is to the
browser
61 University Academy