COSC95A | FINALS Flashcards

(21 cards)

1
Q

basic type or constructed type by applying type constructors to type expressions

A

type expression

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

the activity of ensuring that the operands of an operator are of compatible types

A

type checking

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

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

A

compatible type

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

the automatic conversion in type checking

A

coercion

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

____ in a compiler should report an error if an operator is applied to an incompatible operand

A

type checking

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

it verifies that the type of construct matches that expected by its context

A

type checker

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

___ gathered by a type checker may be needed when code is generated

A

type information

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

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
9
Q

Incompatible types, assignment of wrong types, argument mismatch, etc. are examples of

A

type error

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

a type checking where the bug is found automatically before the program even runs

A

static checking

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

it is performed at compile time

A

static checking

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

examples of static checks

A

type checks
flow of control checks
uniqueness checks
name-related checks

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

a compiler should report an error if an operator is applied to an incompatible operand

A

type checks

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

statements that cause the flow of control to leave a construct must have someplace to which to transfer the flow of control

A

flow of control checks

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

there are situations in which an object must be defined only once

A

uniqueness checks

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

sometimes the same name may appear two or more times

A

name-related checks

17
Q

a type checking where the bug is found automatically when the code is executed

A

dynamic checking

18
Q

it is being done at the run time

A

dynamic checking

19
Q

it involves verifying the code without executing it, at a syntax level

A

static checking

20
Q

static checking is usually a __ using the grammar rules defined

A

static validation