midterm Flashcards
have states and behaviors.
A. Object
B. Class
C. Methods
D. Instant Variables
A. Object
can be defined as a
template/blueprint that describes the
behaviors/states that object of its type support.
A. Object
B. Methods
C. Class
D. Instant Variables
C. Class
basically a behaviour.
A. Object
B. Class
C. Methods
D. Instant Variables
C. Methods
Each object has its unique
set of
A. Object
B. Class
C. Methods
D. Instant Variables
D. Instant Variables
This is a comment line.
A. //
B. _
C. ;
D. +
A. //
The return statement causes the main function
to finish.
A. Return 0
B. //
C. Endl
D. stop
A. Return 0
stores numbers in the range of about
3.4×10 –38 to 3.4×10 38
A. Type bool
B. Type float
C. Whitespace
D. Floating point
B. Type float
A line known as a blank line
A. Type bool
B. Type float
C. Whitespace
D. Floating point
C. Whitespace
used to express particular values within
the source code of a program.
A. Type bool
B. Type float
C. Literals
D. Floating point
C. Literals
They are numerical constants that identify integer
decimal values.
A. Type bool
B. Integer Numerals
C. Literals
D. Floating point
B. Integer Numerals
They express numbers with decimals and/or
exponents.
A. Type bool
B. Integer Numerals
C. Literals
D. Floating point numbers
D. Floating point numbers
assignment operator assigns a value to a
variable.
A. Assignment (=)
B. Integer Numerals
C. Literals
D. Floating point numbers
A. Assignment (=)
evaluates an expression
returning a value if that expression is true and a
different one if the expression is evaluated as false.
A. Assignment (=)
B. Integer Numerals
C. Conditional operator
D. Floating point numbers
C. Conditional operator
standard header file defines a class
A. Assignment (=)
B. stringstream
C. Conditional operator
D. Floating point numbers
B. Stringstream
statement with a single
action.
A. Compound Statement
B. stringstream
C. Simple Statement
D. Floating point numbers
C. Simple Statement