Programming - First Step towards Java Programming
You Are Here :: Home > JAVA > First Step towards Java Programming - General Questions
1. |
______ are description about the features of a program.
|
A. |
varaiables |
B.
|
constants |
C.
|
objects
|
D.
|
comments
|
|
Answer: Option D
Explanation:
To describe a program we have to use comments. |
|
2. |
By using comments ____________ and ___________ of a program will be more.
|
A. |
readability,writability |
B.
|
writability,readability |
C.
|
readability,understandability
|
D.
|
none
|
|
Answer: Option C
Explanation:
By using comments readability of a program is very easy and we can easily understand that program based on the comments. |
|
3. |
How many types of comments in Java?
|
A. |
1 |
B.
|
2 |
C.
|
3
|
D.
|
more than 5
|
|
Answer: Option C
Explanation:
there are 3 types of comments in java.they are single line comments,multiline comments,java documentation comments. |
|
4. |
_________ comments starts with double slash symbol.
|
A. |
single line |
B.
|
multiple line |
C.
|
java documentation
|
D.
|
all the above
|
|
Answer: Option A
Explanation:
Single line comments starts with double slash symbol only. |
|
5. |
_____________ comments starts with /* and end with */.
|
A. |
single line |
B.
|
multiple line |
C.
|
java documentation
|
D.
|
all the above
|
|
Answer: Option B
Explanation:
Multi line comments start with /* and end with */. |
|
6. |
_______________ comments starts with /** and end with */.
|
A. |
single line |
B.
|
multiple line |
C.
|
java documentation
|
D.
|
all the above
|
|
Answer: Option C
Explanation:
Java documentation comments starts with /** and ends with */. |
|
next »