BT0082

36
Subject : Visual Basic (BT0082 ) PART A Q.1 A jet database is one with extension _____ A) .jdb B) .mdb C) .mjb D) .jmd Q.2 Which among these is not an component of ADO data model A) ActiveX Recordset B) ActiveX Connection C) ActiveX Data Control D) None of the above Q.3 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 Q.4 ___ is used to lock the record set during editing only A) DbOptimistic B) Dbpessimistic C) DbDynaset D) Dbreadonly Q.5 Menus can be created quickly by using the ____ A) Menu-editor utility B) RDO C) ADO D) all the above Q.6 The ____ property specific the type of database to open A) Read only

Transcript of BT0082

Subject : Visual Basic (BT0082 )

PART A

Q.1 A jet database is one with extension _____  A) .jdb  B) .mdb  C) .mjb  D) .jmdQ.2 Which among these is not an component of

ADO data model  A) ActiveX Recordset  B) ActiveX Connection  C) ActiveX Data Control  D) None of the aboveQ.3 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) ToolboxQ.4 ___ is used to lock the record set during

editing only  A) DbOptimistic  B) Dbpessimistic  C) DbDynaset  D) DbreadonlyQ.5 Menus can be created quickly by using the

____  A) Menu-editor utility  B) RDO  C) ADO  D) all the aboveQ.6 The ____ property specific the type of

database to open  A) Read only  B) Connect  C) Recordset  D) RefreshQ.7 Any time a user presses a key, moves the

mouse or clicks the mouse button such an action is called an _____

  A) Event  B) Procedure  C) Function  D) PropertyQ.8 The _____ function returns the numbers

contained in a string  A) Int  B) Val  C) Num  D) StrQ.9 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) stateQ.10 The currency is a type of data whose storage

size is__________  A) 2 bytes  B) 8 bytes  C) 1 bytes  D) 4 bytesQ.11 Which of the following characters indicate

that words following it are comments?  A) †�  B) /  C) //  D) !Q.12 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 SpaceQ.13 The caption of a button represents a/an

_____  A) Trigger  B) Property  C) Function  D) AlertQ.14 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 PreviousQ.15 The _____ function returns a string without

the trailing spaces  A) Ltrim( )  B) Trim( )  C) Rtrim( )  D) Strim( )Q.16 The constant value for the window style

named argument, ‘VbNormalFocus’ is_____  A) 0  B) 1  C) 2  D) 3Q.17 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) CreateFieldQ.18 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 FooterQ.19 ________ is the most widely used interface

to relational data  A) ODBC  B) JDK  C) OLE  D) Jet databaseQ.20 The Arguments of the MsgBox function is/are  A) prompt, buttons  B) title, help file  C) context  D) All the aboveQ.21 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)Q.22 While creating User Controls, when the user

executes the complied operation, ____  A) Design time instance is destroyed  B) Run-time instance is created  C) Design time instance of the user control is created  D) All the aboveQ.23 ____ 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 aboveQ.24 The integer data type has a storage size

of________  A) 4 bytes  B) 8 bytes  C) 1 bytes  D) 2 bytesQ.25 ActiveX controls have file name extension

____  A) .ACX  B) .AVT  C) .OCX  D) .OCTQ.26 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 aboveQ.27 _______ 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 aboveQ.28 String(5,“450â€) returns _____�

  A) 44444  B) 45000  C) 450  D) None of the aboveQ.29 ___ is the file extension of Ms-access data

base is  A) .MDS  B) .MDB  C) .MDV  D) .MDFQ.30 ______ is used to separate the items in the

menu  A) /  B) -  C) sep  D) None of the aboveQ.31 _____ 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  D) Word keyQ.32 Submenu is used when:  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 aboveQ.33 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 trueQ.34 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 aboveQ.35 To add new record to a recordset, use the

____ method  A) AddNew  B) Append

  C) AddRecord  D) SetNewQ.36 ____ error encountered when you Open,

Read or Write simple files  A) General file  B) Physical media  C) Program code  D) Database errorsQ.37 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 propertyQ.38 ____ 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 aboveQ.39 Declaring the local variable using the ____

keyword preserves its value even when a procedure ends

  A) State  B) Public  C) Dim  D) PrivateQ.40 Dynamic arrays are arrays whose size is set

