Principles Of Programming Languages Set 4

On This Page

This set of Principles of Programming Languages Multiple Choice Questions & Answers (MCQs) focuses on Principles Of Programming Languages Set 4

Q1 | Representation of Non-terminals is done by.... and....by boxes.
  • circles and terminate
  • line and terminate
  • circle and terminal
  • line and terminal
Q2 | The non-terminals symbol is defined with a transition diagram having......................
  • one entry and two exit edge
  • two entry and one exit edge
  • one entry and one exit edge
  • one entry and no exit edge
Q3 | .........tell what is processed by giving a numerical question (function) which is the significance of the program.
  • algebraic semantics.
  • denotational semantics.
  • operational semantics.
  • axiomatic semantics.
Q4 | .....semantics are utilized when taking in a programming language and by compiler journalists.
  • algebraic semantics.
  • denotational semantics.
  • operational semantics.
  • axiomatic semantics.
Q5 | Translation semantics are used in.......
  • interpreters
  • compilers
  • errors.
  • both a and b
Q6 | A program is viewed as a state machine by...........
  • algebraic semantics.
  • denotational semantics.
  • operational semantics.
  • axiomatic semantics.
Q7 | In a compiler.....checks every character of the source text.
  • the lexical analyzer.
  • the syntax analyzer.
  • the code generator.
  • the code optimizer.
Q8 | ..... Syntax can only represent a rule in one line, whereas in.....a terminating character, the semicolon, marks and end of a rule.
  • ebnf, bnf
  • bnf,ebnf
  • all of above
  • none of these
Q9 | The full form of EBNF....
  • extended backus naur form
  • extended beginning normal form
  • extended best normal form
  • none of above
Q10 | The syntax of language id define by two sets…
  • lexical rules
  • syntactic rules
  • both a & b
  • none of this
Q11 | Syntax of ALGOL 60 was defined with
  • simply stating some rules in english
  • context-free grammar
  • simple language
  • no syntax
Q12 | Meta-language is
  • used to described other language
  • simple language
  • instruction set
  • none of this
Q13 | EBNF is metalanguage
  • true
  • false
Q14 | Postcondition is
  • predicate p required to hold after execution of statement s
  • predicate q such that execution of s terminates & p holds upon termination
  • either a or b
  • both true
Q15 | Predicate Q can be return as
  • q=t and r;t=termination,r=truth of p
  • r=i
  • q=t
  • q=r
Q16 | Predicate W is called as
  • weakest precondition
  • weakest postcondition
  • both a & b
  • none of this
Q17 | Axiomatic semantics specifies each statement of a language in terms of asemis
  • predicate translation
  • predicate transformer
  • predicate q
  • none of this
Q18 | Function mem from the set of program identifiers ID to values
  • condition
  • predicate
  • function
  • state
Q19 | I is invariant predicate that satisfies condtion
  • i and b subset of asem (l,i)
  • i and not b subset of p
  • both a and b
  • none of above
Q20 | Which of the following is true about implicit cursor?
  • implicit cursor are used for sql that are not named
  • developers should use implicit cursors with great care
  • implicit cursors are no longer a feature in oracle
  • none of above
Q21 | Which of the following is not a feature of a cursor FOR loop
  • record type declaration
  • opening and parsing of sql statement
  • fetches records from cursor
  • requires exit condition to be defined
Q22 | Which of the following are implicit cursor attributes?
  • %found
  • %too_many_rows
  • %notfound
  • %rowtype
Q23 | In left out,which of the following would be cuase an infinite loop occure in a simple loop?
  • loop
  • end loop
  • if_then
  • exit
Q24 | Which of the following statement will produce an error?
  • cursor action_cursor is
  • select name,rate,action
  • into action_record
  • none of the above
Q25 | The command used to open a CURSOR FOR loop is
  • open
  • fetch
  • parse
  • none of the above