Professional Documents
Culture Documents
http://www.cplusplus.com/forum/articles/18749/
http://www.macs.hw.ac.uk/~pjbk/pathways/cpp1/node155.html
http://www.cs.hmc.edu/~geoff/classes/hmc.cs070.200109/notes/io.html
http://www.codeproject.com/Articles/686678/Cplusplus-Const-Volatile-Type-Qualifiers
V- Links
http://www.macs.hw.ac.uk/~pjbk/pathways/cpp1/node78.html
http://www.tutorialspoint.com/cplusplus/cpp_if_else_statement.htm
http://www.tutorialspoint.com/cplusplus/cpp_nested_if.htm
http://www.tutorialspoint.com/cplusplus/cpp_switch_statement.htm
IV Questions:
Questions
The assignment
operator for a class
is what allows you
to use _____ to
assign one
instance to
another.
What
syntax/symbol use
to returns value in
radians in range 0
to PI
Use to define
exponential
function, e to
power x
The parameter x is
a floating point
value. The x is
used as a ______
When the function
is called then this
formal parameter
is replaced by a/an
________
To do input and
output, you will need
to load the _______
Iomanip is for what?
What are the three
steams?
When writing error
messages, use cerr
rather than ______
The parameters
ios::in and ios::out
specify the _____ in
which the file is to
be opened.
declared as arrays
of type char or
pointers to type
char
Correct answer
=
Incorrect answer
#include.h
Incorrect answer
{}
acos(x)
xcos<a>
ycos(x)
exp(x)
tan(x)
exp<x>
Formal parameter
Informal parameter
Parameter float
Actual parameter
Value parameter
Direct parameter
iostream header
file
Format
manipulation
Cout,cin,cerr
Line adjustment
Cos,sin,strng
Main header
format
Float,double,cout
Cout
Count
cin
Mode
Address
Codes
Strings
Integer
Characters
What
syntax/symbols
use to end a line
The function ____
can be used to
change formatting
parameters for an
output stream
explicitly declares
a data object as
something that
cannot be changed
('\n')
(/n)
(\n)
setf
Unsetf
countf
C const qualifier
X data qualifier
C object qualifier
object or variable
must be initialized
and its value is set
at initialization
A const
C const
X const
An object that is
declared ______ is
guaranteed to
remain constant for
its lifetime, not
throughout the
entire execution of
the program.
A const variable
has __________ by
default
For a const pointer,
you must put the
keyword between
the ______ and the
identifier
To define a pointer
to a const value,
the keyword must
be placed ______
the type specifier.
If a function is
defined as const,
we can still change
the value using?
Const
Variables
Unique
Internal linkage
External memory
Internal cache
()
Before
After
In the end
Const_cast
Const_class
Const_int