at  A) compile time  B) runtime  C) design time  D) None of the aboveQ.41 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 aboveQ.42 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) D Both A) and B)Q.43 If you want the Report Header to be the first

page in the report, set its ForcePageBreak property to ____

  A) rpPageBreakAfter  B) rptPageBreakbefore  C) rptPageBreakprevious  D) None of the above.Q.44 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 aboveQ.45 The ____ method is used to perform the SQL

action query  A) EXECUTE  B) DISPLAY  C) SHOW  D) IDENTIFYQ.46 ____ is the top level database object  A) Workspace Object  B) DB Engine Object  C) Container Object  D) Recordset ObjectQ.47 A DLL file is ____server  A) out-of-process  B) in-process  C) in-between-process  D) NoneQ.48 A Function procedures can:  A) assign values  B) return values  C) set reference to object  D) All the aboveQ.49 Which among these is the property of Err

object  A) Description, source  B) Number, Helpline  C) Helpcontext, last DLL Error  D) All the above

Q.50 The ____ statement transfer control to Sub procedure, function procedure or dynamic link library procedure

  A) Sub  B) Call  C) Set  D) LetQ.51 _______ is an example of an object  A) window  B) user interface  C) form  D) command buttonQ.52 The _____ is only supported on 32 bit

operating system such as Windows 95 & Windows NT

  A) ADO  B) ODBC API  C) RDO  D) DAOQ.53 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 aboveQ.54 ____ enables you to debug your VB program  A) Immediate Window  B) Project Window  C) Form Layout Window  D) All the aboveQ.55 The _____ are used to read & update data

stored in Relational Database Management System that are external to VB & Microsoft jet Data engine

  A) ADO,DAO  B) RDO,ADO  C) RDO,RDC  D) ADO,RDOQ.56 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 aboveQ.57 ______ 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)Q.58 OLE DB provides high performance access to

any data source including ____  A) Relational database  B) Non relational database  C) Email and file systems, text and graphic  D) All the aboveQ.59 The DLL file  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 aboveQ.60 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 aboveQ.61 Which among these Find methods is not

supported in VB  A) FindNext  B) FindCurrent  C) FindPrevious  D) None of the aboveQ.62 _______ provide access to every available

visual basic command  A) properties window  B) pull-down menus  C) toolbox  D) project explorerQ.63 Customs controls are controls available in a

separate files with extensions ____  A) .CCX  B) .OCX  C) .VBX

  D) .EXEQ.64 _____ error is encountered when you Open,

Read or Write simple files  A) Physical media  B) General file  C) Program code  D) All the aboveQ.65 ____ are items that appear on a form, like

command button, scroll bar, or check box  A) Method  B) Procedure  C) Objects  D) EventsQ.66 The visual basic interface consists of forms

and______  A) tables  B) rows  C) columns  D) objectsQ.67 Which of the following methods cab be used

to generate a preview of the Data Report?  A) display  B) preview  C) show  D) viewQ.68 An application can have ____ MDI form/s  A) Only one  B) Only two  C) Only 6  D) UnlimitedQ.69 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) AutoWindowShowQ.70 Identify the flags available to describe a popup

behaviour  A) Vb Popup Menu Right Button  B) Vb Popup Menu Right Align  C) Vb Popup Menu Center  D) All the above

Q.71 The Data report designer consists of  A) Section object  B) Data Report object  C) Data Report Control  D) All the aboveQ.72 Which among these is not an method

supported by VB  A) Find Current  B) Find Last  C) Find Previous  D) None of the aboveQ.73 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) AddlnQ.74 If 4 bit binary representation of ‘6’ is shifted

right 4time them it yields  A) 4  B) 12  C) 3  D) 16Q.75 ____ 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 aboveQ.76 To exit form VB application, press  A) Alt + P  B) Alt + E  C) Alt + Q  D) Alt + OQ.77 ____ provides a way to move and resize

forms and controls  A) Pointer  B) Painter  C) Indicator  D) None of the aboveQ.78 Objects are items that appear on a______

  A) sheet  B) page  C) form  D) tableQ.79 The ____ function returns the positions of the

first occurrence of one string within another  A) Instr  B) Strlen  C) Len  D) StringQ.80 The ____ is only supported on 32-bit

operating systems such as Windows 95 & Windows NT

  A) ADO  B) RDO  C) DAO  D) ODBC API

