VB.NET Questions Answers- VB.NET procedures (PartI)


VB.NET procedures (PartI)

1. What is the purpose of using procedures in VB.NET language?
a. Doing specific tasks b. Making the program to run faster
c. Reducing the number of lines of code
Check answer 2. In VB.NET sub procedure can return one value.
a. True   b. False Check answer 3.In VB.NET, a function needs to be defined using the Function keyword.
a. True    b. False Check answer 4. If a procedure returns no value, the procecure must be defined using Sub keyword.
a. True    b. False Check answer 5.In a function, The return statement can used to return a result. Another way to return the result is assigning the result to the function name.
a. True    b. False Check answer 6. A local variable declared in a procedure is not usable out side that procedure.
a. True   b. False Check answer 7. A procedure can have more than one parameter. Values of the parameters are passed to the procedure when it is called.
a. True   b. False Check answer 8. In VB.NET, A procedure can be overloaded. Overloading a procedure means you can give the same name to many procedures, but different in their arguments.
a. True   b. False Check answer


Comments




This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.