Font size
WorksheetsMilestone-3 Practice Questions with Answer Part-1
Total questions: 50
Worksheet time: 25mins
ANT stands for:
Advanced Network Tool
Another Neat Tool
Application Network Test
Automatic New Task
ANT is written in:
C
Python
Java
C++
The default ANT build file is named:
build.ant
build.xml
ant.xml
project.xml
The root tag in an ANT build file is:
<target>
<task>
<project>
<ant>
ANT is similar to which C/C++ tool?
Make
Linker
Compiler
GCC
The ANT task used to compile Java files is:
<compile>
<javac>
<execute>
<java>
Which command runs ANT from command line?
java ant
ant
run ant
execute ant
ANT build files are written in:
JSON
YAML
XML
HTML
HTML stands for:
Hyper Transfer Markup Language
HyperText Markup Language
HighText Machine Language
HyperTool Management Language
Which tag creates a hyperlink?
<h>
<link>
<a>
<url>
Which tag inserts an image?
<image>
<src>
<img>
<pic>
The <title> tag defines:
Page heading
Browser tab title
Footer text
Image caption
The attribute for alternate text in is:
title
alt
src
text
Which HTML5 tag defines a semantic header?
<head>
<header>
<h1>
<meta>
The
method
action
enctype
target
To embed JavaScript in HTML, use:
<js>
<javascript>
<script>
<code>
Which keyword declares a variable (ES6)?
var
let
const
int
Output of typeof null is:
"null"
"undefined"
"object"
"number"
To print in console:
print()
log()
console.log()
alert()
Result of 2 + '2' is:
4
22
"22"
error
2 == '2' returns:
false
true
error
NaN
2 === '2' returns:
true
false
error
NaN
JSON string parsing uses:
JSON.parse()
JSON.convert()
parse.JSON()
eval()
Event for button click:
onload
onchange
onclick
onsubmit
Servlet belongs to package:
java.servlet
javax.servlet
org.servlet
java.http
Method handling GET request:
service()
doPost()
doGet()
init()
Method handling POST request:
service()
doPost()
doGet()
destroy()
Servlet initialization method is:
init()
start()
setup()
begin()
Servlet destroy method is:
finalize()
end()
destroy()
stop()
Include file in JSP using:
jsp:include
<%@ include file="x.jsp" %>
<include>
jsp:file
Difference between JSP and Servlet?
JSP is faster
JSP = HTML + Java, Servlet = pure Java
Servlet = client side
JSP cannot connect DB
JSP implicit object for output:
response
out
writer
console
XML stands for:
eXtra Modern Language
eXtensible Markup Language
Example Markup Language
Execute Multiple Languages
Is XML case-sensitive?
No
Yes
Sometimes
Depends on parser
DTD in XML defines:
Document Transfer Data
Document Type Definition
Data Tree Document
Data Type Directory
XML Schema is also called:
XSD
XSL
XQL
XML-DOM
XML declaration starts with:
<xml>
<!xml>
<?xml ?>
<xml/>
XML can have multiple root elements?
Yes
No
Sometimes
Only in DTD
CDATA is used for:
Comments
Character data not parsed
Root tag
Metadata
Event-driven XML parser is:
DOM
SAX
JAXP
XSLT
Which parser loads the whole doc in memory?
DOM
SAX
JAX-RPC
StAX
XPath is used for:
Parsing
Querying XML
Transforming
Validating
AJAX stands for:
Asynchronous Java Application XML
Asynchronous JavaScript and XML
Advanced JSON and XML
Asynchronous JavaScript and XHTML
Main benefit of AJAX:
Faster database
Update web page without reload
Increase memory
Debugging tool
Object used in AJAX request:
XMLHttpRequest
AjaxObject
HttpAjax
FetchAPI
HTTP status code in AJAX is stored in:
responseText
status
readyState
state
AJAX property for request completion:
readyState
status
done
complete
Value of readyState when complete:
0
2
3
4
AJAX method to send request:
xhr.run()
xhr.execute()
xhr.send()
xhr.start()
Modern API replacing XMLHttpRequest:
JSON API
DOM API
Fetch API
Ajax API
