You are on page 1of 19

Visual Basics

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT PART A

1. Visual Basic A) is a windows programming language that has been developed at Microsoft Corporation B) is one of the RAD tools as it enables the programmer to develop application very quickly and easily C) is a powerful programming language to develop sophisticated program quickly D) All the above 2. ____ are items that appear on a form, like command button, scroll bar, or check box A) Method B) Procedure C) Objects D) Events 3. ____ includes the VB development environment and use of standard tools to develop application A) Professional Edition B) Learning Edition C) Enterprise Edition D) All the above 4. An ____ file is designed to help you run programs on a Web site A) Active X Document DLL B) Active X Document EXE C) Active X Control D) Addln 5. In VB Interface, ____ list all the files that make up a single VB program A) Properties Window B) Project Explorer C) Form Layout Window D) Toolbox 6. ____ enables you to debug your VB program A) Immediate Window B) Project Window C) Form Layout Window D) All the above 7. To exit form VB application, press www.karrox.com Helpdesk: 66710528 A) Alt + P B) Alt + E C) Alt + Q D) Alt + O 8. Declaring the local variable using the ____ keyword preserves its value even when a procedure ends A) State B) Public C) Dim D) Private 9. Customs controls are controls available in a separate files with extensions ____ A) .CCX B) .OCX C) .VBX D) .EXE 10. A Function procedures can: A) assign values B) return values C) set reference to object D) All the above 11. The ____ statement transfer control to Sub procedure, function procedure or dynamic link library procedure A) Sub B) Call C) Set D) Let 12. MDI application are used to launch multiple documents from a main document as in the case of A) Microsoft Word B) Microsoft Excel C) Both A) and B) D) None of the above

13. Submenu is used when: kctmhelpdesk@karrox.com Page 1 of 19

Visual Basics

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT A) Read only B) Connect C) Recordset D) Refresh 20. To add new record to a recordset, use the ____ method A) AddNew B) Append C) AddRecord D) SetNew 21. What are the advantages of creating and accessing structured database A) Lets to write programs that use existing database B) Allows the application to share data with other programs C) Simplifies the programming D) All the above 22. ____ is the top level database object A) Workspace Object B) DB Engine Object C) Container Object D) Recordset Object 23. The ____ method is used to add each field to its table and to add each table to the database A) AddField B) AddTableDef C) Append D) CreateField 24. The ____ method is used to perform the SQL action query A) EXECUTE B) DISPLAY C) SHOW D) IDENTIFY

A) menu bar is full B) a particular menu control is seldom used C) you want to emphasize one menu control relationship to another D) All the above 14. ____ allow the user to open a menu pressing the Alt key and typing a designed letter A) Short cut key B) Access key C) Auto key D) All the above 15. One can open the ____ in one of the three ways- Output, Append or Input A) Sequential file B) Random Access file C) Binary files D) All the above 16. Menus can be created quickly by using the ____ A) Menu-editor utility B) RDO C) ADO D) all the above 17. ____ providers a universal database connectivity application programming interface that enables application to access data in a wide range of proprietary database A) Jet Database B) ODBC C) ISAM database D) All the above 18. The ____ is only supported on 32-bit operating systems such as Windows 95 & Windows NT A) ADO B) RDO C) DAO D) ODBC API

19. The ____ property specific the type of database to open www.karrox.com Helpdesk: 66710528

25. ActiveX controls have file name extension ____ kctmhelpdesk@karrox.com Page 2 of 19

Visual Basics A) .ACX B) .AVT C) .OCX D) .OCT 26. The DLL file

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT B) Number, Helpline C) Helpcontext, last DLL Error D) All the above 32. ____ error encountered when you Open, Read or Write simple files A) General file B) Physical media C) Program code D) Database errors 33. Use the ____ keyword to return to the location in the program that caused the error A) Resume Label B) Resume Next C) Resume D) Resume Previous 34. Identify the flags available to describe a popup behaviour A) Vb B) Vb C) Vb D) All Popup Menu Right Button Popup Menu Right Align Popup Menu Center the above

A) is loaded and unloaded as needed by VB B) contains subprograms designed to be used as building blocks when creating a standalone program C) is in-process server D) All the above 27. Which among these is not an part of the Data Report A) Data Report object B) Application object C) Data Report control D) None of the above 28. In the Data Report designer, ____ can be used for summary material, like conclusions or grand totals using the Function control A) Report Header B) Page Header C) Report Footer D) Page Footer 29. The ____ function returns the positions of the first occurrence of one string within another A) Instr B) Strlen C) Len D) String 30. In the function Rnd [(number)], if number is>0, Rnd generates: A) same number every time, using number as the seed B) next random number in the sequence C) most recently generated number not supplied next number in the sequence D) None of the above

