Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Part 1/ 1)A value or variable provided to a function when it is called. 2)A step

ID: 3713340 • Letter: P

Question

Part 1/

1)A value or variable provided to a function when it is
called.

2)A step-by-step procedure for solving a problem.

3)A constant which is typed directly into the code such as 3, 3.14159, or “hello world”.

4)A specification consisting of the return type, the function
name and a parameter list in parentheses that appears in both function declarations and definitions.

5)A collection of pre-existing code that can be included into programs to provide commonly-needed functionality.
Terms:

A) function prototype
B) boolean
C) algorithm
D) library
E) main function
F) argument
G) data type
H) literal
I) conditional
J) return value

***********

Part 2/

1) The rules about what make up valid programs.

2)This is used as the return type when a function is supposed to return nothing.

3)An expression that evaluates to true or false that can be used to guide control flow.

4)The invocation of a function that switches the control flow of the program to the start of the function implementation.

5)A number representing the location of a variable in computer memory.

6)Variables declared outside of any function exist in the. . .

7)A word with special meaning that is built-in to the C++
language.

8)The program that converts your source and header files into an executable program.

Terms:

A) pass-by-reference I) syntax
B) semantics J) global scope
C) condition K) array
D) address L) pass-by-value
E) local scope M) parameter
F) argument N) boolean
G) compiler O) call
H) void P) keyword

*********

Part 3/


Definitions:
A) A function which is a member of a class. B) An assemblage of 8 bits, usually the
smallest practical unit of memory.
C) The default calling mechanism in C++
and C whereby only the value of an
argument is passed when a function is
called.
D) A word which is part of the built-in vocabulary
of a computer language and
thus may not be used by programmers
to name variables, functions or objects
E) An attribute of a name indicating the
range within a program over which a
name is known.
F) The set of programs which combine
into a software system to control a computer.
G) The program which checks the source
code for correct syntax and translates
it into object code that is linked into a
final executable program.
H) A statement where the expression on
the right is first evaluated then the
value that results is written into the
variable on the left.
I) A type predefined by the language, for
example int or bool.
J) The rules about what are valid program
statements.
K) The invocation of a function, when the
flow of control switches to the first line
in the function and continues until a
return is encountered.
L) A primitive integer type in C++ that
holds a binary code (typically either 1
byte ASCII or 2 byte Unicode) representing
particular characters.
M) An alternative calling mechanism available
whereby a link to a calling argument
is passed in when a function is
called, allowing the calling argument to
be changed from within the function.
N) A language-independent form which
uses the structure of computer code
(e.g ifs and loops) but not the grammar.
May include standard English
and equations in place of code.
O) An operator which compares two
boolean operands and returns a
boolean result.
P) A variable whose value doesn’t change
while a program is running or a literal
value written directly in code.
Q) A constant which is typed directly into
the code such as 3, 3.14159, or “hello
world”.
R) A large body of standard code which
may be included piecemeal into programs
as needed.
S) A cast that can potentially lose precision
or be unrepresentable.
T) A value or variable provided to a function
when it is called.
U) A part of the physical computer where
both data and instructions are held,
connected to the central processor by
a data bus.
V) A named location for holding a piece of
computer data taken from a set of values
or the name representing that location.
W) A number which denotes the location
of a piece of data within memory.
X) A primitive type in C++ which has
only two values: true (1) or false (0).

1) pass-by-reference
2) downcast
3)primitive type
4)keyword
5)literal
6)boolean operator
7)variable
8)assignment
9)scope

********

Part 4/

Definitions:
A) A package of data, which goes by a single
name, every value of which is of the
same type. Individual elements are accessed
using an index.
B) A combination of variables, constants,
operators and functions which is progressively
evaluated an operation at a
time until it is reduced to a final value.
C) A function which is a member of a class. D) A scope outside of any function.
E) The default calling mechanism in C++
and C whereby only the value of an
argument is passed when a function is
called.
F) A word which is part of the built-in vocabulary
of a computer language and
thus may not be used by programmers
to name variables, functions or objects
G) A file typically containing type, class
and/or standalone function declarations,
as well as constants, with little
or no active code, designed to be included
in code files that are clients of
the declared types, classes or functions.
H) A specification consisting of the return
type, the function name and a parameter
list in parentheses that appears in
both function declarations and definitions.
I) The program which checks the source
code for correct syntax and translates
it into object code that is linked into a
final executable program.
J) A statement where the expression on
the right is first evaluated then the
value that results is written into the
variable on the left.
K) A type predefined by the language, for
example int or bool.
L) The rules about what are valid program
statements.
M) The set of programs which combine
into a software system to control a computer.
N) An action carried out by an operator,
on one or more operands, that produces
a result, normally a value.
O) The invocation of a function, when the
flow of control switches to the first line
in the function and continues until a
return is encountered.
P) A primitive integer type in C++ that
holds a binary code (typically either 1
byte ASCII or 2 byte Unicode) representing
particular characters.
Q) A number which denotes the location
of a piece of data within memory.
R) An assemblage of 8 bits, usually the
smallest practical unit of memory.
S) An operator which compares two
boolean operands and returns a
boolean result.
T) A variable whose value doesn’t change
while a program is running or a literal
value written directly in code.
U) A cast that can potentially lose precision
or be unrepresentable.
V) A value or variable provided to a function
when it is called.
W) A function prototype followed by ‘;’. It
gives the function return type, name,
and the names and types of all parameters.
X) A primitive type in C++ that represents
mathematical integers over a limited
range that varies from computer to
computer.

1)pass-by-value
2)address
3)operation
4)array
5)call
6)syntax
7)header
8)file
9)argument

Explanation / Answer

PART1:-

1-F
2-C
3-H
4-A
5-D


PART-2:-

1-B
2-H
3-C
4-O
5-A
6-J
7-P

PART-3:-

X-6

PART-4:-
A-array
B-operation
C-

K-primitive type
N-operation
O-function call
P-short int
R-byte
S- ==
T-constant
U-
V-arguement
W-
X-int