Quiznetik

Programming in Visual Basic | Set 1

1. _________this control is use to display the images

Correct : A. image

2. To change the control's Shape using the ______ property

Correct : C. shape

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

Correct : D. text

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

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

Correct : C. label

6. One of its most important properties of lable is ________

Correct : B. caption

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

Correct : D. text

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

Correct : A. command button

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

Correct : A. click

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

Correct : A. picture box

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

Correct : B. load picture

12. The_______ Control is another control that handles images and pictures

Correct : A. image control

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

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

Correct : A. listbox control

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

Correct : B. checkbox

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

Correct : B. checkbox

17. the main property of check box is _____.

Correct : B. check

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

Correct : 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”.

Correct : A. true

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

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

Correct : A. true

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

Correct : 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

Correct : A. drive list box

24. The ____ means the Directory List Box.

Correct : D. dirlist box

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

Correct : D. dirlist box

26. The variable can be a declared by ____statement .

Correct : A. dim

27. Following are the logical operator

Correct : B. or

28. Following are the concatenation operator

Correct : B. &

29. _________ is used to take decision .

Correct : A. if condition

30. if condition is end by ____.

Correct : A. end if condition

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

Correct : D. nested

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

Correct : C. else if ladder

33. __________structure can handle conditions with multiple outcomes in an easier manner

Correct : A. select case control

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

Correct : D. nested loop

35. in VB , The while loop is end by _____

Correct : C. wend

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

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

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

Correct : A. for loop

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

Correct : A. msgbox()

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

Correct : B. inputbox()

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

Correct : A. sqrt()

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

Correct : B. round()

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

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

Correct : A. true

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

Correct : A. true

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

Correct : B. ucase()

47. In VB the _____function converts a string to a number.

Correct : A. str()

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

Correct : A. true

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

Correct : C. array

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

Correct : B. double dimension

51. ADO stands for ________

Correct : A. activex data objects

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

Correct : A. true

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

Correct : A. microsoft activex data control 6

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

Correct : A. .mdb

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

Correct : A. ide

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

Correct : A. ide

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

Correct : A. mdi

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

Correct : C. menu bar

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

Correct : B. project explorer

60. The ________ is show under or below the Project Explorer window

Correct : A. properties window

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

Correct : A. properties window

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

Correct : C. object

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

Correct : D. object browser

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

Correct : D. object browser

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

Correct : A. view menu

66. All Code in Visual Basic is stored in the form of______

Correct : B. module

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

Correct : D. basic module.

68. The extension of class module is ______

Correct : A. .cls

69. The long form of SDI is _________

Correct : B. single document interface

70. The long form of MDI is____________.

Correct : A. multiple document interface

71. _______ is used to work as parents, its main property is mdi child , all the forms are open within MDI

Correct : A. multiple document interface

72. MDI is used to work as ________, its main property is mdi child , all the forms are open within MDI

Correct : A. parents

73. MDI is used to work as parents, its main property is ____ , all the forms are open within MDI

Correct : A. mdi child

74. In VB , . A _______ returns a value and a Sub Procedure does not return a value.

Correct : A. function procedure

75. In VB , . A Function procedure returns a value and a _____ does not return a value.

Correct : B. procedure

76. In VB, Standard modules and Class modules. provides three kind of property procedures but following not include in this

Correct : D. property post procedure

77. As per the syllabus we study version of VB is ___________

Correct : A. 6.0

78. __________ Displays a list of items from which a user can select one.

Correct : A. list box

79. __________Executes the timer events at specified intervals of time

Correct : D. timer controls

80. ______ Use to store alphanumeric values. A variable length string can store approximately 4 billion characters

Correct : A. string

81. _____________ is the default Visual Basic data type

Correct : C. variant

82. . In Visual Basic if we declare a variable without any data type by __________this the data type is assigned as default..

Correct : C. variant

83. A variable declared as __________ type can store both values and it can store date values 01/01/0100 up to 12/31/9999

Correct : D. date

84. ___________data types hold either a true or false value

Correct : B. boolean

85. when we Declaring a variable before programming start it is called as __________it tells Visual Basic to reserve space in memory.

Correct : A. explicit declaring

86. ______variables are not reinitialized each time Visual Invokes a procedure and therefore retains or preserves value even when a procedure ends

Correct : A. static

87. when we declare the variable in _____ of VB then it is public variable

Correct : B. public

88. when we declare the variable in a Particular control of vb then it is _________ variable .

Correct : C. local

89. The ______ selection structure allows the programmer to specify that a different action is to be performed when the condition is True than when the condition is False.

Correct : A. if ... then ..else

90. In _________: The size of the array can be changed at the run timesize changes during the program execution.

Correct : C. dynamic array

91. In ________ : The size of array always remains the same-size doesn't change during the program execution.

Correct : D. fixed array

92. . ---- is an activity that occurs during program execution such as mouse click or keystroke.

Correct : A. event

93. code in vb is stored in the form of ----

Correct : A. module

94. vb is an ----in which one can develop , run, test & debug applications.

Correct : A. object based programming language

95. ____are collections of small iconic button that resides in a Menu- bar

Correct : C. menu bar

96. .---- array size can be changed at run time .

Correct : A. dynamic

97. .----is the process of finding & removing errors.

Correct : A. debugging

98. The default property for a command control is ----

Correct : A. caption

99. VB is tool that allows you to develop application in ____

Correct : B. gui

100. ___object browser is used for finding out about object, properties & methods.

Correct : C. object browser