35. Select the true statement A) Atleast one MDI child from must be loaded and visible when you access the Active Form Property B) At runtime, child from are displayed within the internal area of the MDI form C) None of above D Both A) and B) 36. An application can have ____ MDI form/s A) Only one B) Only two C) Only 6 D) Unlimited

31. Which among these is the property of Err object A) Description, source www.karrox.com

37. OLE DB provides high performance access to any data source including ____ A) Relational database B) Non relational database kctmhelpdesk@karrox.com Page 3 of 19

Helpdesk: 66710528

Visual Basics KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT C) Email and file systems, text and graphic D) Word key D) All the above 44. The _____ function returns a string without 38. Which among these is not an method the trailing spaces supported by VB A) Ltrim( ) A) Find Current B) Trim( ) B) Find Last C) Rtrim( ) C) Find Previous D) Strim( ) D) None of the above 45. A jet database is one with extension _____ 39. Which among these is not an component of ADO data model A) .jdb B) .mdb A) ActiveX Recordset C) .mjb B) ActiveX Connection D) .jmd C) ActiveX Data Control D) None of the above 46. The _____ is only supported on 32 bit operating system such as Windows 95 & Windows 40. While creating User Controls, when the user NT executes the complied operation, ____ A) ADO A) Design time instance is destroyed B) ODBC API B) Run-time instance is created C) RDO C) Design time instance of the user control is D) DAO created D) All the above 47. Which among these Find methods is not supported in VB 41. Any time a user presses a key, moves the mouse or clicks the mouse button such an action A) FindNext is called an _____ B) FindCurrent C) FindPrevious A) Event D) None of the above B) Procedure C) Function 48. The _____ are used to read & update data D) Property stored in Relational Database Management System that are external to VB & Microsoft jet 42. The caption of a button represents a/an Data engine _____ A) ADO,DAO A) Trigger B) RDO,ADO B) Property C) RDO,RDC C) Function D) ADO,RDO D) Alert

49. The Data report designer consists of 43. _____ allows the user to open a menu pressing the Alt key & typing a designated letter A) Short cut key B) Access key C) Secret key www.karrox.com A) Section object B) Data Report object C) Data Report Control D) All the above kctmhelpdesk@karrox.com Page 4 of 19

Helpdesk: 66710528

Visual Basics KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT 50. The _____ function returns the numbers 56. The visual basic interface consists of forms contained in a string and______ A) Int B) Val C) Num D) Str 51. The Arguments of the MsgBox function is/are A) prompt, buttons B) title, help file C) context D) All the above 52. _____ error is encountered when you Open, Read or Write simple files A) Physical media B) General file C) Program code D) All the above 53. Pick the incorrect statement A) We have to explicitly declare or create variables in VB B) A general procedure tells the application how to perform a specific task C) Both A) & B) D) None of the above 54. When a parameter is passed by reference A) The Copy of the original variable is sent ti the function B) The address of the original variable is sent to the function C) The function can change the value of the variable but the original is not changed D) All the above are true A) tables B) rows C) columns D) objects 57. Objects are items that appear on a______ A) sheet B) page C) form D) table 58. _______ is an example of an object A) window B) user interface C) form D) command button 59. Any time a user presses a key, moves the mouse , or clicks the mouse button, such an action is called an______ A) event B) tool C) control D) state 60. Use the _____ property to load MDI child window as hidden & leave them hidden until you display them using the show method A) AutoShowProperty B) AutoShowChildren C) AutoHiddenShow D) AutoWindowShow

55. The constant value for the window style named argument, VbNormalFocus is_____ A) 0 B) 1 C) 2 D) 3 www.karrox.com Helpdesk: 66710528

61. To display the current record number use the _____ property of the Recordset object A) Resolve Position property B) Absolute Position property C) Display Position property D) Current Position property

kctmhelpdesk@karrox.com Page 5 of 19

Visual Basics KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT 62. If you want the Report Header to be the first 68. ________ is the most widely used interface page in the report, set its ForcePageBreak to relational data property to ____ A) ODBC A) rpPageBreakAfter B) JDK B) rptPageBreakbefore C) OLE C) rptPageBreakprevious D) Jet database D) None of the above. 69. ____ provides a way to move and resize 63. A DLL file is ____server forms and controls A) out-of-process B) in-process C) in-between-process D) None 64. Which of the following ActiveX object cab be placed on internet explorer? A) ActiveX DLL B) ActiveX Document C) ActiveX Exe D) Both A) and C) 65. ______ is used to separate the items in the menu A) / B) C) sep D) None of the above 66. Which of the following characters indicate that words following it are comments? A) B) / C) // D) ! A) Pointer B) Painter C) Indicator D) None of the above 70. The properties that must be set to bind a data-bound control to a data control are_____ A) data source B) Data Field C) Both A) and B) D) Data Space 71. Dynamic arrays are arrays whose size is set at A) compile time B) runtime C) design time D) None of the above 72. String(5,450) returns _____ A) 44444 B) 45000 C) 00450 D) None of the above

