PM
CMPE320 T/F Exam questions and answers with
complete solutions verified graded a++
Terms in this set (121)
C++ is the first F
programming
language to create *.o
or "object" files as
part of its compilation
process.
The GCC compiler F
that we have been
using throws an
exception if an
attempt is made to
divide a double by
zero.
The keyword "auto" F
can be used to type
a variable during
declaration even if it
is not assigned a
value in the
declaration.
The "C-style" case F
will preserve the
1/
22
,7/7/25, 5:34
PM
const property of a
variable.
A reference can be F
null.
The "address of" F
operator, &, is used
on the LHS of an
assignment
statement.
Indirection is the F
process of obtaining
a value by
dereferencing a
pointer.
The *operator is used T
to dereference a
pointer, when it is on
the RHS of an
assignment operator.
A 2D array of int could T
be typed as **int.
When used with a T
pointer, the ->
operator provides
dereferencing and
membership.
In C++ or later, a T
struct can be
assigned using an
2/
22
, 7/7/25, 5:34
PM
initializer list in {}.
An assignment T
operator does not
normally return
anything.
The select part of a F
switch statement will
work with String
object.
Vector elements are T
mutable (can be re-
assigned) whether
they are accessed
using []or the .at()
member function.
A string object from F
the STL is an
immutable object -
characters in the
string cannot be
changed without re-
assigning the string.
An ifstream object T
can be created using
a file that does not
exist.
The .fail() member T
function can be used
with an ofstream
3/
22