Questions
Which of the following windows displays a list of all forms and modules for making an application in visual basic?
- Form layout window
- Properties window
- Form window
- Project window
- Main window
Which of the following functions is used to convert a number to a text string?
- Rnd
- Sqr
- Str
- Val
- Chr
How many bytes are used for currency data type in visual basic?
- 8 bytes
- 2 bytes
- 4 bytes
- No fix size
- 1 byte
In visual basic, + operator is used for the concatenation of the two strings. Other than +, which of the following symbols is used for this function?
- - operator
- & operator
- ^ operator
- Mod operator
- % operator
What is the meaning of the following statement in visual basic?
Number = Int(101 * Rnd) + 100
- It randomly chooses a number between 100 and 200.
- It randomly chooses a number between 101 and 200.
- It randomly chooses a number between 100 and 201.
- It randomly chooses a number between 101 and 201.
- It randomly chooses a number between 99 and 200.
The function form of the message box returns value. It it returns 5, then which of the following buttons is selected?
- OK button
- Abort button
- Cancel button
- Ignore button
- Retry button
Which branching statement(s) is/are used to cause certain actions within a program if a certain condition is met?
- If-else statements
- Looping statements
- For/Next statement
- GoTo Label statement
- Select Case statement
Which of the following controls has no events?
- Options
- Checkbok
- Command button
- Shape
- Listbox
Which common property of all dialog boxes restricts the file-names that appear in the file box?
- CancelError
- DialogTitle
- Flags
- Filter
- FileName
Which of the following options is any form event?
- Appearance
- Activate
- Cls
- Enabled
- Print
Which control is used to begin, interrupt or end a particular process in visual basic?
- Label
- Command button
- Text box
- Check boxes
- Option button
Which of the following codes is used in visual basic to print a distance between outputs like X Y Z?
- Print X; Y; Y
- Print X, Y, Z
- Print
- Print X,Y; Print Z
- Print X
In visual basic, form designer is
- a window which is used to write a visual basic code for an application
- a small screen which is used to reposition the form of the application, so that it appears in proper place when project is run
- a window used for each form to customise the designed interface of the application
- a window which contains list of the forms and modules for the current projects
- a window which display list of properties settings for a selected form or a control
What is the meaning of the following code?
Dim I, sum as integerPrivate Sub command1_click ()sum = 0For i = 3 to 15sum = sum + iNext iLabel1.caption = sum =&cstr(sum)End Sub
- This code finds the summation of the numbers from 5 to 15.
- This code finds the summation of 10 numbers.
- This code prints multipliers of 3 (from 3 to 15).
- This code finds the summation of the numbers from 3 to 15.
- There is error in the code.
In visual basic function, Format(Number, #.00000) returns what value if the number is 12784.34?
- It returns 12784.34000.
- It returns 12784.34.
- It returns 12784.3400000.
- It returns 12,784.34000.
- It returns #12784.34000.
Which of the following codes prints computer five times with its numbering using do-while loop?
- Dim i as integerPrivate Sub Command1_Click ()i = 1Do until i > 5Print computer; ii = i + 1LoopEnd Sub
- Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 5Print computer; ii = i + 1LoopEnd Sub
- Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 8Print computer; ii = i + 1LoopEnd Sub
- Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 8Print computer; ii = i + 1;LoopEnd Sub
- Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 3Print computer; ii = i + 1;LoopEnd Sub
In visual basic, minute() function returns
- an integer specifying a whole number between 0 and 60 representing the minute of the hour
- a number from 1 to 31 indicating the day portion of a given date
- a number from 1 to 12 indicating the month portion of a given date
- an integer specifying a whole number between 0 and 59 representing the minute of the hour
- a number from 100 to 9999 indicating the year portion of a given date
Visual basic string function Replace(Computer, put, pi) returns
- computer
- syntax error in function
- compier
- COMPIER
- computpier
In visual basic, which of the following functions returns a number of characters starting at the given position and on the left hand side, it replaces those characters?
- Left$ function
- Mid$ function
- Right$ function
- Format$ function
- Str function
In visual basic, module is saved with extension
- .exe
- .vbp
- .frm
- .bas
- .mod
Which of the following operators has the first priority?
- * [ Multiplication]
- / [Division]
- ^ [Exponentiation]
- + [Addition]
- - [Number negation]
In visual basic, Len(x) returns
- the integer part
- number of characters of variable x
- absolute of x
- integer of x
- square root of x
Which of the following is the correct visual basic representation of mathematical representation X2 + 4Y?
- X ^ 2 + 4 * Y
- (X ^ 2) + 4 * Y
- X * X + 4 * Y
- X * X + (4 * Y)
- (X ^ 2) + 4 * X
Which property of text box control is used to select text at run-time only?
- Text
- SelText
- SelLength
- MultiLine
- MaxLength
The function form of the message box contains three parameters: message, type and title. Which integer value of type parameter is used to display Abort/Retry/Ignore buttons in the message box?
- 0
- 4
- 2
- 1
- 5
In visual basic, statement Dim month(1 to 12) as integer defines which type of array?
- Two dimensional array
- Three dimensional array
- Dynamic array
- One dimensional array
- Control array
In visual basic, which function returns true if an expression does not contain any valid data?
- IsMissing function
- IsNull function
- IsError function
- TypeName function
- IsObject function
In visual basic, which of the following is useful as a debugging tool?
- Local window
- Immediate window
- Call stack window
- Code window
- Form layout window
In visual basic, which form template is used to give some information to the user?
- About Dialog form template
- Tip of the Day form template
- Splash screen
- Login Dialog Form template
- Options Dialog
In visual basic, which of the following events is fired when you press the key?
- KeyUp event
- KeyDown event
- KeyPress event
- GotFocus event
- LostFocus event