67. ______ function returns a long number to represent a length of a file in bytes A) Freefile (filename) B) Filelenght (filename C) Length (filename) D) Filelen (filename)

73. If 4 bit binary representation of 6 is shifted right 4time them it yields A) 4 B) 12 C) 3 D) 16

www.karrox.com

Helpdesk: 66710528

kctmhelpdesk@karrox.com Page 6 of 19

Visual Basics KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT 74. Which of the following methods cab be used B) 8 bytes to generate a preview of the Data Report? C) 1 bytes D) 2 bytes A) display B) preview C) show D) view 75. _______ Statement transfers control to a sub procedures, Function Procedure of Dynamic-link library (DLL) procedure A) CALL B) LINK C) CONNECT D) None of the above 76. _______ provide access to every available visual basic command A) properties window B) pull-down menus C) toolbox D) project explorer 78. The currency is a type of data whose storage size is__________ 2 8 1 4 bytes bytes bytes bytes

79. ___ is used to lock the record set during editing only A) DbOptimistic B) Dbpessimistic C) DbDynaset D) Dbreadonly 80. ___ is the file extension of Ms-access data base is A) .MDS B) .MDB C) .MDV D) .MDF

77. The integer data type has a storage size of________ A) 4 bytes

PART B 81. Match the following: Set A 1. ActiveX DLL 2. ActiveX EXE 3. Standard EXE Set B a. is designed to work as an OLE server b. creates a stand-alone program c. contain subprograms designed to be used as building blocks when creating a stand-alone program A) 1-c, 2-b, 3-a B) 1-b, 2-a, 3-c C) 1-b, 2-c, 3-a D) 1-c, 2-a, 3-b www.karrox.com Helpdesk: 66710528

82. Match the following tools of VB toolbox with their description Set A 1. Label 2. Picture Box 3. Frame Set B kctmhelpdesk@karrox.com Page 7 of 19

Visual Basics KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT a. displays text or acts as a visual container for b. a procedure that sets the value of a property other control c. a procedure that returns the value of a b. provides a visual and functional container for property controls c. displays text a user cannot interact with or A) 1-b, 2-c, 3-a modify B) 1-a, 2-b, 3-c C) 1-c, 2-b, 3-a A) 1-a, 2-c, 3-b D) 1-c, 2-a, 3-b B) 1-c, 2-a, 3-b C) 1-a, 2-b, 3-c 86. What is the output of K and R in given code D) 1-c, 2-b, 3-a K=100 R=calc(K) 83. Select the true statement with reference to Print K Procedure Print R Function calc(j as integer) as integer 1. When we declare a variable within a J=200 procedure, only code within that procedure can Calc = j access or change the value of that variable End function 2. Variables used within a procedure are known as local variable A) 100, 200 3. At procedure level there is no difference B) 200, 100 between Private and Dim C) 200, 200 D) None of the above A) 1, 3 B) 1, 2, 3 87. Match the following value of window style C) 2, 3 named argument in Shell function D) 1, 2 Set A 84. Identify the type of module form the points 1. Vb Minimized Focus given below 2. Vb Normal Focus 1. This modules are foundation of object oriented programming in VB 2. Can write code in this modules to create new objects 3. All properties and methods created can be used by other objects in the application A) Form module B) Standard module C) Class module D) System module Set B a. 0 b. 1 c. 2 d. 3 A) 1-c, 2-b B) 1-a, 2-b C) 1-b, 2-c D) 1-d, 2-a

88. Identify the scroll bar events 85. Match the following Property procedure with their description Set A 1. Property Get 2. Property Set 3. Property Let Set B a. a procedure that sets a reference to an object www.karrox.com Helpdesk: 66710528 1. 2. 3. 4. Change Property Scroll Sequence

A) 2, 3 B) 1, 3 C) 2, 4 D) 1, 2 kctmhelpdesk@karrox.com Page 8 of 19

Visual Basics 89. Identify the clipboard methods 1. 2. 3. 4. 5. Get Data() Set Data() Ger Format() Set Text Clear

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT 92. Pick out the true statement with reference to Random Access Files 1. It is like a database 2. It is made up of records of identical size 3. Each record is made up of fields that store data 4. These accessed line by line and makes them ideal for use in application that manipulate text files A) 1, 4 B) 1, 2, 3 C) 2, 4 D) 2, 3 93. Identify the agreement of open Database method of the Workspace object 1. 2. 3. 4. Options Connect Open Read Only