PART B

Q.1 _____ 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, ADBQ.2 Match the following value of window style

named argument in Shell function Set A 1. Vb Minimized Focus 2. Vb Normal Focus 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-aQ.3 Pick out the true statement with reference to

changing or deleting a field 1. The individual field can be changed once it is appended to the Table Def 2. A field can be deleted only if it is not a part of any Index or Relation objects

  A) 1, 2  B) 1, 2, 3  C) 2, 3  D) 1, 3Q.4 What is the output of the following?

My Num = Fix (199.2) My Num = Int (-199.8) My Num = Fix (-199.2)

  A) 199, -199, -199  B) 199.2, 200, -199  C) 199, -200, -199  D) 199.2, -199, 199Q.5 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 <br

  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 – TQ.6 List the flags that is available to describe a

pop-up menus location 1. VbPopupMenuCenterAlign 2. VbPopupMenuRightAlign 3. VbPopupMenuLeftButton 4. VbPopupMenuLeftAlign 5. VbPopupMenuRightButton

  A) 1, 2, 4  B) 3, 5  C) 2, 3, 4, 5  D) 1, 2Q.7 Identify the clipboard methods

1. Get Data() 2. Set Data() 3. Ger Format() 4. Set Text

5. Clear  A) 1, 2, 3, 4, 5  B) 1, 2, 3, 4  C) 1, 2, 4, 5  D) 2, 3, 4, 5Q.8 What are the Programming advantages of

the ability to create & access structured database systems 1. Lets to write programs that use existing database 2. Allows the application to share data with other programs 3. Simplifies yo

  A) 2, 3  B) 1, 2  C) 1, 2, 3  D) 1, 3Q.9 Select the true statement with reference to

Procedure 1. When we declare a variable within a procedure, only code within that procedure can access or change the value of that variable 2. Variables used within a procedure are known

  A) 1, 3  B) 1, 2, 3  C) 2, 3  D) 1, 2Q.10 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 b. a procedure that sets the value of a property <b

  A) 1-b, 2-c, 3-a  B) 1-a, 2-b, 3-c  C) 1-c, 2-b, 3-a  D) 1-c, 2-a, 3-bQ.11 Match the following tools of VB toolbox with

their description Set A 1. Label

2. Picture Box 3. Frame Set B a. displays text or acts as a visual container for other control b. provides a visual and functional container

  A) 1-a, 2-c, 3-b  B) 1-c, 2-a, 3-b  C) 1-a, 2-b, 3-c  D) 1-c, 2-b, 3-aQ.12 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 <br

  A) 1, 4  B) 2, 3, 4  C) 2, 3  D) 1, 2, 3Q.13 Match the following tools available in the

toolbox which is used to draw control on the forms Set A 1. Label 2. Pointer 3. Frames Set B a. provides a visual and functional container for controls b. provides a way to

  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 – cQ.14 What is the output of K and R in given code

K=100 R=calc(K) Print K Print R Function calc(j as integer) as integer J=200 Calc = j End function

  A) 100, 200

  B) 200, 100  C) 200, 200  D) None of the aboveQ.15 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 rec

  A) i, iv, v  B) ii, iv, v  C) ii, iii, iv  D) i, ii, iiiQ.16 Relate the following types of modules with

their descriptions 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

  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 – bQ.17 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()Q.18 The ____ and ____ are used to read and

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

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

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

  A) 1, 2, 3, 4, 5  B) 2, 3, 4, 5  C) 1, 3, 4, 5  D) 1, 2, 3, 4Q.20 Identify the type of module form the points

given below 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 us

  A) Form module  B) Standard module  C) Class module  D) System moduleQ.21 Identify the scroll bar events

1. Change 2. Property 3. Scroll 4. Sequence

  A) 2, 3  B) 1, 3  C) 2, 4  D) 1, 2Q.22 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)

  A) ii  B) iii, iv  C) iii

  D) ivQ.23 Identify different levels of locking provided by

the Microsoft Jet database 1. Table locking 2. Database locking 3. Document locking 4. Page locking

  A) 2, 3, 4  B) 1, 2, 4  C) 1, 2, 3  D) 1, 3, 4Q.24 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 othe

  A) i, iii  B) I  C) i, ii  D) i, ii, iiiQ.25 What are the different types of dialog boxes

