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
Q

The five kinds of statements allowed within a block?

A

Null statements, assignment statements, declarations, executable/output statements, compound statements

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

The :: operator is referred to as?

A

The scope resolution operator

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

The &laquo_space;operator referred to as?

A

The insertion operator

28
Q

The&raquo_space; operator referred to as?

A

The extraction operator

29
Q

include <…> is an example of?

A

A preprocessor directive

30
Q

The term “std” is an example of a…?

A

Namespace

31
Q

What are the four integral data types?

A

Char, short, int, long

32
Q

Reserved word for an integral data type whose range includes only positive integers?

A

Unsigned

33
Q

Smallest integral data type and its range?

A

Char: signed -128 - 127, unsigned 0 - 255

34
Q

What is the result of storing values out of the range of a memory’s data type?

A

Overflow

35
Q

The three data types that represent real numbers?

A

Float, double, long double

36
Q

How are real numbers stored?

A

As an integral part and a fractional part

37
Q

Dividing a real number by zero returns?

A

Inf

38
Q

Dividing an integer by zero results?

A

Error

39
Q

The ++ operator is referred to as?

A

The increment operator

40
Q

7++ and ++7 are different how?

A

++7 the increment is executed prior and the integer is always 8

41
Q

The - - operator is referred to as?

A

The decrement operator

42
Q

Converting a literal, variable or constant to another data type at run time is called?

A

Type casting

43
Q

The compiler process that assigns data types on inference?

A

Type coercion

44
Q

How many ways to declare a variable / constant?

A

3

45
Q

Declaration with {…}?

A

Uniform

46
Q

Declaration with (…)?

A

Implicit

47
Q

Declaration a = 0?

A

Explicit

48
Q

Expression with values of varying data types?

A

Mixed type expression

49
Q

Expressions of integers and real numbers coerce as?

A

Real numbers

50
Q

Real numbers that are coerced to integers are said to have undergone?

A

Truncation

51
Q

Identifiers can only consist of?

A

Characters A-Z, a-z, 0-9, _

52
Q

Identifiers can only begin with?

A

Characters A-Z, a-z

53
Q

The term for the order in which operators are executed?

A

Order of precedence

54
Q

The order of predence is as follows?

A

Unary operators (-17, ++9, - -34)
Brackets ()
Binary operators *, /, %
Binary operators +, -

55
Q

std::fixed does what?

A

Represents real and integer numbers with floating points

56
Q

std::scientific does what?

A

Represents floats in scientific notation, i.e., 2.134x10^12 or 2.134E12

57
Q

std::setprecision(n) does what?

A

Formats real numbers to n decimal places

58
Q

std::showpoint does what?

A

Displays both integers and real numbers with floating point

59
Q

Library needed for formatting outputs of numbers?

A

iomanip

60
Q

std::setw(n) does what?

A

Generates a field of whitespaces of at least n width in which strings after a trailing insertion operator («) will print right justified

61
Q

Meaning ascribed to code and its rules by programmers and compilers?

A

Semantics

62
Q

Rules and symbols that dictate how a language or its parts are written?

A

Syntax

63
Q

What terminates a statement?

A

;

64
Q

What kind of statement doesn’t need terminating?

A

Compound statement {…}

65
Q

What part of the compilation process handles #includes?

A

Preprocessor