A) 1, 2, 3, 4, 5 B) 1, 2, 3, 4 C) 1, 2, 4, 5 D) 2, 3, 4, 5 90. Select the true statement with reference to Pop-up menu 1. It is a floating menu that is displayed over a form, independent of menu bar 2. It is also called as Display menu 3. Application that implement Pop-up menus usually display the Pop-up menu when the user clicks the right mouse button 4. Uses the following syntax: object. Popup Menu name [, flags[, x[,y[,bold command]]]] A) 2, 3, 4 B) 1, 2, 3 C) 1, 2, 3, 4 D) 1, 3, 4

A) 1, 4 B) 2, 3, 4 C) 1, 2, 3, 4 D) 1, 2, 3 94. Select the true statement with reference to Snapshot-type record set object 1. It can be update 2. is stored entirely in the workstation memory 3. can be used with ODBC datasource 4. enables to filter, sort, extract and update data from more than one table A) 1, 4 B) 2, 3, 4 C) 2, 3 D) 1, 2, 3 95. Identify different levels of locking provided by the Microsoft Jet database 1. 2. 3. 4. Table locking Database locking Document locking Page locking

91. What are the different types of dialog boxes 1. 2. 3. 4. Custom dialog box Common dialog box Standard dialog box Pre-defined dialog box

A) 1, 2, 3 B) 1, 3, 4 C) 1, 2, 4 D) 2, 3, 4 www.karrox.com Helpdesk: 66710528

A) 2, 3, 4 B) 1, 2, 4 C) 1, 2, 3 D) 1, 3, 4 kctmhelpdesk@karrox.com Page 9 of 19

Visual Basics KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT 96. Pick out the true statement with reference to 99. Identify the ActiveX components changing or deleting a field 1. ActiveX control 1. The individual field can be changed once it is 2. ActiveX Document appended to the Table Def 3. ActiveX Code 2. A field can be deleted only if it is not a part of 4. ActiveX Form any Index or Relation objects 3. The delete method of the Table Def object is A) 1, 3, 4 used to delete an individual field B) 1, 2, 4 C) 2, 3, 4 A) 1, 2 D) 1, 2, 3 B) 1, 2, 3 C) 2, 3 100. What is the output of the following? D) 1, 3 My Num = Fix (199.2) My Num = Int (-199.8) 97. Identify the incorrect statement My Num = Fix (-199.2) 1. The RollBack method cancels all the changes made to data since the most recent Begin Trans method was invoked 2. The Commit Trans Method commits all changes made to the data since the most recent Begin Trans method was invoked 3. The On Trans method begins a new transaction A) 2, 3 B) 1, 2, 3 C) 1, 2 D) 1, 3 A) 199, -199, -199 B) 199.2, 200, -199 C) 199, -200, -199 D) 199.2, -199, 199 101. Choose the correct statement with reference to custom controls 1. Are always included in the Toolbox 2. Are controls available in separate files with file extension OCX 3. These includes specialized controls, such as the common dialog control A) 1, 3 B) 1, 2, 3 C) 1, 2 D) 2, 3

98. The ____ and ____ are used to read and update data stored in RDBMS which are external to VB and Microsoft Jet Data engine 1. 2. 3. 4. RDO DAO ADO RDC

102. Select the true statement with reference to variable used within a module 1. By default, a module level variable is available to all the procedures in that module & to code in other module 2. Can create module level variables by declaration section at the top of the module 3. At module level there is no difference between Private & Dim A) 2, 3 B) 1, 2 C) 1, 3 D) 1, 2, 3

A) 2, 3 B) 1, 4 C) 1, 2 D) 2, 4 www.karrox.com Helpdesk: 66710528

kctmhelpdesk@karrox.com Page 10 of 19

Visual Basics

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT 106. What are the Programming advantages of 103. Relate the following types of modules with the ability to create & access structured database their descriptions systems Set A 1. Class module 2. Standard module 3. Form module Set B a. are containers for procedures and declarations, commonly used by other parts of the applications b. are foundations of any VB application c. are foundation of object oriented programming A) 1 c, 2 b, 3 a B) 1 a,2 b, 3 c C) 1 c, 2 a, 3 b D) 1 a, 2 c, 3 b 104. List the flags that is available to describe a pop-up menus location 1. 2. 3. 4. 5. VbPopupMenuCenterAlign VbPopupMenuRightAlign VbPopupMenuLeftButton VbPopupMenuLeftAlign VbPopupMenuRightButton 1. Lets to write programs that use existing database 2. Allows the application to share data with other programs 3. Simplifies your programming since you do not need to handle low level file accessing & searching A) 2, 3 B) 1, 2 C) 1, 2, 3 D) 1, 3 107. What are the different components to access data provided by ado 1. 2. 3. 4. ActiveXConnection ActiveXDataControl ActiveXTableDef ActiveXRecordset

