Question types

Start with

Question limit

of 102 available terms

Print test

5 Written questions

5 Matching questions

  1. Kleene closure
  2. nonterminal symbol
  3. leftmost derivation
  4. type lattice
  5. address alignment
  1. a zero or more occurrences of a grammar item; indicated by a superscript *.
  2. b a derivation in which the leftmost nonterminal of the string is replaced at each step.
  3. c a symbol that names a phrase in a grammar.
  4. d see alignment.
  5. e a lattice structure that shows which types are higher or derivable from others, e.g. float is higher than integer. When an operation is specified on different types, the arguments may be coerced to the least upper bound of the two types in the lattice.

5 Multiple choice questions

  1. the output language of a compiler.
  2. the fractional part of a floating-point number; also, significand.
  3. 1. in a hash table storage scheme, to calculate a new hash value for an item when the previous hash value caused a collision with an existing item. 2. the algorithm used to calculate the new hash value.
  4. a method of translating statements, e.g. in a programming language, such that the translation of a phrase is built up from the translations of its components.
  5. a kind of parser, due to Cocke, Kasami, and Younger, that efficiently produces all possible parses of an input. Also written CYK.

5 True/False questions

  1. passa phase of a compiler or assembler in which the entire source program (in its original form or some later representation) is processed.


  2. regular expressionin a grammar, a case where A ⇒ A α for some nonterminal symbol A. In top-down parsing, left recursion will cause an infinite recursion. Also, describes such a production.


  3. reduce-reduce conflictin a grammar for a shift-reduce parser, a case in which an input might be reduced by more than one production.


  4. scalar typea statement in a programming language that provides information to the compiler, such as the structure of a data record, but does not specify executable code.


  5. start symbolthe initial, or sentence nonterminal symbol S of a grammar.