wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Milestone-3 Practice Questions with Answer Part-1

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

ANT stands for:

a)

Advanced Network Tool

b)

Another Neat Tool

c)

Application Network Test

d)

Automatic New Task

2.

ANT is written in:

a)

C

b)

Python

c)

Java

d)

C++

3.

The default ANT build file is named:

a)

build.ant

b)

build.xml

c)

ant.xml

d)

project.xml

4.

The root tag in an ANT build file is:

a)

<target>

b)

<task>

c)

<project>

d)

<ant>

5.

ANT is similar to which C/C++ tool?

a)

Make

b)

Linker

c)

Compiler

d)

GCC

6.

The ANT task used to compile Java files is:

a)

<compile>

b)

<javac>

c)

<execute>

d)

<java>

7.

Which command runs ANT from command line?

a)

java ant

b)

ant

c)

run ant

d)

execute ant

8.

ANT build files are written in:

a)

JSON

b)

YAML

c)

XML

d)

HTML

9.

HTML stands for:

a)

Hyper Transfer Markup Language

b)

HyperText Markup Language

c)

HighText Machine Language

d)

HyperTool Management Language

10.

Which tag creates a hyperlink?

a)

<h>

b)

<link>

c)

<a>

d)

<url>

11.

Which tag inserts an image?

a)

<image>

b)

<src>

c)

<img>

d)

<pic>

12.

The <title> tag defines:

a)

Page heading

b)

Browser tab title

c)

Footer text

d)

Image caption

13.

The attribute for alternate text in is:

a)

title

b)

alt

c)

src

d)

text

14.

Which HTML5 tag defines a semantic header?

a)

<head>

b)

<header>

c)

<h1>

d)

<meta>

15.

The

attribute that specifies where to send data is:

a)

method

b)

action

c)

enctype

d)

target

16.

To embed JavaScript in HTML, use:

a)

<js>

b)

<javascript>

c)

<script>

d)

<code>

17.

Which keyword declares a variable (ES6)?

a)

var

b)

let

c)

const

d)

int

18.

Output of typeof null is:

a)

"null"

b)

"undefined"

c)

"object"

d)

"number"

19.

To print in console:

a)

print()

b)

log()

c)

console.log()

d)

alert()

20.

Result of 2 + '2' is:

a)

4

b)

22

c)

"22"

d)

error

21.

2 == '2' returns:

a)

false

b)

true

c)

error

d)

NaN

22.

2 === '2' returns:

a)

true

b)

false

c)

error

d)

NaN

23.

JSON string parsing uses:

a)

JSON.parse()

b)

JSON.convert()

c)

parse.JSON()

d)

eval()

24.

Event for button click:

a)

onload

b)

onchange

c)

onclick

d)

onsubmit

25.

Servlet belongs to package:

a)

java.servlet

b)

javax.servlet

c)

org.servlet

d)

java.http

26.

Method handling GET request:

a)

service()

b)

doPost()

c)

doGet()

d)

init()

27.

Method handling POST request:

a)

service()

b)

doPost()

c)

doGet()

d)

destroy()

28.

Servlet initialization method is:

a)

init()

b)

start()

c)

setup()

d)

begin()

29.

Servlet destroy method is:

a)

finalize()

b)

end()

c)

destroy()

d)

stop()

30.

Include file in JSP using:

a)

jsp:include

b)

<%@ include file="x.jsp" %>

c)

<include>

d)

jsp:file

31.

Difference between JSP and Servlet?

a)

JSP is faster

b)

JSP = HTML + Java, Servlet = pure Java

c)

Servlet = client side

d)

JSP cannot connect DB

32.

JSP implicit object for output:

a)

response

b)

out

c)

writer

d)

console

33.

XML stands for:

a)

eXtra Modern Language

b)

eXtensible Markup Language

c)

Example Markup Language

d)

Execute Multiple Languages

34.

Is XML case-sensitive?

a)

No

b)

Yes

c)

Sometimes

d)

Depends on parser

35.

DTD in XML defines:

a)

Document Transfer Data

b)

Document Type Definition

c)

Data Tree Document

d)

Data Type Directory

36.

XML Schema is also called:

a)

XSD

b)

XSL

c)

XQL

d)

XML-DOM

37.

XML declaration starts with:

a)

<xml>

b)

<!xml>

c)

<?xml ?>

d)

<xml/>

38.

XML can have multiple root elements?

a)

Yes

b)

No

c)

Sometimes

d)

Only in DTD

39.

CDATA is used for:

a)

Comments

b)

Character data not parsed

c)

Root tag

d)

Metadata

40.

Event-driven XML parser is:

a)

DOM

b)

SAX

c)

JAXP

d)

XSLT

41.

Which parser loads the whole doc in memory?

a)

DOM

b)

SAX

c)

JAX-RPC

d)

StAX

42.

XPath is used for:

a)

Parsing

b)

Querying XML

c)

Transforming

d)

Validating

43.

AJAX stands for:

a)

Asynchronous Java Application XML

b)

Asynchronous JavaScript and XML

c)

Advanced JSON and XML

d)

Asynchronous JavaScript and XHTML

44.

Main benefit of AJAX:

a)

Faster database

b)

Update web page without reload

c)

Increase memory

d)

Debugging tool

45.

Object used in AJAX request:

a)

XMLHttpRequest

b)

AjaxObject

c)

HttpAjax

d)

FetchAPI

46.

HTTP status code in AJAX is stored in:

a)

responseText

b)

status

c)

readyState

d)

state

47.

AJAX property for request completion:

a)

readyState

b)

status

c)

done

d)

complete

48.

Value of readyState when complete:

a)

0

b)

2

c)

3

d)

4

49.

AJAX method to send request:

a)

xhr.run()

b)

xhr.execute()

c)

xhr.send()

d)

xhr.start()

50.

Modern API replacing XMLHttpRequest:

a)

JSON API

b)

DOM API

c)

Fetch API

d)

Ajax API