1.
VBScript is based on the Visual C++ family of languages.
Correct Answer
B. FALSE
Explanation
VBScript is not based on the Visual C++ family of languages. VBScript is actually based on the Visual Basic programming language. While Visual Basic and Visual C++ are both part of the Microsoft Visual Studio suite, they are separate languages with different syntax and features. Therefore, the correct answer is FALSE.
2.
VBScript doesn't supports object oriented features.
Correct Answer
B. FALSE
Explanation
VBScript does support object-oriented features. It allows the creation and manipulation of objects, inheritance, encapsulation, and polymorphism. Objects can be created using the "Class" statement, and methods and properties can be defined within the class. Inheritance is achieved through the "Inherits" statement, allowing classes to inherit properties and methods from parent classes. Encapsulation is supported through the use of public and private variables and methods within a class. Polymorphism is achieved through late binding and the ability to assign different objects to the same variable. Therefore, the correct answer is FALSE.
3.
VBScript is case sensitive.
Correct Answer
B. FALSE
Explanation
This statement is incorrect. VBScript is not case sensitive, which means that it does not differentiate between uppercase and lowercase letters in its syntax. Therefore, variables and keywords can be written in any case without affecting the functionality of the script.
4.
VBScript statements can be either simple statements or compound statements.
Correct Answer
A. TRUE
Explanation
The given statement is true. VBScript statements can be classified into two types: simple statements and compound statements. Simple statements are single-line statements that perform a specific action. Compound statements, on the other hand, are multiple-line statements that consist of a block of code enclosed within a pair of keywords or braces. Therefore, the statement is correct in stating that VBScript statements can be either simple or compound.
5.
Each statement of VBScript can only exist on one line.
Correct Answer
A. TRUE
Explanation
VBScript is a scripting language that follows a specific syntax, and each statement in VBScript is typically written on a single line. This means that a statement cannot be split across multiple lines. Therefore, the given answer "TRUE" is correct as it states that each statement of VBScript can only exist on one line.
6.
The are 2 ways to put comment on VBScript
Correct Answer
A. TRUE
Explanation
In VBScript, there are indeed two ways to put comments. The first way is to use a single quotation mark (') at the beginning of the line, which indicates that the entire line is a comment. The second way is to use the 'Rem' keyword followed by a space, which also indicates that the line is a comment. Both methods allow developers to add explanatory or descriptive text within the code without affecting its execution.
7.
VBScript does not support multi-line comments.
Correct Answer
A. TRUE
Explanation
VBScript does not support multi-line comments, meaning that it does not provide a built-in syntax for writing comments that span multiple lines. In VBScript, comments are denoted by a single quote (') at the beginning of each line. Therefore, if a developer wants to write a comment that spans multiple lines in VBScript, they would need to use a single quote at the beginning of each line, which can be cumbersome and time-consuming. Thus, the statement "VBScript does not support multi-line comments" is true.
8.
OBJ is a 3 letter prefix for the data type.
Correct Answer
A. TRUE
Explanation
The statement is true because OBJ is indeed a 3 letter prefix commonly used for data types. This prefix is often used to indicate that a variable or object is of a particular data type, such as OBJString for a string data type or OBJInt for an integer data type. Therefore, the correct answer is TRUE.
9.
DescriptiveName first letter of each word is allowed to start in lower case
Correct Answer
B. FALSE
Explanation
The given statement is FALSE. The reason being, the question states that the first letter of each word is allowed to start in lower case. This implies that the first letter of each word can be either in lower case or upper case. However, the correct answer states that the first letter of each word is not allowed to start in lower case, which contradicts the given condition. Therefore, the correct answer is FALSE.
10.
Naming Rules
A variable may begin with underscores
Correct Answer
A. TRUE
Explanation
Variables in programming languages can indeed begin with underscores. This is a common naming convention used to indicate that the variable is intended for internal use or is a private variable. It helps to differentiate between variables that are meant to be accessed directly by other parts of the program and those that are meant to be used only within a specific scope or module. Starting a variable with an underscore is not mandatory, but it is a widely accepted practice in many programming languages.