midterm Flashcards

1
Q

have states and behaviors.
A. Object
B. Class
C. Methods
D. Instant Variables

A

A. Object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

C. Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

basically a behaviour.
A. Object
B. Class
C. Methods
D. Instant Variables

A

C. Methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Each object has its unique
set of
A. Object
B. Class
C. Methods
D. Instant Variables

A

D. Instant Variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

This is a comment line.
A. //
B. _
C. ;
D. +

A

A. //

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The return statement causes the main function
to finish.
A. Return 0
B. //
C. Endl
D. stop

A

A. Return 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

B. Type float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A line known as a blank line
A. Type bool
B. Type float
C. Whitespace
D. Floating point

A

C. Whitespace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

used to express particular values within
the source code of a program.
A. Type bool
B. Type float
C. Literals
D. Floating point

A

C. Literals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

They are numerical constants that identify integer
decimal values.
A. Type bool
B. Integer Numerals
C. Literals
D. Floating point

A

B. Integer Numerals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

They express numbers with decimals and/or
exponents.
A. Type bool
B. Integer Numerals
C. Literals
D. Floating point numbers

A

D. Floating point numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

assignment operator assigns a value to a
variable.
A. Assignment (=)
B. Integer Numerals
C. Literals
D. Floating point numbers

A

A. Assignment (=)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

C. Conditional operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

standard header file defines a class
A. Assignment (=)
B. stringstream
C. Conditional operator
D. Floating point numbers

A

B. Stringstream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

statement with a single
action.
A. Compound Statement
B. stringstream
C. Simple Statement
D. Floating point numbers

A

C. Simple Statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

evaluated once and compared
with the values of each case label.
A. Compound Statement
B. expression
C. Simple Statement
D. Floating point numbers

A

B. expression