CSE 3302 Exam 3

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

32 Terms

1
New cards

Bindings can be

Both implicit and explicit

2
New cards

Static, Dynamic and automatic are examples for what?

Storage class

3
New cards

"Colorless green ideas sleep furiously"

A sentence composed by Noam Chomsky in 1957 as an example of a sentence whose grammar is correct but whose meaning is nonsensical. It was used to show inadequacy of the then-popular probabilistic models of grammar, and the need for more structured models

4
New cards

Constructs derivations and parse trees from the leaves to the roots

Bottom-up parser

5
New cards

The parsing phase is the phase in which a compiler processes the tokens, determining the program's syntactic structure.

True

6
New cards

A symbol table must support which of the following operations regarding the bindings of names to attributes

Insertion, Lookup, Deletion (All of the above)

7
New cards

Allocations on the heap is

Dynamic

8
New cards

What represents the entire top-level phase being defined in a grammar

Start symbol

9
New cards

Representation of characters or digits

Literal

10
New cards

Symbols used to describe the grammar rules

Metasymbols

11
New cards

In class, we covered the two concepts that required to define a data type, what are those two concepts

Valid value, Valid operations

12
New cards

When a function's name is overloaded, the name resolution can be determined based upon the only type of parameters

False

13
New cards

A language in which tokens must occur in prespecified locations on the line or page is considered to be what?

Fixed format

14
New cards

The graphical description of the replacement process in a derivation of a grammar is

Parse tree

15
New cards

This can have its values corrupted at local times

Static constant

16
New cards

What translate an entire program into executable code and does not execute it

Compiler

17
New cards

Why is it important for a language to recognize two data types as being distinctly different?

Operation might not get executed

18
New cards

What are the ways to specify semantics?

Formal definition, Language reference manual

19
New cards

Those types supplied with a language, from which all other types are constructed

Predefined types

20
New cards

What the language constructs actually do

Semantics

21
New cards

A type that uses itself in its declaration is

Recursive

22
New cards

Formatting that affects the way tokens are recognized

Token delimiter

23
New cards

The process a translator goes through to determine whether type information in a program is consistent

Type checking

24
New cards

When grammar allows two distinct parse or syntax trees it is called what?

Ambiguous

25
New cards

Static binding occurs ____ execution

Before

26
New cards

The symbol table binds names to values

False

27
New cards

The stack and the heaps are the only places an allocation location for a variable may exist

False

28
New cards

Operators in expression are semantically different from function calls

False

29
New cards

Immutable objects never change state

True

30
New cards

Dynamic binding happens before execution

False

31
New cards

Operators in expressions are semantically different from function calls

False

32
New cards

Evaluate the RPN, 15 7 1 1 + - / 3 * 2 1 1 + + -

5