Principles of Programming Languages MCQs | Page - 4

Dear candidates you will find MCQ questions of Principles of Programming Languages here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

M

Mr. Dubey • 52.61K Points
Coach

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

(A) algebraic semantics.
(B) denotational semantics.
(C) operational semantics.
(D) axiomatic semantics.
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

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.
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

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
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

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
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

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

(A) lexical rules
(B) syntactic rules
(C) both a & b
(D) none of this
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

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
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. Meta-language is

(A) used to described other language
(B) simple language
(C) instruction set
(D) none of this
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

Q. EBNF is metalanguage

(A) true
(B) false
(C) ---
(D) ---
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

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
View Answer Discuss Share

M

Mr. Dubey • 52.61K Points
Coach

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
View Answer Discuss Share

Jump to

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.

Image