Top 150+ Solved Principles of Programming Languages MCQ Questions Answer

From 76 to 90 of 192

Q. Representation of Non-terminals is done by.... and....by boxes.

a. circles and terminate

b. line and terminate

c. circle and terminal

d. line and terminal

  • c. circle and terminal

Q. The non-terminals symbol is defined with a transition diagram having......................

a. one entry and two exit edge

b. two entry and one exit edge

c. one entry and one exit edge

d. one entry and no exit edge

  • c. one entry and one exit edge

Q. .........tell what is processed by giving a numerical question (function) which is the significance of the program.

a. algebraic semantics.

b. denotational semantics.

c. operational semantics.

d. axiomatic semantics.

  • b. denotational semantics.

Q. .....semantics are utilized when taking in a programming language and by compiler journalists.

a. algebraic semantics.

b. denotational semantics.

c. operational semantics.

d. axiomatic semantics.

  • c. operational semantics.

Q. Translation semantics are used in.......

a. interpreters

b. compilers

c. errors.

d. both a and b

  • b. compilers

Q. A program is viewed as a state machine by...........

a. algebraic semantics.

b. denotational semantics.

c. operational semantics.

d. axiomatic semantics.

  • d. axiomatic semantics.

Q. In a compiler.....checks every character of the source text.

a. the lexical analyzer.

b. the syntax analyzer.

c. the code generator.

d. the code optimizer.

  • a. the lexical analyzer.

Q. The full form of EBNF....

a. extended backus naur form

b. extended beginning normal form

c. extended best normal form

d. none of above

  • a. extended backus naur form

Q. The syntax of language id define by two sets…

a. lexical rules

b. syntactic rules

c. both a & b

d. none of this

  • c. both a & b

Q. Syntax of ALGOL 60 was defined with

a. simply stating some rules in english

b. context-free grammar

c. simple language

d. no syntax

  • b. context-free grammar

Q. Meta-language is

a. used to described other language

b. simple language

c. instruction set

d. none of this

  • a. used to described other language

Q. EBNF is metalanguage

a. true

b. false

  • a. true

Q. Postcondition is

a. predicate p required to hold after execution of statement s

b. predicate q such that execution of s terminates & p holds upon termination

c. either a or b

d. both true

  • a. predicate p required to hold after execution of statement s

Q. Predicate Q can be return as

a. q=t and r;t=termination,r=truth of p

b. r=i

c. q=t

d. q=r

  • a. q=t and r;t=termination,r=truth of p
Subscribe Now

Get All Updates & News