Visual Basic Quiz

Updated: May 29, 2021

1. What is visual basic (VB)?

a. Visual Basic (VB) is a third-generation event driven programming language.


2. Who created visual basic and for what purpose?

a. Visual Basic voice created by Microsoft for its component object model programming

model.


3. When was visual basic first released?

a. Visual Basic was first released in 1991 and declared legacy during 2008.


4. How many Versions of visual basic has been introduced since 1991?

a. Since 1991 when it was first introduced by Microsoft, there have been nine versions of Visual Basic.


5. Where was visual basic derived from?

a. Visual Basic was derived from a system called Tripod (also known as Ruby) originally developed by Alan Cooper, which was further developed by Microsoft.


6. What is the structure of Visual basic?

a. Visual Basic (VB) programming language was built up from standard building blocks which is a solution that comprises of one or more projects. A VB project can contain one or more assemblies and each assembly is a compilation of one or more source files. A source file provides file definition and implementation of classes, structures, modules and interfaces, which ultimately contains all the codes for the program.


7. What is the File-Level Programming Elements?

a. When you start a “project or file” and open the “code editor”, you are bound to see a set of codes, already in an organized sequence. Code are meant to follow a format, listed below is a sample:

i. Option Statements

ii. Import Statements

iii. Namespace Statements

iv. Namespace Level Statements


8. What happens if you change the format of the code?

a. If a change is made in the format of the code then it will definitely result in a compilation error.


9. What other statements can a program contain?

a. A program can also contain conditional compilation statements which can intermingle in the source file among the statements of the previous sequence.


10. what are options statements?

a. Option statements create the ground rules for the consequent code which prevents the risk of syntax and logical errors.


11. What are the different types of option statements?

a. The option explicit statement, which displays all variables and ensure they are declared and spelled correctly. This helps reduce the debugging time;

b. The option strict statement, which helps to minimize logic errors and data loss which can normally occur while working with variables of different data types.

c. The option compared statement specifies the way strings are compared to each other based on either their binary or text values.

12. What is an expression?

a. An expression is a collection of two or more terms that perform a mathematical or logical operation. The terms are usually either variables or functions that are combined with an operator to evaluate to a string or numeric result. You use expressions to perform calculations, manipulate variables, or link strings. Expressions are evaluated according to precedence order.


13. What is an Operator?

a. An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. VB provides following types of commonly used operators:

i. Arithmetic operators

ii. Comparison operators

iii. Logical/Bitwise operators

iv. Bit Shift operators

v. Assignment operators

vi. Miscellaneous operators


14. What are Arithmetic operators?

a. An arithmetic operator is a mathematical function that takes 2 operands and performs a mathematical calculation For example: 7 + 2 = 9 Here 7 and 2 are the operands and + is the arithmetic operator.


15. What are Comparison Operators?

a. Comparison operators compare two objects/operands reference variables and determines if the references refer to the same object. If object one and object two both refer to the exact same object then the result is true otherwise the result is false. Or example A= 7, B= 2, comparison operator checks if the values of the two operands are equal or not. If yes, then the condition becomes yes. (A=b) is not true.


16. What is Machine Language?

a. Machine language is a programming language, which is a collection of binary digits or bits that are computer reads and interprets.


17. What is High-Level language?

a. High level language is a programming language such as VB.


17 views0 comments

Recent Posts

See All

Templates are standard document outlines which makes the process of creation of documents less complicated. Templates describe the essential structure of components required in the compilation of the