Top 150+ Solved Principles of Programming Languages MCQ Questions Answer
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
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
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.
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.
Q. A program is viewed as a state machine by...........
a. algebraic semantics.
b. denotational semantics.
c. operational 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.
Q. ..... Syntax can only represent a rule in one line, whereas in.....a terminating character, the semicolon, marks and end of a rule.
a. ebnf, bnf
b. bnf,ebnf
c. all of above
d. none of these
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
Q. The syntax of language id define by two sets…
a. lexical rules
b. syntactic rules
c. both a & b
d. none of this
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
Q. Meta-language is
a. used to described other language
b. simple language
c. instruction set
d. none of this
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