JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
Taranath Shikshana Samsthe, Laxmi Venkatesh Desai College, Raichur. Department of Computer Science
Java Assessment 2
* Indicates required question
Name
*
Your answer
Register No.
*
Your answer
1.In java control statements break, continue, return, try-catch-finally and assert belongs to?
*
1 point
Loop Statements
Transfer statements
Pause Statement
Selection statements
2.Which provides runtime environment for java byte code to be executed?
*
1 point
JDK
JVM
JRE
JAVAC
3.What is byte code in Java?
*
1 point
Code generated by a Java compiler
Code generated by a Java Virtual Machine
Name of Java source code file
Block of code written inside a class
4.Which of the following are not Java keywords ?
*
1 point
double
switch
then
instanceof
5.Which of these have highest precedence?
*
1 point
()
++
*
>>
6.Which of these is returned by operator '&' ?
*
1 point
Integer
Character
Boolean
Float
7.Which variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed?
*
1 point
Local variables
Instance variables
Class Variables
Static variables
8.What is garbage collection in the context of Java?
*
1 point
Java deletes all unused java files on the system.
Memory used by the object with no reference is automatically reclaimed.
The JVM cleans output of Java program with error.
Any unused package in a program automatically gets deleted.
9.Which one is a template for creating different objects ?
*
1 point
An Array
A class
Interface
Method
10.Which one is true about a constructor ?
*
1 point
A constructor must have the same name as the class it is declared within.
A constructor is used to create objects.
A constructor may be declared private
All of the above
11.Which of these operators is used to allocate memory to array variable in Java?
*
1 point
alloc
malloc
new malloc
new
12.Which of these is not a bitwise operator?
*
1 point
&' Operator
&=' Operator
|=' Operator
<=' Operator
13.Which of these is returned by Greater Than, Less Than and Equal To (i.e Relational) operator ?
*
1 point
Float
Integer
Boolean
Double
14.Which statement transfer execution to different parts of your code based on the value of an expression?
*
1 point
if
switch
nested-if
if-else-if
15.Which of the following are not the methods of the Thread class?
*
1 point
yield()
sleep()
go()
stop()
16.Which of the following are not Java modifiers?
*
1 point
public
private
friendly
transient
17.Remote Method Invocation (RMI). This feature brings an unparalleled level of abstraction to___ programming
*
1 point
socket
client/server
c++
C
18.JDBC stands for ___
*
1 point
Java Database Connectivity
Joint Database connection
Just Dependent component
none of the above
19.___ is a set of user interface components that is implemented entirely in Java
*
1 point
intermediate code
Byte code
Swing
Servelets
20.Java is designed for the distributed environment of the Internet because it handles ___ protocols
*
1 point
TCP
IP
HTTP
both 1 and 2
21.___ is the mechanism that binds together code and the data it manipulates and keeps both safes from outside interference and misuse.
*
1 point
Inheritance
Polymorphism
Encapsulation
Multithreaded
22.Inheritance interacts with encapsulation as well
*
1 point
True
False
23.Polymorphism allows you to create ___
*
1 point
clean
sensible
readable, and resilient code
all of the above
24.Multiple inheritance means.
*
1 point
one class inheriting from more super classes
more classes inheriting from one super class
more classes inheriting from more super classes
None of the above
(a) and (b) above.
25.To prevent any method from overriding, we declare the method as
*
1 point
static
const
final
abstract
none of the above.
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. -
Terms of Service
-
Privacy Policy
Does this form look suspicious?
Report
Forms
Help and feedback
Contact form owner
Help Forms improve
Report