321-Quiz-08 - Names/Binding/Scope

321-Quiz-08 - Names/Binding/Scope

University

11 Qs

quiz-placeholder

Similar activities

basic computer design

basic computer design

University

10 Qs

Python List

Python List

4th Grade - University

15 Qs

Machine Learning (Introduction)

Machine Learning (Introduction)

University

10 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

ITF Chapter 1 Computing Devices

ITF Chapter 1 Computing Devices

University

14 Qs

Let's Play Together

Let's Play Together

University - Professional Development

10 Qs

321-Quiz-08 - Names/Binding/Scope

321-Quiz-08 - Names/Binding/Scope

Assessment

Quiz

Computers

University

Hard

Created by

Malcolm McCullough

Used 24+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

11 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 12 pts

Binding is

an association between a variable and its type value

is an association between an operation and a symbol

can be static or dynamic

is another way to link programs together

2.

MULTIPLE SELECT QUESTION

45 sec • 12 pts

The type of a variable

determines the range of values the variable can store

determines the operations defined for values of the type

only matters for integer types

does not exists in machine language

Can be used to catch some errors early

3.

MULTIPLE SELECT QUESTION

45 sec • 12 pts

The scope of a variable is

the range of statements where it is visible

how often it is referenced in a program

how much memory it uses

the number of programs it appears in

4.

MULTIPLE SELECT QUESTION

45 sec • 12 pts

A referencing environment

defines the set of statements visible to the variables of the statement

applies only the local variables visible to the statement

defines the set of statements which can validly reference a name

for a name is its defining scope and all nested subscopes

5.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

Media Image

Output in a a language that uses Dynamic Scoping :

30
20
10

30

10

20

10

10
10

10
20
30

6.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

Media Image

Output in a a language that uses Static Scoping :

30
20
10

30

10

20

10

10
10

10
20
30

7.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

A symbol table is a data structure kept by a translator that allows it to keep track of each declared name and its binding.

true

false

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?