How Well Do You Know About VBScript? Trivia Quiz

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Cimkpr
C
Cimkpr
Community Contributor
Quizzes Created: 4 | Total Attempts: 804
Questions: 10 | Attempts: 324

SettingsSettingsSettings
How Well Do You Know About VBScript? Trivia Quiz - Quiz

.


Questions and Answers
  • 1. 

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

    • A.

      TRUE

    • B.

      FALSE

    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.

    Rate this question:

  • 2. 

    VBScript doesn't supports object oriented features.

    • A.

      TRUE

    • B.

      FALSE

    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.

    Rate this question:

  • 3. 

    VBScript is case sensitive.

    • A.

      TRUE

    • B.

      FALSE

    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.

    Rate this question:

  • 4. 

    VBScript statements can be either simple statements or compound statements.

    • A.

      TRUE

    • B.

      FALSE

    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.

    Rate this question:

  • 5. 

    Each statement of VBScript can only exist on one line.

    • A.

      TRUE

    • B.

      FALSE

    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.

    Rate this question:

  • 6. 

    The are 2 ways to put comment on VBScript

    • A.

      TRUE

    • B.

      FALSE

    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.

    Rate this question:

  • 7. 

    VBScript does not support multi-line comments.

    • A.

      TRUE

    • B.

      FALSE

    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.

    Rate this question:

  • 8. 

    OBJ is a 3 letter prefix for the data type.

    • A.

      TRUE

    • B.

      FALSE

    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.

    Rate this question:

  • 9. 

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

    • A.

      TRUE

    • B.

      FALSE

    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.

    Rate this question:

  • 10. 

    Naming Rules A variable may begin with underscores

    • A.

      TRUE

    • B.

      FALSE

    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.

    Rate this question:

Quiz Review Timeline +

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
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.