On This Page

This set of Visual Basic (VB) Multiple Choice Questions & Answers (MCQs) focuses on Visual Basic VB Set 2

Q1 | What is the result of VAL(“15/08/2020”)?
  • 15
  • 15/08
  • 15/08/2020
Q2 | Which of the following is an invalid Data Type in VB?
  • integer
  • string
  • single
  • smallint
Q3 | vbRed is ____ .
  • vb colour
  • vb color
  • colour
  • intrinsic constant
Q4 | Which of the following is not a valid logical operator in VB.
  • and
  • or
  • xor
  • not
Q5 | ______ control can be used to accept input from the user.
  • label
  • form
  • text box
  • frame
Q6 | Which of the following is a non-executable statement in VB?
  • if
  • dim
  • assignment statement
  • do… while
Q7 | The constant which are readymade in VB are called as _______ constant.
  • numeric
  • string
  • named
  • intrinsic
Q8 | The constant which are defined by user is known as _____ constant.
  • numeric
  • string
  • named
  • intrinsic
Q9 | Which of the following function is invalid in VB?
  • left( )
  • lower( )
  • mid( )
  • len( )
Q10 | ____ function is used to convert a text value to a numeric value.
  • ucase( )
  • lcase( )
  • val( )
  • len( )
Q11 | Option buttons are also called as _______ buttons.
  • check
  • radio
  • round
  • select
Q12 | _____ can be used in an application to give user True/False or Yes/No Option
  • option button
  • check box
  • text box
  • label
Q13 | _____ allows the user to select any number of options at a time from a group.
  • option button
  • check box
  • text box
  • label
Q14 | _____ is used to display headings and messages.
  • option button
  • check box
  • text box
  • label
Q15 | _______ property of a Text Box is True then user cannot type anything in a Text Box.
  • text
  • locked
  • name
  • backcolor
Q16 | _______ statement cannot be used to create a loop.
  • do – while
  • for – next
  • while – wend
  • if – else
Q17 | For I = 10 To 20 …. Next I, will execute a loop _____ time/s.
  • 10
  • 11
  • 1
Q18 | For I = 1 To 20 Step 2…. Next I, will execute a loop _____ time/s.
  • 10
  • 20
  • 1
Q19 | For I = 10 To 1 Step -1…. Next I, will execute a loop _____ time/s.
  • 10
  • 20
  • 1