🧪 VBScript MCQ Quiz Hub

VBScript Mcq Question Set 1

Choose a topic to test your knowledge and improve your VBScript skills

How will you trim the leading as well as trailing spaces of a string using VBScript?





✅ Correct Answer: 1

Where to Put the VBScript code





✅ Correct Answer: 3

What does the Option Explicit directive do?





✅ Correct Answer: 1

Which VBScript function converts an input string to all lowercase?





✅ Correct Answer: 1

Extension of ActiveX designers





✅ Correct Answer: 1

VBScript was launched in





✅ Correct Answer: 2

VBScript is developed by





✅ Correct Answer: 4

Which browser has built-in support for executing VBScript?





✅ Correct Answer: 1

In the Select Case statement, which case is used for unknown cases?





✅ Correct Answer: 1

How to take request using get bmethod?





✅ Correct Answer: 3

_______ is used for finding out about objects, properties and methods.





✅ Correct Answer: 1

The Visual Basic Code Editor will automatically detect certain types of errors as you are entering code.





✅ Correct Answer: 1

Keywords are also referred to as reserved words.





✅ Correct Answer: 1

The divide-and-conquer-method of problem solving breaks a problem into large, general pieces first, then refines each piece until the problem is manageable.





✅ Correct Answer: 1

Visual Basic responds to events using which of the following?





✅ Correct Answer: 2

When the user clicks a button, _________ is triggered.





✅ Correct Answer: 1

What property of controls tells the order they receive the focus when the tab key is pressed during run time?





✅ Correct Answer: 3

Sizing Handles make it very easy to resize virtually any control when developing applications with Visual Basic. When working in the Form Designer, how are these sizing handles displayed?





✅ Correct Answer: 3

The Properties window plays an important role in the development of Visual Basic applications. It is mainly used





✅ Correct Answer: 1

When creating a new application in Visual Basic, you are asked to supply a name for the program. If you do not specify a name, a default name is XXXXX XXXXX is this default name?





✅ Correct Answer: 2

Which of the properties in a control’s list of properties is used to give the control a meaningful name?





✅ Correct Answer: 4

Pseudocode is





✅ Correct Answer: 4

An algorithm is defined as:





✅ Correct Answer: 3

A variable declared inside an event procedure is said to have local scope





✅ Correct Answer: 1

A variable declared outside of an event procedure is said to have class-level scope.





✅ Correct Answer: 1

Option Explicit requires you to declare every variable before its use.





✅ Correct Answer: 1

The value returned by InputBox is a string.





✅ Correct Answer: 1

What is the correct statement when declaring and assigning the value of 100 to an Integer variable called numPeople





✅ Correct Answer: 4

Which of the following arithmetic operations has the highest level of precedence?





✅ Correct Answer: 3

What value will be assigned to the numeric variable x when the following statement is executed? x = 2 + 3 * 4





✅ Correct Answer: 2

Which of the following is a valid name for a variable?





✅ Correct Answer: 1

Keywords in Visual Basic are words that





✅ Correct Answer: 3

To continue a long statement on another line, use:





✅ Correct Answer: 1

What is the proper syntax when using a message dialog box?





✅ Correct Answer: 1

What will be the output of the following statement? txtBox.Text = FormatCurrency(1234.567)





✅ Correct Answer: 4

The following lines of code are correct. If age >= 13 And < 20 Then txtOutput.Text = “You are a teenager.” End If





✅ Correct Answer: 2

Given that x = 7, y = 2, and z = 4, the following If block will display “TRUE”. If (x > y) Or (y > z) Then txtBox.Text = “TRUE” End If





✅ Correct Answer: 1

Asc(“A”) is 65. What is Asc(“C”)?





✅ Correct Answer: 2

Asc(“A”) is 65. What is displayed by txtBox.Text = Chr(65) & “BC”?





✅ Correct Answer: 1

Which of the following expressions has as its value the words “Hello World? surrounded by quotation marks?





✅ Correct Answer: 1

Which of the following is true?





✅ Correct Answer: 2

Which of the following is a valid Visual Basic conditional statement?





✅ Correct Answer: 4

The three main logical operators are _____, ______, and ________.





✅ Correct Answer: 1

Which value for x would make the following condition true: x >= 5





✅ Correct Answer: 4

Which value for x would make the following condition true: Not (x >= 5)





✅ Correct Answer: 2

Which value for x would make the following condition true: (x >= 5) And (x <= 6)





✅ Correct Answer: 2

Constructs in which an If block is contained inside another If block are called:





✅ Correct Answer: 2

One may use an If block within a Select Case block.





✅ Correct Answer: 1

One may use a Select Case block within an If block.





✅ Correct Answer: 1

Select Case choices are determined by the value of an expression called a selector.





✅ Correct Answer: 1