VBScript (Visual Basic Scripting Edition) is a lightweight scripting language developed by Microsoft. It is based on the Visual Basic programming language and is primarily used for writing scripts to automate tasks on Windows operating systems. VBScript is embedded within various Microsoft applications, such as Internet Explorer, Windows Script Host (WSH), and Active Server Pages (ASP).
Key features and characteristics of VBScript include:
Scripting Language: VBScript is a scripting language, meaning it is interpreted rather than compiled. It allows for quick and easy scripting of small programs and automation tasks.
Simplicity: VBScript is designed to be simple and easy to learn, with a syntax that resembles natural language and the Basic programming language.
Event-Driven: VBScript often works in an event-driven manner, where scripts respond to events triggered by user actions or system events.
Dynamic Typing: VBScript is dynamically typed, meaning variable types are determined at runtime based on the assigned value.
Pro Tip
You can build engaging online quizzes with our free online quiz maker.
Article outline
- Part 1: 30 VBScript quiz questions & answers
- Part 2: Download VBScript questions & answers for free
- Part 3: Free online quiz creator – OnlineExamMaker
Part 1: 30 VBScript quiz questions & answers
1. VBScript is a scripting language developed by:
a) Oracle
b) Microsoft
c) Google
d) IBM
Answer: b) Microsoft
2. VBScript is based on which programming language?
a) C++
b) Java
c) Visual Basic
d) Python
Answer: c) Visual Basic
3. VBScript is primarily used for:
a) Web development
b) Desktop application development
c) Windows automation tasks
d) Database management
Answer: c) Windows automation tasks
4. What type of scripting language is VBScript?
a) Compiled language
b) Interpreted language
c) Hybrid language
d) Object-oriented language
Answer: b) Interpreted language
5. VBScript has extensive integration with which operating system?
a) macOS
b) Windows
c) Linux
d) Android
Answer: b) Windows
6. VBScript syntax is similar to which programming language?
a) JavaScript
b) Python
c) Visual Basic (VB.NET)
d) C#
Answer: c) Visual Basic (VB.NET)
7. Which scripting host allows running VBScript directly from the Windows command prompt?
a) Internet Explorer
b) Windows Script Host (WSH)
c) Visual Studio Code
d) PowerShell
Answer: b) Windows Script Host (WSH)
8. VBScript is commonly used to automate tasks on which type of systems?
a) macOS
b) Linux
c) Windows
d) Android
Answer: c) Windows
9. VBScript supports which type of typing for variables?
a) Static typing
b) Dynamic typing
c) Strong typing
d) Weak typing
Answer: b) Dynamic typing
10. VBScript can be embedded within HTML pages to add interactivity when viewed in:
a) Chrome
b) Firefox
c) Internet Explorer
d) Safari
Answer: c) Internet Explorer
11. Which VBScript function is used to display output to the screen?
a) print()
b) echo()
c) write()
d) MsgBox()
Answer: d) MsgBox()
12. The VBScript “For…Next” loop is used for:
a) Iterating over an array
b) Executing a block of code while a condition is true
c) Performing a specific task a certain number of times
d) Executing code based on a set of conditions
Answer: c) Performing a specific task a certain number of times
13. Which VBScript operator is used for string concatenation?
a) +
b) &
c) ,
d) :
Answer: b) &
14. VBScript supports regular expressions for:
a) File operations
b) String manipulation
c) Database management
d) Object-oriented programming
Answer: b) String manipulation
15. Which VBScript function is used to read input from the user?
a) input()
b) read()
c) prompt()
d) InputBox()
Answer: d) InputBox()
Part 2: Download VBScript questions & answers for free
Download questions & answers for free
16. VBScript uses which symbol to indicate a comment?
a) //
b) ##
c) ‘
d) ;
Answer: c) ‘
17. Which VBScript function is used to convert a string to uppercase?
a) toUpperCase()
b) Upper()
c) UCase()
d) ConvertUpper()
Answer: c) UCase()
18. The VBScript “If…Then…Else” statement is used for:
a) Looping over a block of code
b) Defining a new variable
c) Making conditional decisions
d) Performing arithmetic operations
Answer: c) Making conditional decisions
19. VBScript is widely used for automating repetitive tasks on:
a) macOS
b) Linux
c) Windows
d) Android
Answer: c) Windows
20. The VBScript “Do…Loop” statement is used for:
a) Defining a function
b) Executing a block of code while a condition is true
c) Performing arithmetic operations
d) Reading input from the user
Answer: b) Executing a block of code while a condition is true
21. Which VBScript function is used to convert a string to lowercase?
a) toLowerCase()
b) Lower()
c) LCase()
d) ConvertLower()
Answer: c) LCase()
22. The VBScript “Select Case” statement is used for:
a) Looping over a block of code
b) Executing a specific block of code based on a value
c) Making conditional decisions
d) Performing arithmetic operations
Answer: b) Executing a specific block of code based on a value
23. VBScript provides basic error handling with the “_____” statement.
a) Try…Catch
b) On Error
c) Catch…Finally
d) Throw…Catch
Answer: b) On Error
24. VBScript supports which data types?
a) int, float, string, boolean
b) integer, float, char, boolean
c) number, string, boolean, date
d) integer, string, boolean, date
Answer: d) integer, string, boolean, date
25. Which VBScript function is used to convert a string to a numeric value?
a) CInt()
b) Int()
c) Num()
d) ConvertInt()
Answer: a) CInt()
Just to let you know
Sign up for a free OnlineExamMaker account to create an interactive online quiz in minutes – automatic grading & mobile friendly.
26. VBScript is commonly used to automate tasks in which type of environment?
a) Web browsers
b) Mobile apps
c) Desktop applications
d) Server-side applications
Answer: c) Desktop applications
27. The VBScript “While…Wend” loop is used for:
a) Executing a block of code while a condition is true
b) Iterating over an array
c) Performing a specific task a certain number of times
d) Executing code based on a set of conditions
Answer: a) Executing a block of code while a condition is true
28. Which VBScript function is used to convert a numeric value to a string?
a) String()
b) CStr()
c) ToString()
d) ConvertString()
Answer: b) CStr()
29. VBScript is mainly used for automation tasks on which operating system?
a) macOS
b) Linux
c) Windows
d) Android
Answer: c) Windows
30. Which VBScript object is used for handling files and folders?
a) FileObject
b) FolderObject
c) FileSystemObject
d) FileSysObject
Answer: c) FileSystemObject
Part 3: Best online quiz making platform – OnlineExamMaker
OnlineExamMaker is cloud-baed and mobile friendly, the created exams can be access on various devices, including desktop computers, laptops, smartphones, and tablets, allowing you to test your connection speed anytime, anywhere. You can personalize your quizzes by adding your branding elements such as logos, colors, and custom backgrounds. You can also set time limits, randomize question order, and customize feedback messages based on learners’ responses.
Create Your Next Quiz/Exam with OnlineExamMaker