wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AJWT MCQ Quiz

Total questions: 25

Worksheet time: 4mins

Name
Class
Date
1.

Java Beans is not a Reusable Software

a)

True

b)

False

2.

Which protocol is a State less ? (You can select multiple Answers if more than one correct)

a)

FTP

b)

SMTP

c)

HTTP

d)

TCP

3.

Google Chrome, Mozilla Firefox and Microsoft Edge are all examples of what?

a)

Search Engines

b)

Web Browsers

c)

Web Editors

d)

Web Sites

4.

If you want to have more than one property for a CSS selector, (a)   character separates them?

5.

Which of the following code is used to get an attribute in a HTTP Session object in servlets?

a)

session.setAttribute(String name)

b)

session.getAttribute(String name)

c)

session.updateAttribute(String name)

d)

session.alterAttribute(String name)

6.

What are the functions of Servlet container?

a)

Communication support

b)

Lifecycle management

c)

Multithreading support

d)

All of the Above

7.

What type of scriptlet code is better-suited to being factored forward into a servlet?

a)

Code that deals with logic that relates to database access.

b)

Code that deals with logic that is vendor specific.

c)

Code that deals with logic that is common across requests.

d)

Code that deals with logic that relates to client scope.

8.

(a)   is the initial contact point for handling a web request in a Page-Centric architecture?

9.

pageContext is an implicit object in jsp.

a)

True

b)

False

10.

Which of the scripting of JSP not putting content into service method of the converted servlet?

a)

Scriptlets

b)

Declarations

c)

Expressions

d)

None of the above

11.

The JDBC API has always supported persistent storage of objects defined in the Java programming language through the methods getObject and setObject.

a)

True

b)

False

12.

What is not true of a Java bean?

a)

It may have many constructors as necessary

b)

There are no public instance variables

c)

All persistent values are accessed using getxxx and setxxx methods

d)

All of the above are true of a Java bean

13.

Which of the following is an advantage of using PreparedStatement in Java?

a)

Encourages SQL injection

b)

Slow performance

c)

More memory usage

d)

Prevents SQL injection

14.

(a)   is an open source DBMS product that runs on UNIX, Linux and Windows.

15.

The class at the Top of the AWT hierarchy is...

a)

Window

b)

Component

c)

Container

d)

Frame

16.

When the ………………. method of the Applet class is called, it displays the result of the Applet code on the screen.

(a)  

17.

Which of the following is/are the possible values for alignment attribute of Applet tag.

i) Top ii) Left iii) Middle iv) Baseline

a)

i, iii and iv only

b)

i, ii and iii only

c)

ii, iii and iv only

d)

All of the Above

18.

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.

a)

<number=99>

b)

number = getParameter(88)

c)

<param name=number value=88>

d)

<param = radius value=88>

19.

Which of the following is correct about features of JavaScript?

a)

JavaScript is not interpreter based scripting language

b)

It can not Handling dates and time.

c)

JavaScript is a object-based scripting language.

d)

All of the Above

20.

What is the correct syntax for referring to an external script called “MyFile.js”?

a)

<script src=“MyFile.js”>

b)

<script ref=“MyFile.js”>

c)

<script type=“MyFile.js”>

d)

All of the Above

21.

What is defination of an undefined value in JavaScript?

a)

Variable is not assigned to any value

b)

Variable used in the code doesn't exist

c)

Property doesn't exist

d)

All of the Above

22.

what is the disadvantage of using innerHTML in JavaScript?

a)

Content can not be replaced everywhere

b)

Even if you use +=like "innerHTML = innerHTML + 'html'" still the old content is replaced by html

c)

We can use like "appending to innerHTML"

d)

The entire innerHTML content is not re-parsed and build into elements, therefore its not slower

23.

Which of the following are the errors in JavaScript?

a)

Load time errors

b)

Logical Errors:

c)

Run time errors:

d)

All of the Above

24.

Which of the following are the functional components in JavaScript?

a)

First-class functions

b)

Fixed-class functions

c)

Encapsulated-class functions

d)

All of the Above

25.

HTML web pages can be read and rendered by (a)   .