Advance Java: Test 1 - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Sample Question from this online test:

Question: What output is displayed as the result of executing the following statement?
System.out.println("// Looks like a comment.");
// Looks like a comment

Option A: The statement results in a compilation error

Option B: Looks like a comment

Option C: No output is displayed

Option D: None of Above

To answer, click the "Start This Test" button below.

Start this Test






Comments

get gyan on 2010-11-13 09:22:58 wrote,

Q's1.your answer is wrong
will display Looks like a comment

neema nair on 2011-02-20 17:02:33 wrote,

its really very good..it helps student .to improve their knowledge.....thanks

Akhilesh Thakur on 2011-03-17 11:35:36 wrote,

dude... first answer is incorrect.. it does display output

Anshul Gupta on 2011-04-27 11:30:52 wrote,

System.out.println("// Looks like a comment.");
// Looks like a comment
Hy when you compile this program it prints the
(// Looks like a comment.).

public class ABC
{
public static void main(String args[])
{
System.out.println("// Looks like a comment");
// Looks like a comment
}
}
plz run this program and see the output....
You are commenting wrong answer plz correct it

sai ganesh maddula on 2011-06-10 06:24:07 wrote,

ya that's true, Q1 prints succesfully-no compilation error occurs-by ganesh

priya m on 2011-06-10 10:02:49 wrote,

Good test.But some answers are wrong

suba kanag on 2011-06-12 06:55:42 wrote,

ur q1 answer is wrong.
inside double quotes, all r considered as string.
so it will display // Looks like a comment.

praveen ch on 2011-07-28 05:03:43 wrote,

First Q answer is wrong in the answer sheet please correct it as D

Prajakta Jadhav on 2012-03-11 14:35:44 wrote,

1st que.ans.is wrong please correct it

vandana balaji on 2012-03-18 10:24:52 wrote,

excellent way of encouraging students.thanks for getgyan

ajay rajpoot on 2012-06-13 18:03:40 wrote,

really i feel that some answer is wrong

lakshmi balasubramanian on 2012-07-29 15:38:35 wrote,

interesting....but q1 has incorrect ans still...do check and change...

tarmahamad sodha on 2012-10-31 07:55:23 wrote,

very simple

varaprasad rao on 2012-11-13 18:24:05 wrote,

ok.but give some complex questions

varaprasad rao on 2012-11-13 18:24:07 wrote,

ok.but give some complex questions

Balaji Nandane on 2014-02-03 08:23:03 wrote,

its very helpful to improve java skill.....

rakesh CHOW on 2014-05-05 09:55:22 wrote,

i am not expected so easy questions in LEVEL-MEDIUM

pramod kumar g on 2014-08-31 11:44:15 wrote,

q1

it displays all the string in println