Getting started with V. B. Set 2
On This Page
This set of Programming in Visual Basic Multiple Choice Questions & Answers (MCQs) focuses on Getting started with V. B. Set 2
Q1 | The variable can be a declared by ____statement .
- dim
- var
- $
- none of these.
Q2 | Following are the logical operator
- +
- or
- /
- ?
Q3 | Following are the concatenation operator
- +
- &
- &&
- none of theses
Q4 | _________ is used to take decision .
- if condition
- while loop
- for loop
- wend
Q5 | if condition is end by ____.
- end if condition
- next
- stop
- wend
Q6 | In _____ if condition we can check more then one condition .
- end if condition
- next
- stop
- nested
Q7 | ________ is used to check the condition with step by step by in thisalso we the condition more than one .
- end if condition
- next
- else if ladder
- nested
Q8 | __________structure can handle conditions with multiple outcomes inan easier manner
- select case control
- next
- if condition
- nested
Q9 | When you have a loop within a loop, then you have created a______.
- select case control
- next
- if condition
- nested loop
Q10 | in VB , The while loop is end by _____
- stop
- next
- wend
- nested
Q11 | in _______ , first we check the condition , if the condition is true thenit execute the true statement .
- while
- do while
- if condition
- nested
Q12 | In _______ first we execute the true statement . then we check thecondition if the condition is true then it again execute the truestatement .
- while
- do while
- if condition
- nested
Q13 | in VB , The _______ first we check the condition , if the condition istrue then it execute the true statement same as while condition .
- for loop
- do while
- if condition
- nested
Q14 | The function of _________ is to give a pop-up message to the user.
- msgbox()
- inputbox()
- nested
Q15 | An _________ function will display a message box where the user canenter a value.
- msgbox()
- inputbox()
- nested
Q16 | In VB , the______ is the function that computes the square root of anumber.
- sqrt()
- round()
- abs()
- len()
Q17 | In VB, ______ is the function that rounds up a number to a certainnumber of decimal places.
- sqrt()
- round()
- abs()
- len()
Q18 | In VB, _________is the function that returns the absolute value of anumber.
- sqrt()
- round()
- abs()
- len()
Q19 | In VB, The Len function returns an integer value which is the lengthof a phrase or a sentence, including the empty spaces.
- true
- false
- both a and b
- none of these ..
Q20 | In VB, The _____function extracts a substring from the originalphrase or string
- true
- false
- both
- none of these ..
Q21 | In VB, The______ function converts all the characters of a string tocapital letters.
- str()
- ucase()
- val ()
- len()
Q22 | In VB the _____function converts a string to a number.
- str()
- ucase()
- val ()
- len()
Q23 | ) In VB ,We can use Public or Dim statement to declare an array .
- true
- false
- both
- none of these ..
Q24 | in VB , _______is used to enter the more then one value in a singlevariable having same data types.
- dim
- structure
- array
- variable
Q25 | In VB , array is divided into 3 types ., the second type is ______.
- single dimension
- double dimension
- poly dimension
- multi dimension