1. Custom dialog box 2. Common dialog box 3. Standard dialog box 4. Pre-defined dialog box

  A) 1, 2, 3  B) 1, 3, 4  C) 1, 2, 4  D) 2, 3, 4Q.26 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 de

  A) 2, 3  B) 1, 2  C) 1, 3  D) 1, 2, 3Q.27 Identify the incorrect statement

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

  A) 2, 3  B) 1, 2, 3  C) 1, 2  D) 1, 3Q.28 Append method is used to add each

_____to its table and to add each _____to the database

  A) Field, columns  B) Fields, table  C) Datatype, row  D) Recordset, table Q.29 Select the true statement with reference to

IIS Application 1. This uses, HTML to present its user interface and uses compiled VB code to process requests and responds to events in the browsers 2. Can be used on the Internal and not In

  A) 1, 31, 3  B) 2, 3  C) 1, 2  D) 1, 2, 3Q.30 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

  A) 1, 4  B) 1, 2, 3  C) 2, 4  D) 2, 3Q.31 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   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-bQ.32 What is the output of the following function?

Len(LTrim(Round(230.55))) InStr(Trim(Round(230.55)), 2)

  A) 3.1  B) 3, 3  C) 1,3  D) 3, 7Q.33 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=NothingQ.34 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

  A) 2, 3, 4  B) 1, 2, 3  C) 1, 2, 3, 4  D) 1, 3, 4Q.35 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

  A) i, ii, iii  B) i, iii, iv  C) iii, iv  D) i, ii, ivQ.36 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 dia

  A) 1, 3  B) 1, 2, 3  C) 1, 2  D) 2, 3Q.37 Identify the agreement of open Database

method of the Workspace object 1. Options 2. Connect 3. Open 4. Read Only

  A) 1, 4  B) 2, 3, 4  C) 1, 2, 3, 4  D) 1, 2, 3Q.38 Identify the ActiveX components

1. ActiveX control 2. ActiveX Document 3. ActiveX Code 4. ActiveX Form

  A) 1, 3, 4  B) 1, 2, 4  C) 2, 3, 4  D) 1, 2, 3Q.39 What are the different components to

access data provided by ado 1. ActiveXConnection 2. ActiveXDataControl 3. ActiveXTableDef 4. ActiveXRecordset

  A) 1, 3, 4  B) 1, 2, 3  C) 1, 2, 4  D) 2, 3, 4Q.40 Dim mystring As String

Dim rag As String Dim vid As String mystring = “Manipal IT Education†�rag = Mid(mystring, 1, 7) vid = Mid(mystring, 20) rag =? Vid =?

  A) Manipal, T  B) Mani, E  C) Manipal, n  D) Manipal, Edu

PART C

Q.1 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 character

  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 – aQ.2 Write a valid code to create MAP.TXT and

store the contents to the string variable My string and the contents of the numeric variable My number into the file

  A)

  B)

  C)

  D)

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

  A)   B)   C)

  D) Q.4 State whether the following statement are

true or false (T/F) with reference to IIS applications 1. It allows for complicated business processing and easy access from almost any browser or platform 2. These are for Visual Basic Dev

  A)   B)   C)   D) Q.5 What are the features of the Data Report

designer 1. Textbox Controls 2. Print Preview 3. Drag and drop functionality for fields 4. Export Templates 5. File Export 6. Asynchronous Operation

  A)   B)   C)   D) Q.6 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)

  B)

  C)

  D) Q.7 Identify the clipboard methods

1. SetText 2. GetText() 3. PutText() 4. GetData() 5. GetFormat() 6. SetFormat() 7. SetData

  A)

  B)   C)   D) Q.8 Which of the following program should be

executed to print numbers from 5 to 9 on the form? i. Dim k As Integer k=5 Do White kPrint k k=k+1 Loop ii. Dim k As Integer k=5 Do White k<=9 Print k <br

  A)   B)   C)   D) Q.9 Match the following error code with their

messages Set A 1. 59 2. 53 3. 71 4. 75 Set B a. Path/File access error b. Path not found c. Disk not ready d. File not found e. Bad record length

  A)   B)   C)   D) Q.10 What is the output of the given VB code

Redim d Array (1 to 10) as integer Dim K as integer For K=1 to 10 D Array (K) =k Print d Array (K)

