Redirected
edited by
1,406 views
1 votes
1 votes

Which of the following statements is/are true in the context of interpreters?

  • $S1$: Interpreters process program according to the logical flow of control through the program.
  • $S2$: Interpreter translates and executes the error-free first instruction before it goes to the second.
  • $S3$: Interpreter processing time is less compared with compiler.
  • $S4$: LISP and Prolog are interpreted languages.

 

  1. Only $S1$
  2. Only $S3$
  3. Only $S1$, $S2$ and $S3$
  4. Only $S1$, $S2$ and $S4$
edited by

1 Answer

2 votes
2 votes

S1: Interpreters process program according to the logical flow of control through the program.  TRUE

S2: Interpreters translates and executes the error-free first instruction before it goes to the second. TRUE

S3: Interpreter processing time is less compared with compiler. FALSE

      Because Compiler processing time is FASTER than Interpreter.

S4: LISP and Prolog are interpreted languages. TRUE

 So, option (D) Only S1, S2 and S4 is CORRECT

Answer:

Related questions

2 votes
2 votes
4 answers
1
admin asked Mar 30, 2020
8,803 views
Which of the following is machine independent optimization?Loop optimizationRedundancy EliminationFoldingAll of the option
0 votes
0 votes
1 answer
2
admin asked Mar 30, 2020
1,220 views
The grammar $S\rightarrow aSb\mid bSa\mid SS\mid \varepsilon $ is:Unambiguous CFGAmbiguous CFGNot a CFGDeterministic CFG
2 votes
2 votes
1 answer
3
admin asked Mar 30, 2020
2,792 views
Which of the following statements is/are false?$S1$: $LR(0)$ grammar and $SLR(1)$ grammar are equivalent$S2$: $LR(1)$ grammar are subset of $LALR(1)$ grammars$S1$ only$S1...
1 votes
1 votes
1 answer
4
admin asked Mar 30, 2020
1,740 views
The optimization phase in a compiler generallyReduces the space of the codeOptimizes the code to reduce execution timeBoth (A) and (B)Neither (A) nor (B)