76
82.1k
Chapter:

30+ Constants, Variables , Operators, Control Structure Solved MCQs

in Programming in Visual Basic

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: Constants, Variables , Operators, Control Structure
1.

__________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
2.

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

in VB , The while loop is end by _____

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

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

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

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

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

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

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()
9.

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()
10.

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()
11.

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

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

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

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

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()
15.

In VB the _____function converts a string to a number.

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

) 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
17.

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

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

ADO stands for ________

A. activex data objects
B. activex variable objects
C. another data object
D. none of these.
Answer» A. activex data objects
20.

ADO is ActiveX-based, it can work in different platforms and different programming languages.

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

____ is insert from component , it is used to load ADO control.

A. microsoft activex data control 6
B. microsoft combo control 6
C. microsoft data grid control.
D. none of these
Answer» A. microsoft activex data control 6
22.

______file very necessary to connect to the access data base file by ADO.

A. .mdb
B. .cls
C. .frm
D. .acca
Answer» A. .mdb
23.

the ________is a term commonly used in the programming world to
describe the interface and environment that we use to create our
applications.

A. ide
B. tool bar
C. menu bar
D. none of these.
Answer» A. ide
24.

in VB,________ is called integrated because we can access virtually all of the development tools

A. ide
B. tool bar
C. menu bar
D. none of these.
Answer» A. ide
25.

_______ format. In this format, the windows associated with the
project will stay within a single container known as the parent. Code and
form-based windows will stay within the main container form.

A. mdi
B. sdi
C. form
D. code
Answer» A. mdi
26.

________ displays the commands that are required to build an application. it is used to display the menus of the particular application

A. mdi
B. sdi
C. menu bar
D. toolbox
Answer» C. menu bar
27.

The ________ is used to show quick reference to the various elements of a project namely form, classes and modules

A. mdi
B. project explorer
C. menu bar
D. toolbox
Answer» B. project explorer
28.

The ________ is show under or below the Project Explorer window

A. properties window
B. project explorer
C. menu bar
D. toolbox
Answer» A. properties window
29.

The ______ show the various characteristics of selected objects or controls.

A. properties window
B. project explorer
C. menu bar
D. toolbox
Answer» A. properties window
30.

_______ in Visual Basic has characteristics such as color and size, shape, font style, background colour, width, height etc.

A. properties window
B. project explorer
C. object
D. object browser
Answer» C. object
31.

The _________allows us to browse through the various properties, events and methods that are made available to us

A. properties window
B. project explorer
C. object
D. object browser
Answer» D. object browser
32.

__________are open from the View menu or pressing the key F2. The
left column of the Object Browser lists the objects and classes that are
available in the projects

A. properties window
B. project explorer
C. object
D. object browser
Answer» D. object browser
33.

Object Browser are open from the ________or pressing the key F2.
The left column of the Object Browser lists the objects and classes that
are available in the projects

A. view menu
B. tool menu
C. insert menu
D. object browser
Answer» A. view menu
34.

All Code in Visual Basic is stored in the form of______

A. properties window
B. module
C. object
D. object browser
Answer» B. module
35.

There are 3 type of modules following are not include in it.

A. form modules,
B. standard modules
C. class modules.
D. basic module.
Answer» D. basic module.
36.

The extension of class module is ______

A. .cls
B. .frm
C. .pvb
D. .mdb
Answer» A. .cls
37.

The long form of SDI is _________

A. multiple document interface
B. single document interface
C. single data interface
D. system document interface
Answer» B. single document interface

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.