MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

THEORY OF COMPUTATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The procedure interface
A
1
B
2
C
3
D
4
Explanation: 

Detailed explanation-1: -The procedure interface definition is used to declare the entry parameters for the procedure and to ensure that the internal definition of the procedure is consistent with the external definition (the prototype).

Detailed explanation-2: -Procedure prototype, coded in the Definition specification (D-spec) with ‘PR” in the declaration types, replaced by DCL-PR and END-PR. Procedure interface, coded in the D-spec with “PI” in the declaration type, replaced by DCL-PI and END-PI.

Detailed explanation-3: -Ü CALLP (M | R | E) (Call a Program or Procedure) The CALLP operation is used to call prototyped procedures or programs. It is a static call. If the keyword EXTPGM is specified on the prototype, the call becomes a dynamic external call; otherwise it will be a bound procedure call.

Detailed explanation-4: -A Sub procedure is a series of Visual Basic statements enclosed by the Sub and End Sub statements. The Sub procedure performs a task and then returns control to the calling code, but it does not return a value to the calling code.

There is 1 question to complete.