Question
Which theory assumes that the average human being has an
inherent dislike of work, that most people must be threatened to get them to put forth adequate effort?Solution
Theory X: The assumptions that the average human being has an inherent dislike of work, that most people must be threatened to get them to put forth adequate effort, and that people prefer to be directed and to avoid responsibility. Theory Y: The assumptions that work is as natural as play, that workers can exercise self-direction and self-control, and that imagination, ingenuity, and creativity are widespread.
Which of the following is TRUE about symbol tables?
Which of these is an example of a peephole optimization technique?
An "activation record" (or stack frame) is created for each function call and typically contains:
If an expression `x = a + b` is computed, and later in the same basic block, `y = a + b` is computed, a compiler can apply which optimization?
Which phase of a compiler is responsible for creating a stream of tokens from the input source code?
Which of the following parsers is the most powerful (can parse the largest class of grammars)?
A grammar that produces multiple parse trees for the same input string is called:
Which phase of the compiler checks the type consistency of the program?
A 3-address instruction typically has the form:
Which parser is most commonly used in modern compilers?