Top 150+ Solved Principles of Programming Languages MCQ Questions Answer
Q. Predicate W is called as
a. weakest precondition
b. weakest postcondition
c. both a & b
d. none of this
Q. Axiomatic semantics specifies each statement of a language in terms of asemis
a. predicate translation
b. predicate transformer
c. predicate q
d. none of this
Q. Function mem from the set of program identifiers ID to values
a. condition
b. predicate
c. function
d. state
Q. I is invariant predicate that satisfies condtion
a. i and b subset of asem (l,i)
b. i and not b subset of p
c. both a and b
d. none of above
Q. Which of the following is true about implicit cursor?
a. implicit cursor are used for sql that are not named
b. developers should use implicit cursors with great care
c. implicit cursors are no longer a feature in oracle
d. none of above
Q. Which of the following is not a feature of a cursor FOR loop
a. record type declaration
b. opening and parsing of sql statement
c. fetches records from cursor
d. requires exit condition to be defined
Q. Which of the following are implicit cursor attributes?
a. %found
b. %too_many_rows
c. %notfound
d. %rowtype
Q. In left out,which of the following would be cuase an infinite loop occure in a simple loop?
a. loop
b. end loop
c. if_then
d. exit
Q. Which of the following statement will produce an error?
a. cursor action_cursor is
b. select name,rate,action
c. into action_record
d. none of the above
Q. What happens when rows are found using a FETCH statement
a. it causes the cursor to close
b. it causes cursor to open
c. it loads the current row values into variables
d. none of the above
Q. For which trigger timing can you reference the NEW and OLD qulaifires?
a. statement and row
b. statement only
c. row only
d. oracle forms trigger
Q. What is the maximum number of handlers processed before the PL/SQL block is exited when an exception occure?
a. only one
b. all that apply
c. all referanced
d. none
Q. The stepsqlite product is a PL/SQL compiler for the small database-------
a. javascript
b. java
c. mozilla firefox
d. sqlite
Q. What is the maximum number of ELSE clauses that can be included in an IF clause that is not nested?
a. 0
b. 1
c. 15
d. any number