MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A Procedure can have:
A
a declaration part
B
an executive part
C
both a & b
D
none of the above
Explanation: 

Detailed explanation-1: -Types of Procedures Event-handling procedures are Sub procedures that execute in response to an event raised by user action or by an occurrence in a program. Function Procedures return a value to the calling code. They can perform other actions before returning.

Detailed explanation-2: -Functions can have only input parameters for it whereas Procedures can have input or output parameters. Functions can be called from Procedure whereas Procedures cannot be called from a Function.

Detailed explanation-3: -A procedure is used to perform certain task in order. A function can be called by a procedure. A procedure cannot be called by a function. DML statments cannot be executed within a function.

There is 1 question to complete.