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
What are modifiers in c#?
What are get and set in c#?
What are immutable types in c#?
What is distribute by in hive?
How does inheritance work in c#?
What are the steps to create an assembly and add it to the gac?
What is the interface in c#?
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
How many parameters can a method have c#?
What is a string c#?
What is thread life cycle in c#?
What is getenumerator?
What is the difference between wrapper class and primitive?
What is returned if you pass the value 12.34 to the parsefloat () function?
Can you describe iuknown interface in short?