Week 2 Flashcards

1
Q

Assigned name of a memory address?

A

Identifier

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

Name for language used for describing the syntax and rules of another language?

A

Metalanguage

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

Proper term for calling a function?

A

Invoking

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

Initialising memory for a type of data and an identifier

A

Declaration

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

A function’s collective statements between curly braces?

A

Body

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

Memory location for which data can be changed?

A

Variable

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

Memory location for which data cannot be changed?

A

Constant

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

Who calls the main function?

A

The OS

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

The operator = is referred to as?

A

Assignment operator

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

A sequence of identifiers and/or literals with operators that returns a datum?

A

Expression

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

The act of computing an expression?

A

Evaluation

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

Raw data that is not referred to by an identifier?

A

A literal

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

Conjoining literals and identifiers of string data type?

A

Concatenation

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

“…” are used to embrace which literal?

A

Strings

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

‘…’ are used to embrace which literal?

A

Chars

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

The part of the function where its identifier and its parameters are declared?

A

Header

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

The entirety of a function consisting of its header and body?

A

Definition

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

The data passed to functions when they are invoked?

A

Arguments

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

A single executable line of code postfixed by a semicolon?

A

Statement

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

A collection of statements embraced by {…}?

A

Compound statement, or a body, or a block

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

A statement consisting only of a semi-colon?

A

A null statement

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

The name of a string with no characters?

A

Null string

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

The integer returned by the main function on execution?

A

The exit status

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

Traditionally the main function returns what integer when it executes with no errors?

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
The five kinds of statements allowed within a block?
Null statements, assignment statements, declarations, executable/output statements, compound statements
26
The :: operator is referred to as?
The scope resolution operator
27
The << operator referred to as?
The insertion operator
28
The >> operator referred to as?
The extraction operator
29
#include <…> is an example of?
A preprocessor directive
30
The term “std” is an example of a…?
Namespace
31
What are the four integral data types?
Char, short, int, long
32
Reserved word for an integral data type whose range includes only positive integers?
Unsigned
33
Smallest integral data type and its range?
Char: signed -128 - 127, unsigned 0 - 255
34
What is the result of storing values out of the range of a memory’s data type?
Overflow
35
The three data types that represent real numbers?
Float, double, long double
36
How are real numbers stored?
As an integral part and a fractional part
37
Dividing a real number by zero returns?
Inf
38
Dividing an integer by zero results?
Error
39
The ++ operator is referred to as?
The increment operator
40
7++ and ++7 are different how?
++7 the increment is executed prior and the integer is always 8
41
The - - operator is referred to as?
The decrement operator
42
Converting a literal, variable or constant to another data type at run time is called?
Type casting
43
The compiler process that assigns data types on inference?
Type coercion
44
How many ways to declare a variable / constant?
3
45
Declaration with {…}?
Uniform
46
Declaration with (…)?
Implicit
47
Declaration a = 0?
Explicit
48
Expression with values of varying data types?
Mixed type expression
49
Expressions of integers and real numbers coerce as?
Real numbers
50
Real numbers that are coerced to integers are said to have undergone?
Truncation
51
Identifiers can only consist of?
Characters A-Z, a-z, 0-9, _
52
Identifiers can only begin with?
Characters A-Z, a-z
53
The term for the order in which operators are executed?
Order of precedence
54
The order of predence is as follows?
Unary operators (-17, ++9, - -34) Brackets () Binary operators *, /, % Binary operators +, -
55
std::fixed does what?
Represents real and integer numbers with floating points
56
std::scientific does what?
Represents floats in scientific notation, i.e., 2.134x10^12 or 2.134E12
57
std::setprecision(n) does what?
Formats real numbers to n decimal places
58
std::showpoint does what?
Displays both integers and real numbers with floating point
59
Library needed for formatting outputs of numbers?
iomanip
60
std::setw(n) does what?
Generates a field of whitespaces of at least n width in which strings after a trailing insertion operator (<<) will print right justified
61
Meaning ascribed to code and its rules by programmers and compilers?
Semantics
62
Rules and symbols that dictate how a language or its parts are written?
Syntax
63
What terminates a statement?
;
64
What kind of statement doesn’t need terminating?
Compound statement {…}
65
What part of the compilation process handles #includes?
Preprocessor