Font size
WorksheetsAJWT MCQ Quiz
Total questions: 25
Worksheet time: 4mins
Java Beans is not a Reusable Software
True
False
Which protocol is a State less ? (You can select multiple Answers if more than one correct)
FTP
SMTP
HTTP
TCP
Google Chrome, Mozilla Firefox and Microsoft Edge are all examples of what?
Search Engines
Web Browsers
Web Editors
Web Sites
If you want to have more than one property for a CSS selector, (a) character separates them?
Which of the following code is used to get an attribute in a HTTP Session object in servlets?
session.setAttribute(String name)
session.getAttribute(String name)
session.updateAttribute(String name)
session.alterAttribute(String name)
What are the functions of Servlet container?
Communication support
Lifecycle management
Multithreading support
All of the Above
What type of scriptlet code is better-suited to being factored forward into a servlet?
Code that deals with logic that relates to database access.
Code that deals with logic that is vendor specific.
Code that deals with logic that is common across requests.
Code that deals with logic that relates to client scope.
(a) is the initial contact point for handling a web request in a Page-Centric architecture?
pageContext is an implicit object in jsp.
True
False
Which of the scripting of JSP not putting content into service method of the converted servlet?
Scriptlets
Declarations
Expressions
None of the above
The JDBC API has always supported persistent storage of objects defined in the Java programming language through the methods getObject and setObject.
True
False
What is not true of a Java bean?
It may have many constructors as necessary
There are no public instance variables
All persistent values are accessed using getxxx and setxxx methods
All of the above are true of a Java bean
Which of the following is an advantage of using PreparedStatement in Java?
Encourages SQL injection
Slow performance
More memory usage
Prevents SQL injection
(a) is an open source DBMS product that runs on UNIX, Linux and Windows.
The class at the Top of the AWT hierarchy is...
Window
Component
Container
Frame
When the ………………. method of the Applet class is called, it displays the result of the Applet code on the screen.
(a)
Which of the following is/are the possible values for alignment attribute of Applet tag.
i) Top ii) Left iii) Middle iv) Baseline
i, iii and iv only
i, ii and iii only
ii, iii and iv only
All of the Above
If you want to assign a value of 88 to the variable year, then which of the following lines can be used within an <applet> tag.
<number=99>
number = getParameter(88)
<param name=number value=88>
<param = radius value=88>
Which of the following is correct about features of JavaScript?
JavaScript is not interpreter based scripting language
It can not Handling dates and time.
JavaScript is a object-based scripting language.
All of the Above
What is the correct syntax for referring to an external script called “MyFile.js”?
<script src=“MyFile.js”>
<script ref=“MyFile.js”>
<script type=“MyFile.js”>
All of the Above
What is defination of an undefined value in JavaScript?
Variable is not assigned to any value
Variable used in the code doesn't exist
Property doesn't exist
All of the Above
what is the disadvantage of using innerHTML in JavaScript?
Content can not be replaced everywhere
Even if you use +=like "innerHTML = innerHTML + 'html'" still the old content is replaced by html
We can use like "appending to innerHTML"
The entire innerHTML content is not re-parsed and build into elements, therefore its not slower
Which of the following are the errors in JavaScript?
Load time errors
Logical Errors:
Run time errors:
All of the Above
Which of the following are the functional components in JavaScript?
First-class functions
Fixed-class functions
Encapsulated-class functions
All of the Above
HTML web pages can be read and rendered by (a) .
