What is the Difference between imperative and interrogative
code?
Answers were Sorted based on User's Feedback
Answer / nayana
Some methods return values or provide information back to
the calling code. These are called interrogative methods.
Others, called imperative methods, just perform a service
and return nothing to the calling code.
In VB.NET, methods are implemented using Sub (for
imperative methods) or Function (for interrogative methods)
routines within the class module that defines our object.
Sub routines may accept parameters, but they don't return
any result value when they are complete. Function routines
can also accept parameters, and they always generate a
result value that can be used by the calling code.
Is This Answer Correct ? | 26 Yes | 1 No |
Answer / kamlesh sharma
imperatice funcition which returns a value and
interrogative function does not return any value
Is This Answer Correct ? | 3 Yes | 22 No |
What are controls in c#?
Describe the parts of assembly.
What is difference between ienumerable and enumerable in c#?
What is static classes?
Why dependency injection is used in c#?
What is the difference between package and interface?
What is the purpose of dictionary in c#?
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
What are the different types of assembly?
What are the steps to create an assembly and add it to the gac?
How do I create a multi language, multi file assembly?
Why are strings immutable in c#?