Testing and Debugging Application - Visual Basic Questions and Answers

1.

__________ data is a data that the application is expecting the user to enter.

   A.) Valid
   B.) Character
   C.) Invalid
   D.) Numeric

Answer: Option 'A'

Valid

You test an application by starting it and entering some sample data. Sample data can be both valid and invalid. Valid data is the data that the application is expecting the user to enter whereas invalid data is the data that the application is not expecting the user to enter.

DigitalOcean Referral Badge

2.

Errors are called as __________ in a program.

   A.) Bugs
   B.) Invalid data
   C.) Exceptions
   D.) Errors

Answer: Option 'A'

Bugs

Errors are called bugs in a program. Program bugs typically are caused by two types of errors that is syntax errors or logical errors.

DigitalOcean Referral Badge

3.

A __________ occurs while forgetting to enter an instruction, or entering the instruction in wrong order.

   A.) Logical errors
   B.) Syntax errors
   C.) Application shut down
   D.) Exceptions

Answer: Option 'A'

Logical errors
Logical errors are much more difficult to find because they are not detected by the code editor. A logical error can occur for a variety of reasons such as forgetting to enter an instruction or entering the instruction in wrong order. Some logical errors occur as a result of calculation statements that are correct syntactically but incorrect mathematically.

DigitalOcean Referral Badge

4.

A __________ is a predefined procedure that performs a specific task.

   A.) Flowchart
   B.) Pseudocode
   C.) Function
   D.) Errors

Answer: Option 'C'

Function

A function is a predefined procedure that performs a specific task and returns the value for after completing the task. If a function does not return anything its return type is void. A function can return an integer, a character a string etc.

DigitalOcean Referral Badge

5.

__________ is used to improve the appearance of numbers in an interface.

   A.) Number function
   B.) Appear function
   C.) Val function
   D.) Format function

Answer: Option 'D'

Format function

You can use the format function to improve the appearance of numbers in an interface. The function’s syntax is Format(expression, style). The expression argument specifies the number, date, time, or string, whose appearance you want to format. The style argument can be predefined style. It can also be a string containing special symbols that indicate how you want the expression displayed.

DigitalOcean Referral Badge

6.

A suggestion for fixing the error appears in the __________

   A.) Error correction window
   B.) Error detection window
   C.) Properties window
   D.) Error location window

Answer: Option 'A'

Error correction window
A suggestion for fixing the error appears in the error correction window. Move the scrollbar in the error correction window all the way to the right. The window indicates a syntax error such as missing parenthesis etc.

DigitalOcean Referral Badge

7.

The __________ function temporarily converts the string to a number and then returns the number.

   A.) Convert
   B.) Val
   C.) Integer
   D.) Value

Answer: Option 'B'

Val

The val function temporarily converts the string to a number and then returns the number. The number is storedin the computer’s internal memory only when the function is processing. The syntax of the val function is Val(string). The item within the parentheses is called an argument and represents the information that the function needs to perform its task.

DigitalOcean Referral Badge

8.

_________ the documentation refers to putting the documentation in a safe place.

   A.) Debugging
   B.) Testing
   C.) Assembling
   D.) Printing

Answer: Option 'C'

Assembling the documentation refers to putting the documentation and the print out of the application’s interface and code in a safe place, so you can refer to them, if you need to change the application in future. Your planning tools include the TOE chart, a sketch of the interface, and either the flowcharts or the pseudocode.

DigitalOcean Referral Badge

9.

A __________ occurs when you break the rules of the language.

   A.) Logical errors
   B.) Syntax errors
   C.) Application shut down
   D.) Exceptions

Answer: Option 'B'

Syntax errors

DigitalOcean Referral Badge

10.

__________ refers to the process of locating and correcting errors.

   A.) Testing
   B.) Debugging
   C.) Correcting
   D.) Retransforming

Answer: Option 'B'

Debugging

DigitalOcean Referral Badge

Testing and Debugging Application - Visual Basic Questions and Answers Download Pdf

Recent Posts