HCL
Company
Category
............return a value ,but .............never return value.
Option
1)Function,sub routine
2)sub routine,Function
3)Procedure, Function
4)Function,Procedure
Read Solution (Total 6)
-
- ans: option 4
A FUNCTION is always returns a value using the return statement.A PROCEDURE may return one or more values through parameters or may not return at all. - 10 years agoHelpfull: Yes(10) No(0)
- 4th option
- 10 years agoHelpfull: Yes(1) No(0)
- 1.FUNCTION:Functions are "self contained" modules of code that accomplish a specific task. Functions usually "take in" data, process it, and "return" a result. Once a function is written, it can be used over and over and over again. Functions can be "called" from the inside of other functions.
2.PROCEDURE:A procedure is a set of command which can be executed in order.
3.SUB ROUTINE:A routine or subroutine also referred to as a function, procedure, and subprogram is a portion of code that may be called and executed anywhere in a program.
ans is 4th option - 10 years agoHelpfull: Yes(1) No(0)
- option 4...................
- 10 years agoHelpfull: Yes(0) No(0)
- 4 th option
- 10 years agoHelpfull: Yes(0) No(0)
- 4
function returns value
procedure didn't return value but it performs task - 9 years agoHelpfull: Yes(0) No(0)
HCL Other Question