What is the Difference between imperative and interrogative
code?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does return do in for loop?

472


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

480


What is ioc containers c#?

445


What method is used to sort the elements of the array in descending order?

565


Can we inherit partial class in c#?

493






What is icomparable in c#?

516


Do events have return type c#?

499


How big is int16?

514


What is the difference between delegates and superdelegates?

461


What is virtual class in C#?

542


Explain the feature of c# language?

497


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

590


What is encapsulation in csharp?

512


What is difference between struct and class in c#?

465


Is it true that all c# types derive from a common base class?

522