A) 1, 3, 4 B) 1, 2, 3 C) 1, 2, 4 D) 2, 3, 4

A) 1, 2, 4 B) 3, 5 C) 2, 3, 4, 5 D) 1, 2

105. Identify the Data Control properties & Methods 1. 2. 3. 4. 5. Exclusive property Refresh method ReadOnly propert Recordset property Connect property

108. State whether the following statement are true or false(T/F) 1. The library functions are prewritten routines that are included as an integral part of the language 2. DHTML application allow to respond to events in an HTML page 3. Can create any Web server components when you create a DHTML application A) 1 F, 2 T, 3 T B) 1 T, 2 F, 3 T C) 1 T, 2 T, 3 F D) 1 T, 2 T, 3 T kctmhelpdesk@karrox.com Page 11 of 19

A) 1, 2, 3, 4, 5 B) 2, 3, 4, 5 C) 1, 3, 4, 5 D) 1, 2, 3, 4

www.karrox.com

Helpdesk: 66710528

Visual Basics

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT 112. Which of the following sentences is true? i. Project Explorer lists all the files that make up a single VB program ii. From provides a window where we can draw objects iii. To prevent overlap of windows Overlap help is provided by VB iv. OLE stands for Objects linking, and Embedding A) i, ii, iii B) i, iii, iv C) iii, iv D) i, ii, iv 113. Which of the following program is used to of Access database using DAO? i. Dim ws as DAO Dim Db as Database Set ws=DAO.workspaces Set Db=ws(c:\emp) ii. Dim ws as wokengine Dim Db as database Set ws=dbengine.workspaces(0) Set db=ws.opendatabase(c:\emp) iii. Dim ws as workspaces Dim db as database Set ws=dbengine.workspaces(0) Set db=ws opendatabase(c:\emp.mdb) A) ii B) iii, iv C) iii D) iv

109. _____ and _____ are used to a read and update data stored in relational Data Base Management systems (RDBMS) that are external to visual basic and Microsoft jet Data Engine A) RDO, RDC B) RDO, SDO C) RDB, DDB D) RDO, ADB 110. State which of the statement is false. i. Dirlistbox control displays and allows a user to select directors and path ii. Drive list box control displays and allows the a user to select from a list of files iii. Shape control adds a rectangle, square, ellipse or circle to a form iv. The OLE is used to displays the list of dll files used in VB application v. The Image control displays the bitmaps, icons and allows user displays the list of files A) i, iv, v B) ii, iv, v C) ii, iii, iv D) i, ii, iii

111. State which of the following statement is true which is related to data control property. i. Connect Property Specifies the type of database to open. It can include arguments such as user ID and password. ii. In Exclusive Property other application can be able to open the database during the other application has open the database iii. ReadOnly property determines whether or not you can update the database. A) i, iii B) i C) i, ii D) i, ii, iii www.karrox.com

114. Which of the function can be used to change the given word to a uppercase and to find the length of the same? A) Ucase(), len() B) Uppercase() Length() C) Upperc(), Length() D) Ucase(), lengh() 115. In form unload to destroy the instance and free the memory use command A) Set my class=destroy B) set my class=free# C) Text1. Text=zero D) Set my class=Nothing

Helpdesk: 66710528

kctmhelpdesk@karrox.com Page 12 of 19

Visual Basics KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT 116. What is the output of the following function? Len(LTrim(Round(230.55))) 119. Dim mystring As String InStr(Trim(Round(230.55)), 2) Dim rag As String Dim vid As String A) 3.1 mystring = Manipal IT Education B) 3, 3 rag = Mid(mystring, 1, 7) C) 1,3 vid = Mid(mystring, 20) rag =? 118. Append method is used to add each Vid =? _____to its table and to add each _____to the database A) Manipal, T B) Mani, E A) Field, columns C) Manipal, n B) Fields, table D) Manipal, Edu C) Datatype, row D) Recordset, table D) 3, 7 120. Match the following tools available in the toolbox which is used to draw control on the 117. Select the true statement with reference to forms IIS Application Set A 1. This uses, HTML to present its user interface 1. Label and uses compiled VB code to process requests 2. Pointer and responds to events in the browsers 3. Frames 2. Can be used on the Internal and not Intranet 3. Use the ASP object model Set B a. provides a visual and functional container for A) 1, 3 controls B) 2, 3 b. provides a way to move and resize forms and C) 1, 2 controls D) 1, 2, 3 c. displays text a user cannot interact with or modify A) 1 a, 2 c, 3 b B) 1 b, 2 c, 3 a C) 1 c, 2 b, 3 a D) 1 b, 2 a, 3 c

