Escolar Documentos
Profissional Documentos
Cultura Documentos
QUESTION BANK
MODULE NAME: Learn Java by Example
Category - Simple
1)
b)
2)
Polymorphism
Platform-Independence
c)
Data Encapsulation
d)
Garbage Collection
a)
3)
-classpath
b)
-version
c)
-help
d)
-verbose
b)
4)
Java Compiler
Garbage Collector
c)
d)
Java Interpreter
Aptech Limited
Page 1
a)
Constant
b)
Variable
c)
d)
5)
Literal
Class
a)
java.util
b)
java.awt
c)
java.lang
d)
java.net
Category - Average
1)
a)
2)
Array
b)
Delegate
c)
Structure
d)
Interface
b)
c)
Refactor
The Concurrent Version System (CVS)
Build
Aptech Limited
Page 2
d)
3)
Debug
// This is a comment
b)
/ This is a comment
c)
d)
4)
/* This is a comment */
/** This is a comment **/
b)
5)
c)
d)
a)
b)
Checks the condition at the end of the loop rather than at the beginning to ensure that the
loop is executed at least once.
c)
Used when the user knows how many times the statements need to be executed in the
code block of the loop.
d)
Aptech Limited
Page 3
a)
2)
55/22=2
b)
55/22=2.0
c)
55/22=2.5
d)
55/22=2.05
System.out.println(\u0048\u0065\u006C\u006C\u006F + !\n);
3)
a)
Helo!
b)
Hello!
c)
Helo
d)
Helloo!
a)
b)
c)
<class_name>
d)
<class_name> <object_name> =
Aptech Limited
= new <constructor_name()>;
<constructor_name()>;
Page 4
4)
int sum = 0;
int number = 0;
do {
number++;
sum += number;
if (sum > 6) break;
}while (number < 5);
System.out.println(sum);
5)
a)
It will continue the loop till Sum>6 and then break out of the loop
b)
It will continue the loop till Sum<6 and then break out of the loop
c)
It will continue the loop till Sum=6 and then break out of the loop
d)
It will continue the loop till Sum>=6 and then break out of the loop
a)
David Blake.
b)
\t David Blake.\t
c)
\t\tDavid Blake.\t
d)
\n\t\tDavid Blake.\t\n
Aptech Limited
Page 5