Chapter 6 Flashcards

Data Types

1
Q

A ___ ___ defines a collection of data values and a set of predefined operations on those values.

A

data type

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

A ___ is the collection of the attributes of a variable.

A

descriptor

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

Data types that are not defined in terms of other types are called ___ data types.

A

primitive

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

A ___ is a data type that is similar to a record in a structure, except that the elements are not named.

A

Tuple

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

A ___ type is one in which the variables have a range of values that consists of memory addresses and a special value, nil.

A

pointer

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

___ ___ is the activity of ensuring that the operands of and operator are of compatible types.

A

Type checking

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

A ___ type is one that either is legal for the operator or is allowed under language rules to be implicitly converted by compiler-generated code.

A

compatible

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

The automatic conversion is called __.

A

coercion

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

A ___ ___ is the application of an operator to an operand of an inappropriate type.

A

type error

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

___ ___ ___ is type checking at run time.

A

Dynamic type checking

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

A programming language is ___ ___ if type errors are always detected.

A

strongly typed

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

Two types are ___ if an operand of one type in an expression can be substituted for one of the other type, without coercion.

A

equivalent

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

___ ___ ___ means that two variables have equivalent types if they are defined either in the same declaration or in declarations that use the same type name.

A

Name type equivalence

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

___ ___ ____ means that two variables have equivalent types if their types have identical structures.

A

Structure type equivalence

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

A ___ ___ is a new type that is based on some previously defined type with which it is not equivalent, although it may have identical structure.

A

derived type

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

A ___ is type equivalent with its parent type.

A

subtype