PART C

121. Match the following fundamental data types with their storage size Set A 1. Long 2. Boolean www.karrox.com

3. Currency 4. Decimal Set B a. 2 b. 8

Helpdesk: 66710528

kctmhelpdesk@karrox.com Page 13 of 19

Visual Basics c. 4 d. 14 e. 16

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT Open MAP.TXT For Output As File Num Write #File Num (My String My Number) Close File Num C) File Num = Free File A) 1-e, 2- a, 3-c, 4-b Open MAP.TXT For Output As File Num B) 1-c, 2- d, 3-a, 4-e Write #File Num #My String #My Number C) 1-c, 2- a, 3-b, 4-d Close File Num D) 1-e, 2- c, 3-b, 4-d D) File Num = Free File Open MAP.TXT For Output As File Num 122. What is the output of the given VB code Write #File Num, My String My Number Redim d Array (1 to 10) as integer Close File Num Dim K as integer For K=1 to 10 125. Select a valid code to write the string My D Array (K) =k first home page into the file Web.txt starting at Print d Array (K) byte location 100 Next Redim Array (1 to 5) as integer A) My String = My first home page For K = 1 to 5 File Num = Free File Print d Array (K) Open Web text for Integer As File Num, 100 Next Get#File Num, 100, My String Close File Num A) Output will be numbers 1 to 10 B) My String = My first home page B) Output will be numbers 1 to 10 and 1 to 5 File Num = Free File C) Output will be numbers 1 to 5 Open Web text for Binary As File Num D) No output error in the code Get#File Num, 100, My String Close File Num 123. Pick out the true statement with reference C) My String = My first home page to MDI application File Num = Free File Open Web text for Binary As File Num 1. your application can have only one MDI form, Get#File Num, 100, My String which contains all the applications child form Close File Num 2. An MDI application allows the user to display D) None of the above multiple documents at the same time, with each document displayed in its own window 126. Match the following Data Access objects 3. A least one MDI child form must be loaded and with their descriptions visible when you access the Active Form property, or an error is returned Set A 4. you can show an MDI child form or the MDI 1. Workspace object form with the modal argument 2. Recordset object 3. Property object A) 1, 3, 4 4. Document object B) 1, 2, 3, 4 C) 2, 3, 4 Set B D) 1, 2, 3 a. includes information about one instance of a type of object 124. Write a valid code to create MAP.TXT and b. corresponds to a cursored view into a store the contents to the string variable My string database table or the result of a query and the contents of the numeric variable My c. is used to support simultaneous transactions number into the file and its acts as a container for open database d. represent built in characteristics or a user A) File Num = Free File defined characteristics of a data access object Open MAP.TXT For Input As File Num Write #File Num, My String My Number A) 1-b, 2-c, 3-a, 4-d Close File Num B) 1-b, 2-c, 3-d, 4-a B) File Num = Free File C) 1-c, 2-b, 3-a, 4-d www.karrox.com Helpdesk: 66710528 kctmhelpdesk@karrox.com Page 14 of 19

Visual Basics D) 1-c, 2-b, 3-d, 4-a

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT 130. Identify the events that are executed when the user runs the application in the process of 127. Identify the methods that are used to creating User Control navigate through the Recordset 1. Terminate 1. Record Count 2. Write Properties 2. Move Previous 3. Resize 3. Update 4. Paint 4. Insert New 5. Read Property 5. Delete 6. Initialize 6. Move Next 7. Init Property 7. Move First A) 1, 2, 3, 4, 5, 6 A) 1, 2, 3, 4, 5, 7 B) 2, 3, 4, 5, 6, 7 B) 2, 3, 4, 5, 6, 7 C) 1, 2, 3, 4, 5, 6, 7 C) 1, 2, 3, 5, 6, 7 D) 2, 4, 5, 6, 7 D) 1, 2, 3, 4, 5, 6, 7 131. What are the features of the Data Report 128. What are the standard ActiveX controls designer available in the Learning Edition of VB 1. Textbox Controls 1. Common dialog 2. Print Preview 2. DB Grid 3. Drag and drop functionality for fields 3. DB List 4. Export Templates 4. MS Flex Grid 5. File Export 5. DB Select 6. Asynchronous Operation 6. DB Combo A) Except 6 A) 1, 2, 3, 4, 6 B) All the above B) 1, 2, 3, 4, 5, 6 C) Except 4 C) 2, 3, 4, 5, 6 D) Except 5 D) 1, 2, 4, 5, 6 129. Select the true statement with reference to User Control Object 1. It can contain code as well as Visual Objects 2. It is like the form object and adding controls to it is similar to adding controls to a form object 3. This files has the extension UTL and the graphical elements on the user controls is stored in files with extension UTX 4. The user control object created may be used in any application and the user may resize the User Control 5. It is the foundation for creating and ActiveX control A) 2, 3, 4, 5 B) 1, 2, 4, 5 C) 1, 2, 3, 5 D) 1, 2, 3, 4 132. What are the controls that are automatically placed in the Toolbox tab named Data Report. When a new Data Report Designer is added to a project 1. 2. 3. 4. 5. 6. 7. Rpt Rpt Rpt Rpt Rpt Rpt Rpt LAbel Text Box Procedure Function Image Line Shape

