Top 150+ Solved Principles of Programming Languages MCQ Questions Answer

From 91 to 105 of 192

Q. Predicate W is called as

a. weakest precondition

b. weakest postcondition

c. both a & b

d. none of this

  • a. weakest precondition

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

  • b. predicate transformer

Q. Function mem from the set of program identifiers ID to values

a. condition

b. predicate

c. function

d. state

  • 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

  • c. both a and b

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

  • a. implicit cursor are used for sql that are not named

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

  • b. opening and parsing of sql statement

Q. Which of the following are implicit cursor attributes?

a. %found

b. %too_many_rows

c. %notfound

d. %rowtype

  • c. %notfound

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

  • c. into action_record

Q. The command used to open a CURSOR FOR loop is

a. open

b. fetch

c. parse

d. none of the above

  • 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

  • b. it causes cursor to open

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

  • 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

  • a. only one

Q. The stepsqlite product is a PL/SQL compiler for the small database-------

a. javascript

b. java

c. mozilla firefox

d. sqlite

  • d. sqlite
Subscribe Now

Get All Updates & News