Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

- A Visual Basic project could be a Windows Application? In which situations is

ID: 3704084 • Letter: #

Question

- A Visual Basic project could be a Windows Application? In which situations is this the best choice for the project type?

- A Visual Basic project could be a Console Application? In which situations is this the best choice for the project type?

- A Visual Basic project could be a Class Library? In which situations is this the best choice for the project type?

- What is different between function and subs in Vb.net?

- Write a Do until or loop in visual basic to calculate the sum of all number between 100 150.

- Give the syntax of the following concepts in Vb.net

? If else If

? Case statement

? While loop

? Do while loop

? For loop

- Determine how many event procedures are available for a Button control. (Hint: Activate the Code window for a form that has a Button control and count the available procedures.)

- What is the difference between the Name and Text properties in vb.net?

-Differentiate between array and collection in vb.net?

Explanation / Answer

Q1:A Visual Basic project could be a Windows Application? In which situations is this the best choice for the project type?

ANS: when in the project there is a demand of user interface. than window application project of Visual Basic is preferred.

A project which needs radio buttons so that user can select one option, lits box so that list can be displayed etc. need window application project.

For example Banking Mangement system, Hospital Mangement system etc. these type of projects need window forms and User interface to interact with the user.

---------------------------------------------------------------------------------------------------------------------------------------------------

Q2: A Visual Basic project could be a Console Application? In which situations is this the best choice for the project type?

ANS: console application based projects look like a terminal. the user can interact with these project by giving input through the keyboard. These consoles projects are preferred when we need a simple application. it provides a very simple interface to the user which can be accessed using keys. For example: to find the sum of two numbers, the factorial of a number, Fibonacci series, prime number find is some console based projects.

----------------------------------------------------------------------------------------------------------------------------------------------

Q3: A Visual Basic project could be a Class Library? In which situations is this the best choice for the project type?

Ans: class library define methods and data types used by the application. after making class library we get a DLL(Dynamic link library) file. this DLL file can be used in any of project by adding as Reference. So it basically reduces the complexity of our projects. We can define all methods in Library file and will simply call that method from our project.

----------------------------------------------------------------------------------------------------------------------------------------------------

Q4:What is different between function and subs in Vb.net?

Ans: sub and functions both are subroutines in Vb.net but difference is that sub don't return a value where as Function can return a value.