A) 1, 3, 4, 5, 6, 7 B) 1, 2, 3, 4, 5, 7 C) 1, 2, 4, 5, 6, 7 D) All the above 133. In the given expression, Search Str = XXpXXpXXpXXp Search Char = P My Pos = Instr (4, Search Str, Search Char, 1) kctmhelpdesk@karrox.com Page 15 of 19

www.karrox.com

Helpdesk: 66710528

Visual Basics KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT My Pos = Instr (1, Search Str, Search Char, 0) My Pos = Instr (1, Search Str, Search Char) Set A My Pos = Instr (1, Search, W) 1. 59 What does the above code returns? 2. 53 3. 71 A) 6, 9, 9, 0 4. 75 B) 5, 0, 9, Null C) 6, 0, 0, 0 Set B D) 5, 9, 9, Null a. Path/File access error b. Path not found 134. Match the following error code with their c. Disk not ready messages d. File not found e. Bad record length Set A 1. 58 A) 1 e, 2 d, 3 b, 4 a 2. 61 B) 1 d, 2 e, 3 c, 4 b 3. 71 C) 1 e, 2 d, 3 c, 4 a 4. 76 D) 1 d, 2 e, 3 b, 4 a Set B a. Path not found b. Path/file access error c. File already exists d. Disk not ready e. Disk Full A) 1-d, 2-c, 3-e, 4-b B) 1-d, 2-c, 3-e, 4-a C) 1-c, 2-e, 3-d, 4-b D) 1-c, 2-e, 3-d, 4-a 137. Identify the clipboard methods 135. Which among these are correct statements with reference to IIS application 1. This application is a VB application that lives on a Web server and responds to requests from the browser 2. It uses HTML to present its user interface and uses compiled VB code to process requests and respond to events in the browser 3. To the user, an IIS application appears to be made up of series of HTML pages 4. It bear a superficial resemblance to ASP application 5. This application for Visual Basic developers building Web-based application and Web pages A) 1, 2, 3, 4, 5 B) 1, 3, 4, 5 C) 2, 3, 4, 5 D) 1, 2, 3, 4 136. Match the following error code with their messages www.karrox.com Helpdesk: 66710528 1. 2. 3. 4. 5. 6. 7. SetText GetText() PutText() GetData() GetFormat() SetFormat() SetData

A) 2, 3, 4, 5, 6 B) 1, 3, 4, 5, 7 C) 1, 2, 4, 5, 7 D) 1, 2, 3, 4 ,7 138. Identify the valid code to create Textl.txt & store the contents of the string variable MyString & the contents of the numeric variable MyNum into the file A) FileNum = FreeFile Open Textl.txt For Input As FileNum Write #FileNum, MyString, MyNum Close FileNum kctmhelpdesk@karrox.com Page 16 of 19

Visual Basics B) FileNum = FreeFile Open Textl.txt For Output As FileNum Write #FileNum, Mystring. MyNum Close Mynum C) FileNum = FreeFile Open Textl.txt for Output As FileNum Write #FileNum, MyString, Mynum Close FileNum D) File = FreeFile Open Textl.txt For Input As FileNum Write #FileNum, MyNum Close MyNum

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT 1. It allows for complicated business processing and easy access from almost any browser or platform 2. These are for Visual Basic Developers building Web based applications, rather than web pages 3. These are intended for use on intranets & are dependent on Internet Explorer 4.0 or later 4. These use the Active Server Pages object Model 5. These appears to be made up of a series of HTML pages A) 1 F, 2 T, 3 T, 4 F, 5 F B) 1 T, 2 T, 3 T, 4 T, 5 - T C) 1 F, 2 T, 3 F, 4 F, 5 T D) 1 T, 2 F, 3 F, 4 T, 5 T

139. Relate the following Data Access Objects with their description Set A 1. Workspace object 2. Recordset object 3. Document object 4. Property object Set B a. Represents built in characteristic or a user defined characteristic of a Data Access Object b. Corresponds to a cursorred view into a Data Access Object C. Used to support simultaneous transaction & it acts as a container for open database d. Includes information about one instance of type of object A) 1 b, 2 c, 3 a, 4 d B) 1 b, 2 c, 3 d, 4 a C) 1 c, 2 b, 3 a, 4 d D) 1 c, 2 b, 3 d, 4 a 140. What are the ActiveX controls that are available in the Learning edition of Visual Basic 1. 2. 3. 4. 5. 6. Common dialog DBGrid DBList MSFlexGrid DBCombo DBSelect

