Chapter 4 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

abstraction

A

hide details that we don’t need to use behind a convenient and general interface

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

computation

A

act of producing some outputs based on some inputs

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

declaration

A

tells the compiler about a function’s name, return type, and parameters

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

definition

A

provides the actual body of the function

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

expression

A

computes a value from a number of operands

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

for - statment

A

iteration over a sequence of values

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

function

A

named sequence of statements

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

increment

A

an operator that adds 1 to the operand

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

lvalue

A

value that can appear on the left-hand side of an assignment

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

statement

A

a bloke of code does something; stamens are terminated by a semicolon

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

if - statement

A

if condition is true then 1st statement is executed; otherwise the 2nd statement is

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

switch-statement

A

a selection based on comparison of a value against several constants

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

iteration

A

The statements that cause a set of statements to be executed repeatedly on a sequence of elements

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

while-statement

A

allows to repeatedly run the same block of code until a condition is met

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

loop

A

repeat some statement

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

lvalue

A

object

17
Q

begin()

A

returns an iterator pointing to the first element of the vector container

18
Q

end()

A

returns an iterator pointing to the last element of the vector container

19
Q

push_back()

A

a vector function that adds new element to a vector

20
Q

input

A

values used by a computation

21
Q

member function

A

a function that has its definition or its prototype within the class definition

22
Q

push_back()

A

a vector member function that adds new element to a vector

23
Q

size()

A

a vector member function that returns number of elements

24
Q

rvalue

A

value

25
Q

size()

A

a vector member function that returns number of elements

26
Q

sort()

A

a vector member function that sorts elements of a vector