How Well Do You Know About VBScript? Trivia Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Cimkpr
C
Cimkpr
Community Contributor
Quizzes Created: 4 | Total Attempts: 854
| Attempts: 328 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. VBScript statements can be either simple statements or compound statements.

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.

Submit
Please wait...
About This Quiz
How Well Do You Know About VBScript? Trivia Quiz - Quiz

Explore your knowledge of VBScript with this trivia quiz! Test your understanding of its features, such as sensitivity to case, support for object orientation, and syntax structure. Ideal for learners wanting to gauge their scripting skills in VBScript.

Personalize your quiz and earn a certificate with your name on it!
2. VBScript is case sensitive.

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.

Submit
3. The are 2 ways to put comment on VBScript

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.

Submit
4. VBScript doesn't supports object oriented features.

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.

Submit
5. VBScript is based on the Visual C++ family of languages.

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.

Submit
6. OBJ is a 3 letter prefix for the data type.

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.

Submit
7. Each statement of VBScript can only exist on one line.

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.

Submit
8. DescriptiveName first letter of each word is allowed to start in lower case

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.

Submit
9. Naming Rules A variable may begin with underscores

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.

Submit
10. VBScript does not support multi-line comments.

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.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 22, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Aug 17, 2010
    Quiz Created by
    Cimkpr
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
VBScript statements can be either simple statements or compound...
VBScript is case sensitive.
The are 2 ways to put comment on VBScript
VBScript doesn't supports object oriented features.
VBScript is based on the Visual C++ family of languages.
OBJ is a 3 letter prefix for the data type.
Each statement of VBScript can only exist on one line.
DescriptiveName first letter of each word is allowed to start in lower...
Naming Rules A variable may begin with underscores
VBScript does not support multi-line comments.
Alert!

Advertisement