Next Redim Array (1 to 5) as integer For K = 1 to 5 Print d Array (K) Next

  A)   B)   C)   D) Q.11 Select a valid code to write the string “My

first home page†into the file Web.txt starting at �byte location 100

  A)

  B)

  C)

  D) Q.12 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 t

  A)   B)   C)   D) Q.13 Match the following Method Action

1. SetText 2. GetText() . 3. SetData 4. GetData() specified variable. 5 GetFormat() a Places a copy of the selected graphic in the clipboard. b Determines whether the clipboard contains tex

  A)   B)   C)   D) Q.14 In the given expression,

Search Str = “XXpXXpXXpXXp†�

Search Char = “P†�My Pos = Instr (4, Search Str, Search Char, 1) My Pos = Instr (1, Search Str, Search Char, 0) My Pos = Instr (1, Search Str, Search Char) My Pos = Instr (1, Sea

  A)   B)   C)   D) Q.15 Match the following fundamental data types

with their storage size Set A 1. Long 2. Boolean 3. Currency 4. Decimal Set B a. 2 b. 8 c. 4 d. 14 e. 16

  A)   B)   C)   D) Q.16 Identify the events that are executed when

the user runs the application in the process of creating User Control 1. Terminate 2. Write Properties 3. Resize 4. Paint 5. Read Property 6. Initialize 7. Init Property

  A)   B)   C)   D) Q.17 What are the ActiveX controls that are

available in the Learning edition of Visual Basic 1. Common dialog 2. DBGrid 3. DBList

4. MSFlexGrid 5. DBCombo 6. DBSelect

  A)   B)   C)   D) Q.18 What are the standard ActiveX controls

available in the Learning Edition of VB 1. Common dialog 2. DB Grid 3. DB List 4. MS Flex Grid 5. DB Select 6. DB Combo

  A)   B)   C)   D) Q.19 Match the following Data Access objects

with their descriptions Set A 1. Workspace object 2. Recordset object 3. Property object 4. Document object Set B a. includes information about one instance of a type of object <b

  A)   B)   C)   D) Q.20 Match the Window style named argument

constant with their value Constant Value 1 VbHide 2 vbNormalFocus 3 vbMinimizedFocus 4 vbMaximizedFocus 5 vbNormalNofocus i. 0 ii. 3 v. 4 iv. 1

iii. 2  A)   B)   C)   D) Q.21 What is the output of the given code

ReDim dArray (1 to 10) as integer Dim K as integer For K=1 to 10 dArray(K) = K Print dArray(K) Next ReDim PRESERVE dArray(1 to 5) as integer For K=1 to 5 Print dArray(K) Next

  A)   B)   C)   D) Q.22 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. Rpt LAbel 2. Rpt Text Box 3. Rpt Procedure 4. Rpt Function 5. Rpt Image

  A)   B)   C)   D) Q.23 Match the following error code with their

messages Set A 1. 58 2. 61 3. 71 4. 76 Set B a. Path not found b. Path/file access error c. File already exists d. Disk not ready

e. Disk Full  A)   B)   C)   D) Q.24 Which of the following is true related to the

function with their code of the report? 1. %I specifies Report title 2. %t specifies Current title 3. %d specifies current Date 4. %P current page number

  A)   B)   C)   D) Q.25 Pick out the true statement with reference

to MDI application 1. your application can have only one MDI form, which contains all the applications child form 2. An MDI application allows the user to display multiple documents at the sam

  A)   B)   C)   D) Q.26 Which of the following statement is true?

i. The User control object file has the extension of .DLL ii. The graphical elements on the user control is stored in the files with Extension .CTX iii. Visual basic has 3 built in functions t

  A)   B)   C)   D) Q.27 Match the following data type with their

storage sizes Set A 1. Double 2. Decimal 3. object 4. Variant (with numbers) Set B a. 14 bytes

b. 8 bytes c. 16 bytes d. 4 bytes

  A)   B)   C)   D) Q.28 Identify the methods that are used to

navigate through the Recordset 1. Record Count 2. Move Previous 3. Update 4. Insert New 5. Delete 6. Move Next 7. Move First

  A)   B)   C)   D) Q.29 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)   B)   C)   D) Q.30 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 <

  A)   B)   C)   D)