Quizzes
Search
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Create a Quiz
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Search
Create A Quiz
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Products
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Quizzes
Quizzes
Java & Web Development Assessment Exam
90 Questions
|
By Catherine Halcomb | Updated: Mar 17, 2022
| Attempts: 115
Share
Start
Share on Facebook
Share on Twitter
Share on Whatsapp
Share on Pinterest
Share on Email
Copy to Clipboard
Embed on your website
Question
1
/ 90
0 %
0/100
Score
0/100
1.
Which one is a valid declaration of a boolean?
Boolean b1 = 1;
Boolean b2 = ‘false’;
Boolean b3 = false;
Boolean b4 = ‘true’
Submit
Start Quiz
About This Quiz
.
2.
What's your name?
We’ll put your name on your report, certificate, and leaderboard.
2.
Which of these methods is used to know when was the URL last modified?
LastModified()
GetLastModified()
GetLastModified()
GetlastModified()()
Submit
3.
Which of the following are the features of jQuery?
Efficient query method for finding the set of document elements
Expressive syntax for referring to elements in the document
Useful set of methods for manipulating selected elements
All of the mentioned
Submit
4.
What is the output of this program?
0
1
True
False
Submit
5.
Which of these methods is used to know the type of content used in the URL?
ContentType()
ContentType()
GetContentType()
GetContentType()
Submit
6.
Which of these package is used for graphical user interface?
Java.applet
Java.awt
Java.awt.image
Java.io
Submit
7.
Which attribute is used to name an html element uniquely?
Class
Id
Name
All of above
Submit
8.
Which of these methods is used to know host of an URL?
Host()
GetHost()
GetHost()
Gethost()
Submit
9.
Which of these standard collection classes implements a dynamic array?
AbstractList
LinkedList
ArrayList
AbstractSet
Submit
10.
Which of these is a method of ObjectOutput interface used to finalize the output state so that any buffers are cleared?
Clear()
Flush()
Fflush()
Close()
Submit
11.
Which of these classes implements Set interface?
ArrayList
HashSet
LinkedList
DynamicList
Submit
12.
Which of these standard collection classes implements a linked list data structure?
AbstractList
LinkedList
HashSet
AbstractSet
Submit
13.
State True or False. A windows application creation or a web application creation is mandatory in order to test a web service.
True
False
Submit
14.
Which of these method of HashSet class is used to add elements to its object?
Add()
Add()
AddFirst()
Insert()
Submit
15.
Which of these package is used for invoking a method remotely?
Java.rmi
Java.awt
Java.util
Java.applet
Submit
16.
Which of these is a process of writing the state of an object to a byte stream?
Serialization
Externalization
File Filtering
All of the mentioned
Submit
17.
Which of these method of ArrayList class is used to obtain present size of an object?
Size()
Length()
Index()
Capacity()
Submit
18.
What is the output of this program?
0
1
True
False
Submit
19.
What is the output of this program?
25
24
32
33
Submit
20.
Which of these class can generate an array which can increase and decrease in size automatically?
ArrayList()
DynamicList()
LinkedList()
DynamicList()
Submit
21.
What is a web service?
A standard way of integrating web-based applications
One type of service can be part of a Service Oriented Architecture
Programmable XML-based service
All of the above
Submit
22.
Which of these values can a boolean variable contain?
True & False
0 & 1
Any integer value
Both a & b
Submit
23.
What are the web service platform elements?
SOAP, UDDI, XML
HTTP, WSDL
UDDI, XML, SOAP
SOAP, UDDI, WSDL
Submit
24.
Which of these keywords are used to define an abstract class?
Abst
Abstract
Abstract
Abstract class
Submit
25.
The basic purpose of the toLocaleString() is to
Return a localised object representation
Return a parsed string
Return a local time in the string format
Return a localized string representation of the object
Submit
26.
What is the output of this program?
16.34
16.566666644
16.46666666666667
16.46666666666666
Submit
27.
What is new about web services?
XML - a common language for describing RMC
XML - a common language for describing web services
XML - a common language for describing web service directories
All of the above
Submit
28.
What is the output of this program?
162
65 97
67 95
66 98
Submit
29.
Which of these type parameters is used for a generic methods to return and accept any type of object?
K
N
T
V
Submit
30.
Which of these methods can be used to delete the last element in a LinkedList object?
Remove()
Delete()
RemoveLast()
DeleteLast()
Submit
31.
If a class inheriting an abstract class does not define all of its function then it will be known as?
Abstract
A simple class
Static class
None of the mentioned
Submit
32.
Which of the following is not a new feature of HTML5?
Use canvas tag element for 2D drawing.
Use video tag elements for media playback.
Use audio tag elements for media playback.
Support for local storage
All of the above are new features.
Submit
33.
Which of these package is used for analyzing code during run-time?
Java.applet
Java.awt
Java.io
Java.lang.reflect
Submit
34.
What is the range of data type byte in Java?
-128 to 127
-32768 to 32767
-2147483648 to 2147483647
None of the mentioned
Submit
35.
What is the output of this program?
I i i i i
0 1 2 3 4
I j k l m
None of the mentioned
Submit
36.
Which of these interface extends DataOutput interface?
Serializable
Externalization
ObjectOutput
ObjectInput
Submit
37.
Which of these method is used to add an element to the start of a LinkedList object?
Add()
First()
AddFirst()
AddFirst()
Submit
38.
Which of the following is used to locate and describe web services?
SOAP
Web page
WSDL
UDDI
Submit
39.
What is correct behavior of preventDefault() function:
Prevent the drag event
Prevent the drop event
Prevent the browser default handling of the data
All of the above
Submit
40.
A linkage of series of prototype objects is called as :
Prototype stack
Prototype chain
Prototype class
Prototypes
Submit
41.
Which of these packages contains abstract keyword?
Java.lang
Java.util
Java.io
Java.system
Submit
42.
Which of these is not a correct statement?
Every class containing abstract method must be declared abstract.
Abstract class defines only the structure of the class not its implementation.
Abstract class can be initiated by new operator.
Abstract class can be inherited.
Submit
43.
Which data type value is returned by all transcendental math functions?
Int
Float
Double
Long
Submit
44.
Which of the following are legal lines of Java code?
int w = (int)888.8;
byte x = (byte)100L;
long y = (byte)100;
byte z = (byte)100L;
1 and 2
2 and 3
3 and 4
All statements are correct.
Submit
45.
Which of the following is not form controls elements in HTML5?
Url
Search
Email
Money
Time
Submit
46.
What is the output of this program?
301.5656
301
301.56
301.56560000
Submit
47.
What are generic methods?
Generic methods are the methods defined in a generic class.
Generic methods are the methods that extend generic class’s methods.
Generic methods are methods that introduce their own type parameters.
Generic methods are methods that take void parameters.
Submit
48.
Which of the following is used to locate and describe web services?
SOAP
Web Page
WSDL
UDDI
Submit
49.
Web services attempts to describe architecture based on
Representational State Transfer (REST)
Remote Procedure Calls
Reusable Application Components
None of the above
Submit
50.
What is the range of data type short in Java?
-128 to 127
-32768 to 32767
-2147483648 to 2147483647
None of the mentioned
Submit
51.
Which of these exception is thrown by URL class's constructors?
URLNotFound
URLSourceNotFound
MalformedURLException
URLNotFoundException
Submit
52.
What does URL stands for?
Uniform Resource Locator
Uniform Resource Latch
Universal Resource Locator
Universal Resource Latch
Submit
53.
To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the
Equals() method
IsPrototypeOf() method
=== operator
None of the mentioned
Submit
54.
Which of these method is used to reduce the capacity of an ArrayList object?
Trim()
TrimSize()
TrimTosize()
TrimToSize()
Submit
55.
Why SOAP is used as a protocol for accessing a web service?
SOAP is platform and language independent, allows to get around firewalls
SOAP is based on HTML
SOAP is designed to communicate through LAN
All of the above
Submit
56.
Which of these package is used for handling security related issues in a program?
Java.security
Java.lang.security
Java.awt.image
Java.io.security
Submit
57.
The basic difference between JavaScript and Java is
There is no difference
Functions are considered as fields
Variables are specific
Functions are values, and there is no hard distinction between methods and fields
Submit
58.
Which of these type parameters is used for a generic methods to return and accept a number?
K
N
T
V
Submit
59.
Which of these tranfer protocol must be used so that URL can be accessed by URLConnection class object?
Http
Https
Any Protocol can be used
None of the mentioned
Submit
60.
The unordered collection of properties, each of which has a name and a value is called
String
Object
Serialized Object
All of the above
Submit
61.
An expression involving byte, int, and literal numbers is promoted to which of these?
Int
Long
Byte
Float
Submit
62.
Which of these literals can be contained in a data type float variable?
1.7e-308
3.4e-038
1.7e+308
3.4e-050
Submit
63.
What is the output of this program?
66
67
65
64
Submit
64.
Which of these class allows us to get real time data about private and protected member of a class?
Java.io
GetInformation
ReflectPermission
MembersPermission
Submit
65.
Web services are the amalgamation of
XML and SOAP
XML and HTTP
WSDL and UDDI
Eb-XML and WSDL
Submit
66.
Which of these coding types is used for data type characters in Java?
ASCII
ISO-LATIN-1
UNICODE
None of the mentioned
Submit
67.
Which of the following is not true about HTML5?
Better error handling
Reduce the need for external plug-in (like Flash)
Uses more markups to replace scripting language
All of the above are correct.
Only options (A) and (C) are correct.
Submit
68.
Which of the following is a single global function defined in the jQuery library?
JQuery()
$()
Queryanalysis()
None of the mentioned
Submit
69.
What is the numerical range of a char in Java?
-128 to 127
0 to 256
0 to 32767
0 to 65535
Submit
70.
Which of the following three kinds of data that web services have?
Shared data, processed data, form data
Shared data, pre-session data and temporary data
Shared data, post-session data and temporary data
Shared data, pre-session data and permanent data
Submit
71.
Which of these class is used to access actual bits or content information of a URL?
URL
URLDecoder
URLConnection
All of the mentioned
Submit
72.
What is the output of this program?
38 43
39 44
295 300
295.04 300
Submit
73.
Which of these data member of HttpResponse class is used to store the response from a http server?
Status
Address
StatusResponse
StatusCode
Submit
74.
Which of these is method of ObjectOutput interface used to write the object to input or outputstream as required?
Write()
Write()
StreamWrite()
WriteObject()
Submit
75.
Which of these class is used to access actual bits or content information of a URL?
URL
URLDecoder
URLConnection
All of the mentioned
Submit
76.
The object has three object attributes namely
Class, parameters, object’s extensible flag
Prototype, class, objects’ parameters
Prototype, class, object’s extensible flag
Native object, Classes and Interfacces and Object’s extensible flag
Submit
77.
Which of the following is incorrect statement regarding the use of generics and parameterized types in Java?
Generics provide type safety by shifting more type checking responsibilities to the compiler.
Generics and parameterized types eliminate the need for down casts when using Java Collections.
When designing your own collections class (say, a linked list), generics and parameterized types allow you to achieve type safety...
When designing your own collections class (say, a linked list), generics and parameterized types allow you to achieve type safety with just a single class definition as opposed to defining multiple classes
All of the mentioned
Submit
78.
Which of these is not abstract?
Thread
AbstractList
List
None of the Mentioned
Submit
79.
Which of these methods is used to know the full URL of an URL object?
FullHost()
GetHost()
ExternalForm()
ToExternalForm()
Submit
80.
The purpose of
extensible
attribute is to
Make all of the own properties of that object nonconfigurable
To configure and bring a writable property
“lock down” objects into a known state and prevent outside tampering
All of the mentioned
Submit
81.
Which of these package is used for all the text related modifications?
Java.text
Java.awt
Java.lang.text
Java.text.mofify
Submit
82.
Which of these is an correct way of defining generic method?
Name(T1, T2, …, Tn) { /* … */ }
Public name { /* … */ }
Class name[T1, T2, ..., Tn] { /* … */ }
Name{T1, T2, …, Tn} { /* … */ }
Submit
83.
Which of these method can be used to increase the capacity of ArrayList object manually?
Capacity()
IncreaseCapacity()
Increasecapacity()
EnsureCapacity()
Submit
84.
Which of the following is used to perform remote procedure calls in web services?
HTTP-RPC
XML-HTTP
XML-RPC
SOAP-XML
Submit
85.
Which of these methods can be used to obtain a static array from an ArrayList object?
Array()
CovertArray()
ToArray()
CovertoArray()
Submit
86.
Which of these occupy first 0 to 127 in Unicode character set used for characters in Java?
ASCII
ISO-LATIN-1
None of the mentioned
Both a & b
Submit
87.
Which of these is an interface for control over serialization and deserialization?
Serializable
Externalization
FileFilter
ObjectInput
Submit
88.
Which of these is wrapper around everything associated with a reply from an http server?
HTTP
HttpResponse
Httpserver
Httpserver
Submit
89.
Which of these process occur automatically by java run time system?
Serialization
Garbage collection
File Filtering
All of the mentioned
Submit
90.
Which of these method is used to change an element in a LinkedList Object?
Change()
Set()
Redo()
Add()
Submit
View My Results
Related Quizzes
Java Exam Oct. #1
Java Exam Oct. #1
Java Fundamentals Test
Java Fundamentals Test
Java Skill Assessment Test
Java Skill Assessment Test
Thank you for your feedback!
Would you like to edit this question to improve it?
No thanks
Name:
Email:
Oops! Give us more information:
Incorrect Question
Incorrect Answer
Typos
I have a feedback
Submit
Please provide name and email to proceed.
Please provide correct email to proceed.
Please provide feedback.
Please select the option.
All (90)
Unanswered (
)
Answered (
)
Which one is a valid declaration of a boolean?
Which of these methods is used to know when was the URL last modified?
Which of the following are the features of jQuery?
What is the output of this program?
Which of these methods is used to know the type of content used in the...
Which of these package is used for graphical user interface?
Which attribute is used to name an html element uniquely?
Which of these methods is used to know host of an URL?
Which of these standard collection classes implements a dynamic array?
Which of these is a method of ObjectOutput interface used to finalize...
Which of these classes implements Set interface?
Which of these standard collection classes implements a...
State True or False. A windows application creation or a web...
Which of these method of HashSet class is used to add elements to its...
Which of these package is used for invoking a method remotely?
Which of these is a process of writing the state of an object to a...
Which of these method of ArrayList class is used to obtain present...
What is the output of this program?
What is the output of this program?
Which of these class can generate an array which can increase and...
What is a web service?
Which of these values can a boolean variable contain?
What are the web service platform elements?
Which of these keywords are used to define...
The basic purpose of the toLocaleString() is to
What is the output of this program?
What is new about web services?
What is the output of this program?
Which of these type parameters is used for a generic methods to return...
Which of these methods can be used to delete the last element in a...
If a class inheriting an abstract class does not define all...
Which of the following is not a new feature of HTML5?
Which of these package is used for analyzing code during run-time?
What is the range of data type byte in Java?
What is the output of this program?
Which of these interface extends DataOutput interface?
Which of these method is used to add an element to...
Which of the following is used to locate and describe web services?
What is correct behavior of preventDefault() function:
A linkage of series of prototype objects is called as :
Which of these packages contains abstract keyword?
Which of these is not a correct statement?
Which data type value is returned by all transcendental math...
Which of the following are legal lines of Java code?int w =...
Which of the following is not form controls elements in HTML5?
What is the output of this program?
What are generic methods?
Which of the following is used to locate and describe web services?
Web services attempts to describe architecture based on
What is the range of data type short in Java?
Which of these exception is thrown by URL class's constructors?
What does URL stands for?
To determine whether one object is the prototype of (or is part of the...
Which of these method is used to reduce the capacity of an ArrayList...
Why SOAP is used as a protocol for accessing a web service?
Which of these package is used for handling security related...
The basic difference between JavaScript and Java is
Which of these type parameters is used for a generic methods to return...
Which of these tranfer protocol must be used so that URL can be...
The unordered collection of properties, each of which has a name and a...
An expression involving byte, int, and literal numbers is promoted to...
Which of these literals can be contained in a data type float...
What is the output of this program?
Which of these class allows us to get real time data about private and...
Web services are the amalgamation of
Which of these coding types is used for data type characters in Java?
Which of the following is not true about HTML5?
Which of the following is a single global function defined in the...
What is the numerical range of a char in Java?
Which of the following three kinds of data that web services have?
Which of these class is used to access actual bits or content...
What is the output of this program?
Which of these data member of HttpResponse class is used to store the...
Which of these is method of ObjectOutput interface used to write the...
Which of these class is used to access actual bits or content...
The object has three object attributes namely
Which of the following is incorrect statement regarding the use of...
Which of these is not abstract?
Which of these methods is used to know the full URL of an URL object?
The purpose of extensible attribute is to
Which of these package is used for all the text related modifications?
Which of these is an correct way of defining generic method?
Which of these method can be used to increase the capacity of...
Which of the following is used to perform remote procedure calls in...
Which of these methods can be used to obtain a static array from an...
Which of these occupy first 0 to 127 in Unicode character set used for...
Which of these is an interface for control over serialization and...
Which of these is wrapper around everything associated with a reply...
Which of these process occur automatically by java run time system?
Which of these method is used to change an element in a LinkedList...
X
OK
X
OK
Cancel
X
OK
Cancel
Back to top
Back to top
Advertisement