Professional Documents
Culture Documents
4. The
assigned
Codingbat
exercises
and
related
Codingbat
help
files
(less
important).
5. Skills
learned
during
your
lab
assignments
Multiple
Choice
(circle
your
answer)
[2
points
apiece,
~10
total]
The
exam
will
contain
some
multiple
choice
questions
that
continue
the
same
topics
in
the
true-false
questions.
I
may
either
ask
you
to
pick
either
the
true
answer
from
a
list
or
pick
the
one
false
answer
from
a
list
of
true
ones.
I
may
also
ask
you
to
distinguish
between
statements
that
are
always
true
versus
statements
that
are
only
sometimes
true.
I
may
also
ask
you
to
tell
which
Java
expression
from
a
list
means
the
same
thing
as
another
Java
expression.
Examples:
1. Suppose
a
and
b
are
Boolean
variables.
Which
one
of
the
following
statements
does
not
mean
the
same
thing
as
the
others?
a.
a != b
b.
!(a == b)
c.
(a && !b) || (b && !a)
d.
(a && b) || (!a && !b)
2. Which
one
of
the
following
data
types
is
not
a
reference
type?
a. Integer
b. int
c. int
[]
d. ArrayList<Integer>
Note:
In
these
problems,
any
mention
of
the
ordinal
numbers
(1st
,
2nd,
3rd,
etc.)
follows
their
normal
English
meanings,
not
Java-specific
index
values
(which
start
at
zero).
Examples:
Example:
1. Why
does
the
following
method
not
compile?
____________________________________________
________________________________________________________________
/** Search a list of stories for one containing a specific term */