Quiznetik

Visual Programming | Set 2

1. A complete repaint of a form or control can be enforced by ________ method.

Correct : A. refresh.

2. ________ event is fired when there is a change in the contents of the text box.

Correct : D. Change.

3. ________ is used to link or embed object, display and manipulate data from other windows based applications.

Correct : A. OLE.

4. The _______ event occurs when the form is closed by the user.

Correct : D. unload.

5. The ________ method is used to display a form object.

Correct : A. show.

6. A ________ is a window that contains application code and has other objects placed on it to create the user interface.

Correct : C. form.

7. Visual basic project files are saved with an extension _________.

Correct : A. .vbp

8. Form files are saved with an extension __________.

Correct : A. .frm.

9. The ________ box displays the name of the selected object associated with the form.

Correct : A. object.

10. A ________ procedure is used to create and manipulate custom properties.

Correct : B. property.

11. Writing code in _________ modules can create new objects.

Correct : C. class.

12. ______ structure is for selectively executing a single block of statements from among multiple blocks of statements.

Correct : B. Select-case.

13. The ________ statement first executes the statements and then tests the condition after each execution.

Correct : B. do-loop while.

14. The _________ function with symbols representing the date and time is used to print the formatted dates and times.

Correct : B. Format.

15. ______ is the function used to compare two strings.

Correct : B. StrComp.

16. The __________ function returns the intervals between two dates in terms of years, months or days.

Correct : A. datediff.

17. The ________ function returns the length of string.

Correct : B. len.

18. ________ function returns a Variant (Long) specifying the position of the first occurrence of one string within another.

Correct : B. InStr.

19. The value property of the scroll bar represents its current value which may be any integer between ________ and ________ value.

Correct : D. minimum, maximum.

20. A Combobox combines the feature of ________ and _________.

Correct : D. textbox, listbox.

21. _________ method removes list entries from a list box at run time.

Correct : B. Delete.

22. Control arrays are added at run time using __________ statement.

Correct : B. load object.

23. ________ statement removes a control from an array.

Correct : A. Unload Object.

24. _______ is displayed as a horizontal line between items on a menu bar.

Correct : B. Separator Bar.

25. Check mark can be placed on a menu item using __________ property.

Correct : A. checked.

26. ________ argument is an integer called button.

Correct : B. First.

27. ________ event occurs when the user presses any mouse button.

Correct : D. MouseDown.

28. ________ argument gives the status of the SHIFT, CTRL and ALT keys.

Correct : A. Second.

29. ________ and ________ functions are used to add predefined dialog boxes.

Correct : A. Input( ) and Msgbox( )

30. The common Dialog is used as a _________ that lets the user select and saves files.

Correct : A. dialog box

31. ______ function specifies the file name and assigns the picture to the picture property.

Correct : B. Load picture

32. ________ method sets the colour of an individual pixel.

Correct : B. Set

33. The point method returns the ________ of a particular pixel.

Correct : A. color

34. ________ property of an image control sizes the picture loaded to it.

Correct : D. Declared variable

35. ________ event occurs whenever the size of the form is changed.

Correct : C. Resize

36. ________ method with _______ argument is used to cascade forms.

Correct : A. Arrange, VbCascade

37. A cell is an intersection of _______ and _______.

Correct : B. row, column

38. _______ property is set to change the height of a cell.

Correct : D. Row height

39. ________ kinds of rows and columns are created in the Ms Flex Grid control.

Correct : A. Two

40. _______ is a process involving a minimum of two independent entries one being the client and the other is the server.

Correct : A. Client/Server Architecture

41. The code in an application can be broken into logical components by _______ process.

Correct : D. partitioning

42. A __________ is a collection of object classes that model the structure of a relational database system.

Correct : B. DAO

43. The ________ object is a stored query definition, which is a precompiled SQL statement.

Correct : A. QueryDef

44. ________ queries are SQL statements that perform specific actions on the database.

Correct : A. Action

45. The _______ method creates a connection between the application and the ODBC database and assigns it to a database type object.

Correct : D. OpenDatabase

46. The Data control implements data access by using the __________.

Correct : A. Microsoft Jet Database Engine

47. Visual basic Programming is an _______ driven programming concept.

Correct : B. event.

48. The ________ method of the connection object is used to run the queries against the database.

Correct : A. Open Resultset

49. The print command in Visual basic programming is used to ____.

Correct : C. display the content in form

50. _____ of the query designer interface displays the input sources for querying.

Correct : B. Diagram

51. A _____ object represents a connection to a remote database used as a data source for the associated commands.

Correct : A. connection

