-
Notifications
You must be signed in to change notification settings - Fork 1
/
Basic.questions
44 lines (41 loc) · 1.49 KB
/
Basic.questions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QuestionSet SYSTEM "inquisitionQuestions.dtd">
<QuestionSet version="4">
<Name>Basic stuff</Name>
<Description><![CDATA[Questions on Java SE 7
<hr>
<b>Info:</b><br>
<ul>
<li>Maintainer: Georgy Bolyuba <tt><bolyuba@gmail.com></tt>
<li>Home page: <a href="https://github.com/georgy/OCPJP">github</a>
<li>Version: 0.1
<li>Date published: 23/November/2011
<li>Licence: (Public domain, Creative Commons etc)
</ul>]]></Description>
<RecommendedTimePerQuestion>120</RecommendedTimePerQuestion>
<Category>OCPJP: Basic stuff for Java SE 7</Category>
<Questions>
<MultipleChoiceQuestion shufflable="true" singleOptionMode="true">
<QuestionText><![CDATA[Given following code:
<java>
public class Test {
public static void main(String[] args) {
if ("String".toString() == "String")
System.out.println("Equal");
else
System.out.println("Not Equal");
}
}
</java>
What will happen if you try to compile and run it?]]></QuestionText>
<Options>
<Option correct="false">Throws compile time exception</Option>
<Option correct="false">Compiles, but throws runtime exception</Option>
<Option correct="false">Runs, prints nothing</Option>
<Option correct="true"><![CDATA[Runs, prints "Equal"]]></Option>
<Option correct="false"><![CDATA[Runs, prints "Not Equal"]]></Option>
</Options>
<ExplanationText />
</MultipleChoiceQuestion>
</Questions>
</QuestionSet>