70
76.9k

150+ Programming in Visual Basic Solved MCQs

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Business Administration in Computer Applications (BBA [CA]) , Programming Languages .

Chapters

Chapter: Getting started with V. B.
1.

_________this control is use to display the images

A. image
B. combo
C. shape
D. text
Answer» A. image
2.

To change the control's Shape using the ______ property

A. image
B. combo
C. shape
D. text
Answer» C. shape
3.

The ____box is the standard control for accepting input from the user as well as to display the output.......

A. image
B. combo
C. shape
D. text
Answer» D. text
4.

text box can handle string (text) and numeric data but not images or pictures

A. true
B. false
C. both
D. none of these.
Answer» A. true
5.

The ________ is a very useful control for Visual Basic, as it is not only
used to provide instructions and guides to the users, it can also be used
to display outputs.

A. image
B. combo
C. label
D. text
Answer» C. label
6.

One of its most important properties of lable is ________

A. background
B. caption
C. label
D. text
Answer» B. caption
7.

One of its most important properties of text box is ______.

A. background
B. caption
C. label
D. text
Answer» D. text
8.

The _______ is one of the most important controls as it is used to execute commands.

A. command button
B. radio
C. label
D. text
Answer» A. command button
9.

The most common event associated with the command button is the _____ event,

A. click
B. change
C. double click
D. text
Answer» A. click
10.

The ______ is one of the controls that is used to handle graphics

A. picture box
B. combo
C. label
D. text
Answer» A. picture box
11.

In Picture box You can also load the picture at runtime using the ____method.

A. picture box
B. load picture
C. resize
D. text
Answer» B. load picture
12.

The_______ Control is another control that handles images and pictures

A. image control
B. load picture
C. combo
D. text
Answer» A. image control
13.

The main property of Picture Box, is LoadPicture and _____ the picture .

A. resize
B. stretchable
C. list
D. caption
Answer» A. resize
14.

The function of the ____ is to present a list of items where the user can click and select the items from the list.

A. listbox control
B. check
C. radio
D. text
Answer» A. listbox control
15.

The_____ control lets the user selects or unselects an option we can select more than one option from the group.

A. combo box
B. checkbox
C. radio
D. text
Answer» B. checkbox
16.

. When the _____is checked, its value is set to 1 and when it is unchecked, the value is set to 0.

A. combo box
B. checkbox
C. radio
D. text
Answer» B. checkbox
17.

the main property of check box is _____.

A. list
B. check
C. value
D. text
Answer» B. check
18.

The OptionButton control is used to selects one of the choices. its main property is ________value.

A. list
B. check
C. value
D. text
Answer» C. value
19.

When an option box is selected, its value is set to “True” and when it is unselected; its value is set to “False”.

A. true
B. false
C. both
D. none of these.
Answer» A. true
20.

the _____control is placed in the form together with six OptionButtons. To determine the shape of the shape control.

A. shape
B. combo
C. picture box
D. images
Answer» A. shape
21.

The property values of the shape control are 0, 1, and 2,3,4,5 which
will make it appear as a rectangle, a square, an oval shape, a circle, a
rounded rectangle and a rounded square respectively.

A. true
B. false
C. both a and b
D. none of these.
Answer» A. true
22.

The _____ is for displaying a list of drives available in your computer

A. drive list box
B. picture box
C. list box
D. dirlist box
Answer» A. drive list box
23.

When you place _____ control into the form and run the program, you will be able to select different drives from your compute

A. drive list box
B. picture box
C. list box
D. dirlist box
Answer» A. drive list box
24.

The ____ means the Directory List Box.

A. drive list box
B. picture box
C. list box
D. dirlist box
Answer» D. dirlist box
25.

_____ is for displaying a list of directories or folders in a selected drive

A. drive list box
B. picture box
C. file list box
D. dirlist box
Answer» D. dirlist box
26.

The variable can be a declared by ____statement .

A. dim
B. var
C. $
D. none of these.
Answer» A. dim
27.

Following are the logical operator

A. +
B. or
C. /
D. ?
Answer» B. or
28.

Following are the concatenation operator

A. +
B. &
C. &&
D. none of theses
Answer» B. &
29.

_________ is used to take decision .

A. if condition
B. while loop
C. for loop
D. wend
Answer» A. if condition
30.

if condition is end by ____.

A. end if condition
B. next
C. stop
D. wend
Answer» A. end if condition
31.

In _____ if condition we can check more then one condition .

A. end if condition
B. next
C. stop
D. nested
Answer» D. nested
32.

________ is used to check the condition with step by step by in this also we the condition more than one .

A. end if condition
B. next
C. else if ladder
D. nested
Answer» C. else if ladder
Chapter: Constants, Variables , Operators, Control Structure
33.

__________structure can handle conditions with multiple outcomes in an easier manner

A. select case control
B. next
C. if condition
D. nested
Answer» A. select case control
34.

When you have a loop within a loop, then you have created a______.

A. select case control
B. next
C. if condition
D. nested loop
Answer» D. nested loop
35.

in VB , The while loop is end by _____

A. stop
B. next
C. wend
D. nested
Answer» C. wend
36.

in _______ , first we check the condition , if the condition is true then it execute the true statement .

A. while
B. do while
C. if condition
D. nested
Answer» A. while
37.

In _______ first we execute the true statement . then we check the
condition if the condition is true then it again execute the true
statement .

A. while
B. do while
C. if condition
D. nested
Answer» B. do while
38.

in VB , The _______ first we check the condition , if the condition is true then it execute the true statement same as while condition .

A. for loop
B. do while
C. if condition
D. nested
Answer» A. for loop
39.

The function of _________ is to give a pop-up message to the user.

A. msgbox()
B. inputbox()
C. print
D. nested
Answer» A. msgbox()
40.

An _________ function will display a message box where the user can enter a value.

A. msgbox()
B. inputbox()
C. print
D. nested
Answer» B. inputbox()
41.

In VB , the______ is the function that computes the square root of a number.

A. sqrt()
B. round()
C. abs()
D. len()
Answer» A. sqrt()
42.

In VB, ______ is the function that rounds up a number to a certain number of decimal places.

A. sqrt()
B. round()
C. abs()
D. len()
Answer» B. round()
43.

In VB, _________is the function that returns the absolute value of a number.

A. sqrt()
B. round()
C. abs()
D. len()
Answer» C. abs()
44.

In VB, The Len function returns an integer value which is the length of a phrase or a sentence, including the empty spaces.

A. true
B. false
C. both a and b
D. none of these ..
Answer» A. true
45.

In VB, The _____function extracts a substring from the original phrase or string

A. true
B. false
C. both
D. none of these ..
Answer» A. true
46.

In VB, The______ function converts all the characters of a string to capital letters.

A. str()
B. ucase()
C. val ()
D. len()
Answer» B. ucase()
47.

In VB the _____function converts a string to a number.

A. str()
B. ucase()
C. val ()
D. len()
Answer» A. str()
48.

) In VB ,We can use Public or Dim statement to declare an array .

A. true
B. false
C. both
D. none of these ..
Answer» A. true
49.

in VB , _______is used to enter the more then one value in a single variable having same data types.

A. dim
B. structure
C. array
D. variable
Answer» C. array
50.

In VB , array is divided into 3 types ., the second type is ______.

A. single dimension
B. double dimension
C. poly dimension
D. multi dimension
Answer» B. double dimension

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.