In: Computer Science
VISUAL BASICS
Determine if each of the following statements is true or false. (1 point each, 13 total)
True/False Question |
True or False |
Several variables with different data types can be declared in a single Visual Basic statement. |
|
Several variables with the same data types can be declared in a single Visual Basic statement. |
|
Run-time errors are always detected by the compiler. |
|
A logic error results in the abrupt termination of program execution. |
|
The Visual Basic IDE informs the programmer of a syntax error. |
|
The Visual Basic IDE informs the programmer of a logic error. |
|
Errors that violate the rules of Visual Basic are called semantic errors. |
|
If not initialized at declaration, Boolean variables are initialized to False. |
|
Modulus division returns the remainder resulting from division. |
|
Constant declarations must be placed in the beginning of a program. |
|
Visual Basic sees no difference between the variables intDefects and intDEFECTS. |
|
Keywords make good variable identifiers. |
|
Private is a keyword. |
Answers with explanation:
Several variables with different data types can be declared in a single Visual Basic statement. : False
Several variables with the same data types can be declared in a single Visual Basic statement. : True
explanation:
This would be a compiler error you cannot declare diffternet data type-variables in one statement. The statement indicates for one kind. If the varaibles are of same data type we can declare in one statement.
Run-time errors are always detected by the compiler. : False
explanation:
Compiler errors are detected when there is any syntacital error or illegal writing of statements. Run-time error occurs after the compilation. The Machine that runs the code returns Runtime error if any.
A logic error results in the abrupt termination of program execution. : True
explanation:
Logic error occur while you use the application. Example an input type mismatch from the user. these abort the normal execution of application.
The Visual Basic IDE informs the programmer of a syntax error.: True
explanation:
Yes with built in features the IDE detects the syntactical errors.
The Visual Basic IDE informs the programmer of a logic error. False
explanation:
IDE does not show the logic error. Logic is dependent on the programmer, it is hard for any IDE to determine those logics in general.
Errors that violate the rules of Visual Basic are called semantic errors. : False
explanation:
Semantic errors are such errors that complier compiles them according to the VB rules but doesn't work according to the programmer. When you violate the rules of VB the complier would not understand them.
If not initialized at declaration, Boolean variables are initialized to False. : True
explanation:
The default value of boolean is false.
Modulus division returns the remainder resulting from division : True
explanation:
Yes, As other languages modulus operator returns reminder value.
Constant declarations must be placed in the beginning of a program : False
explanation:
It depends on the user.
Visual Basic sees no difference between the variables intDefects and intDEFECTS : True
explanation:
Visual basic is not a case sensitive language so it sees no difference.
Keywords make good variable identifiers : False
explanation:
It depends on programmer.
Private is a keyword: True
explanation:
private is a keyword in visual basic