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 is default boolean value in c#?
How do I use the 'using' keyword with multiple objects?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
Explain circular reference in c#?
How many dimensions can an array have?
Are c# tuples immutable?
How do we achieve encapsulation in c#?
What are the 2 broad classifications of data types available in c#?
What is tuple in c#?
What is the execution entry point for a c# console application?
What is xml serialization in c#?
What is the difference between // comments, /* */ comments and /// comments?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)