🧪 VBScript MCQ Quiz Hub

VBScript Mcq Question Set 1

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

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




2. Where to Put the VBScript code




3. What does the Option Explicit directive do?




4. Which VBScript function converts an input string to all lowercase?




5. Extension of ActiveX designers




6. VBScript was launched in




7. VBScript is developed by




8. Which browser has built-in support for executing VBScript?




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




10. How to take request using get bmethod?




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




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




13. Keywords are also referred to as reserved words.




14. 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.




15. Visual Basic responds to events using which of the following?




16. When the user clicks a button, _________ is triggered.




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




18. 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?




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




20. 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?




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




22. Pseudocode is




23. An algorithm is defined as:




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




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




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




27. The value returned by InputBox is a string.




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




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




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




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




32. Keywords in Visual Basic are words that




33. To continue a long statement on another line, use:




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




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




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




37. 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




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




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




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




41. Which of the following is true?




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




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




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




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




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




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




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




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




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