52. ______control displays data that is calculated at runtime, using built-in functions, as the report is generated.

Correct : D. Function

53. _____ property is used to change the label value of command button.

Correct : B. caption.

54. The integer data type is range form ____ .

Correct : A. -32,768 to 32,767

55. _____occurs when the user presses any mouse button.

Correct : B. MouseDown

56. Each menu control array element is identified by a unique index value, indicated in the _________property box on the menu editor.

Correct : B. index

57. ________property of an Image control is used to automatically resize a picture and place it inside the control.

Correct : A. Stretch

58. _________ is the process of clicking the mouse button in a control and moving the mouse while holding down the mouse button.

Correct : D. Dragging

59. ________ function returns the intervals between two dates in terms of years, months or days.

Correct : A. DateDiff( )

60. _____ array size always remains the same.

Correct : A. Fixed-size

61. The ____keyword is used when we want Visual Basic to create a new instance of the original object.

Correct : B. destructor

62. ______ array size can be changed at run-time.

Correct : D. Dynamic array

63. A specific object can be referenced by an object variable of that object type using the _______keyword.

Correct : A. generic

64. The role of the _________ is to free the space allocated in the constructor.

Correct : B. new

65. A _______control variable can refer to any control on any form in an application.

Correct : B. set

66. _______can be built by adding custom properties to a Form and then they can be used as templates for new objects.

Correct : D. Classes

67. Class modules have two events ___ and ___.

Correct : A. initialize, terminate

68. The ________method is used to read a value of a property of control from container form file.

Correct : A. ReadProperty

69. An ActiveX EXE, otherwise called as an ____server

Correct : B. out of process

70. Hyper link is a web based object that is used to navigate to another document using the _______method.

Correct : B. Navigate to

71. An _______ is an object that we place on a form to enable or enhance a users interaction with an application.

Correct : A. ActiveX control

72. The ________ control is used to create a hierarchy that shows at least 2 or more levels of a database.

Correct : D. tree view

73. A ________ control is a frame that can contain of several panels, which inform the user of the status of an application. The control can hold upto 16 frames.

Correct : B. status bar

74. A _______ control acts like the dividers in a note book or the labels on a group of file folders.

Correct : D. tab strip

75. The changes are saved in a transaction using _________ operation.

Correct : C. commit

76. ________ allows us to build a query in a graphical user interface without having to learn SQL.

Correct : A. Query designer

77. The _____ menu is used to add a new tool in the tools box.

Correct : A. Project

78. A web browser control can accept ____________ targets by default.

Correct : B. drag and drop shortcuts

79. The _______ control is always cleared if the users leave the page and then use the back button to return to the page.

Correct : A. password field

80. The _______control is used for accepting multiple lines of standard text with a scroll bar attached.

Correct : B. text area

81. The _________ object to save a query definition in our application.

Correct : D. command

82. The _________, commonly known as stored procedures, perform an action on the database without returning a record set.

Correct : A. action query

83. The _______ method fills the combo box item.

Correct : A. add item

84. The ________ property of the file list box is updated according to the selected file type.

Correct : B. pattern

85. A ______ access file is like a database.

Correct : A. random

86. ________ files are accessed byte by byte.

Correct : C. Binary

87. _________ property can be used to copy, cut and paste from any text box that has focus.

Correct : A. Active control

88. Any ________ typed in one text box can be cut, copied and pasted in the other text box.

Correct : C. text

89. ________ bugs are those that occur when we attempt to create the program executable file (EXE) or run the object.

Correct : B. Compile time

90. The ________in VB displays any required or optional parameters for methods.

Correct : C. auto decre info

91. DHTML is based on the ________, which is the hierarchy of web page elements.

Correct : B. document object model

92. _________ defines a line in the code window where VB suspends execution of application.

Correct : B. BreakPoint

93. __________ returns a variant string containing a copy of a specified string without leading spaces and trailing spaces.

Correct : D. Trim ( )

94. __________ returns a date for a specified year, month and day.

Correct : A. DateSerial( )

95. _________ returns an integer containing the specified part of a given date.

Correct : B. DatePart( )

96. Variables are used for storing values ___________.

Correct : A. temporarily

97. VB encounters a new variable it assigns the default variable type and value is called ___________ declaration.

Correct : B. implicit

98. _________ statement removes the form from the display and releases its memory.

Correct : A. Unload

99. The __________ and ________ properties should be set if the user wants the label to properly display variable length lines or varying numbers of lines.

Correct : D. autosize, wordwrap

100. If the user is interested in displaying multiple lines of text in a TextBox control, set the ____________ property to true.

Correct : A. multiline