142. Match the Window style named argument constant with their value Constant Value 1 2 3 4 5 VbHide vbNormalFocus vbMinimizedFocus vbMaximizedFocus vbNormalNofocus

i. 0 ii. 3 v. 4 iv. 1 iii. 2 A) 1-ii,2-iii, 3-i,4-v, 5-iv B) 1-v,2-ii, 3-i,4-iv, 5-iii C) 1-i,2-iv, 3-iii,4-ii, 5-v D) 1-iv,2-iii, -v,4-ii, 5-iv 143. Which of the following program should be executed to print numbers from 5 to 9 on the form? i. Dim k As Integer kctmhelpdesk@karrox.com Page 17 of 19

A) 1, 2, 3, 4, 5, 6 B) 1, 3, 4, 5 C) 1, 2, 3, 4, 5 D) 2, 3, 4, 5, 6 141. State whether the following statement are true or false (T/F) with reference to IIS applications www.karrox.com Helpdesk: 66710528

Visual Basics k=5 Do White k<10 Print k k=k+1 Loop ii. Dim k As Integer k=5 Do White k<=9 Print k k=k+1 Loop iv. Dim k As Integer k=4 Do While k<=10 k=k+1 Print k Loop A) Only i B) i, ii C) i, ii, iii D) Only iv

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT a Places a copy of the selected graphic in the clipboard. b Determines whether the clipboard contains text or graphics c Places a copy of the selected text in the clipboard d Places a copy of clipboard (text) contents in the specified variable. e Places a copy of the clipboard (graphic) contents in the A) 1-c, 2-e, 3-a, 4-d, 5-b B) 1-e, 2-c, 3-d, 4-a, 5-b C) 1-c, 2-e, 3-b, 4-d, 5-a. D) 1-d, 2-c, 3-a, 4-d, 5-e.

144. Which of the following function is used Hypotenuse of a Right angle triangle. i. Function(A,B) Hypotenuse=Sqr(A*2+B*2) End Function ii. Funtion(A,B) Hypotenuse=Sqr(A^2+B^2) End Function iii. Function(A,B) Hypotenuse=Sqr(A*A+B*A) End Function iv. Function(A,B) Hypotenuse=Sqr(A^2+B^2) End Function A) i, ii B) ii, iii B) iv D) ii 145. Match the following Method Action 1. SetText 2. GetText() . 3. SetData 4. GetData() specified variable. 5 GetFormat() www.karrox.com Helpdesk: 66710528

146. State which of the following statement is true related to DAO i. DBEngine is the second level database Object ii. WorkSpace acts as a container for open databases. iii. TableDef object corresponds to a stored table definition iv. setting the index allows to quickly recorder the records in the table. A) i, ii, iii, iv B) i, iii, iv C) iv D) ii, iii, iv 147. Which of the following is true related to the function with their code of the report? 1. 2. 3. 4. %I specifies Report title %t specifies Current title %d specifies current Date %P current page number

A) 1, 2, 3 B) 1, 2 C) 2, 3, 4 D) All are false kctmhelpdesk@karrox.com Page 18 of 19

Visual Basics

KARROX COLLEGE OF TECHNOLOGY & MANAGEMENT Next 148. Which of the following statement is true? i. The User control object file has the extension of A) output will be number from 1 to 10 .DLL B) output will be numbers from 1 to 5 ii. The graphical elements on the user control is stored in the files with Extension .CTX C) output will be numbers from 1 to 9 iii. Visual basic has 3 built in functions to track D) No output error in the code and report errors at run Time iv. The error number of the path not found is 77 150. Match the following data type with their v. The error number of the disk full is 63 storage sizes Set A A) i, ii, iii 1. Double B) i, ii, iii, iv 2. Decimal C) iii, v, vi 3. object D) All of the above are false 4. Variant (with numbers) Set B 149. What is the output of the given code a. 14 bytes ReDim dArray (1 to 10) as integer b. 8 bytes Dim K as integer c. 16 bytes For K=1 to 10 d. 4 bytes dArray(K) = K Print dArray(K) A) 1 b, 2 a, 3 c, 4 d Next B) 1 a, 2 b, 3 d, 4 c ReDim PRESERVE dArray(1 to 5) as integer C) 1 b, 2 a, 3 d, 4 c For K=1 to 5 D) 1 a, 2 b, 3 c, 4 d Print dArray(K)

www.karrox.com

Helpdesk: 66710528

kctmhelpdesk@karrox.com Page 19 of 19