Self-Quiz 2 Compilers Versus Interpreters Attempt Review

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Self-Quiz 2: Compilers versus interpreters: Attempt review https://my.uopeople.edu/mod/quiz/review.php?attempt=9110245&cmi...

Dashboard / My courses / CS 4402-01 - AY2023-T2 / 17 November - 23 November

/ Self-Quiz 2: Compilers versus interpreters

Started on Monday, 21 November 2022, 12:56 AM


State Finished
Completed on Monday, 21 November 2022, 1:00 AM
Time taken 4 mins 17 secs
Grade 10.00 out of 10.00 (100%)

Question 1
Correct

Mark 1.00 out of 1.00

The term compiler was coined in the 1950's by which of the following?

Select one:
a. Grace Hopper 

b. Alan Turing
c. John von Neumann
d. John Backus

Question 2
Correct

Mark 1.00 out of 1.00

Which of the following is NOT one of the steps or 'phases' of the compilation process.

Select one:
a. Code Generation
b. Syntax Analysis

c. Lexical Analysis
d. Error Checking 

1 of 4 21-Nov-22, 9:00 AM
Self-Quiz 2: Compilers versus interpreters: Attempt review https://my.uopeople.edu/mod/quiz/review.php?attempt=9110245&cmi...

Question 3
Correct

Mark 1.00 out of 1.00

The lexical analysis phase of the compilation process is also known as:

Select one:
a. Tokenizing 

b. Optimization
c. Preprocessing
d. Assembling

Question 4
Correct

Mark 1.00 out of 1.00

 Which of the following expressions can be evaluated as syntactically correct by the following grammar?
E = N | E "+" E.
N = "1" | "2" | "3" | "4" .

Select one:
a. X=1+2
b. 6 + 3 + 1
c. 4+2+1 

d. = 4 + 2 + 1

2 of 4 21-Nov-22, 9:00 AM
Self-Quiz 2: Compilers versus interpreters: Attempt review https://my.uopeople.edu/mod/quiz/review.php?attempt=9110245&cmi...

Question 5
Correct

Mark 1.00 out of 1.00

Which of the following is NOT a function supported by debuggers?

Select one:
a. Tracing
b. Breakpoints
c. Examine/modify data
d. Assemble code 

Question 6
Correct

Mark 1.00 out of 1.00

True/False: Real time, every time is a way of describing the role of a compiler as opposed to an interpreter.

Select one:
True

False 

Question 7
Correct

Mark 1.00 out of 1.00

True/False: The front end of a compiler is language-dependent and the back-end is computer dependent.

Select one:
True 

False

3 of 4 21-Nov-22, 9:00 AM
Self-Quiz 2: Compilers versus interpreters: Attempt review https://my.uopeople.edu/mod/quiz/review.php?attempt=9110245&cmi...

Question 8
Correct

Mark 1.00 out of 1.00

True/False: A compiler is a program that translates one language to another.

Select one:
True 

False

Question 9
Correct

Mark 1.00 out of 1.00

True/False: Assembler Language was developed before Machine Language.

Select one:
True

False 

Question 10
Correct

Mark 1.00 out of 1.00

True/False: The loader compiles a program and performs type checking on it.

Select one:
True
◄ Self-Quiz 1: Syntax and Semantics including EBNF and Compiler concepts
False 
Jump to...

Self-Quiz 3: Type checking►

4 of 4 21-Nov-22, 9:00 AM

You might also like