EXAM COMPLETE WITH VERIFIED
MARKING SCHEME
c
Java is considered to be a highly portable language because...
a.) ... the language is very precisely defined
b.) ... Java source code can execute directly on any target processor
c.) ... because compiled bytecodes run on a virtual machine which is implemented for each
target processor
d.) ... because it compiles directly to the most common Intel-based processor
b
Modern engineering software development involves a "stack" of software technologies. The "L"
in LAMP stands for ___.
a.) Language
b.) Linux
c.) Lost
d.) Lisp
d
An IDE such as IntelliJ does which of the following?
a.) Allows syntax-directed editing of Java programs
b.) Supports connection with an advanced version control system such as SVN or Git
c.) Automatically compiles programs as you are typing and provides ready access to the
,language like Java
d.) All of these are correct
a
Declaring instance variables ____ is known as data hiding or information hiding.
a.) private
b.) secure
c.) static
d.) masked
b
Which of the following is NOT an arithmetic operator in Java?
a.) +
b.) .
c.) %
d.) *
d
Java's predefined classes are grouped into
a.) packets
b.) declarations
c.) galleries
d.) packages
class
Complete the following analogy. Blueprint is to House as __ is to Object.
a
Overloaded methods always have the same _.
a.) method name
b.) return type
c.) number of parameters
, d.) order of parameters
d
Which of the following is not a control structure?
a.) iteration
b.) sequential
c.) selection
d.) declaration
d
A static method can ____.
a.) call only other static methods of the same class directly
b.) manipulate only static fields in the same class directly
c.) be called using the class name and a dot (.)
d.) all of the above
c
Which is a correct static method call of math class method sqrt?
a.) sqrt(900);
b.) math.sqrt(900);
c.) Math.sqrt(900);
d.) Math math = new Math();
e.) math.sqrt(900);
c
Java requires a ____ call for every object that’s created.
a.) parameterless
b.) parameterized
c.) constructor
d.) destructor
b