0% found this document useful (0 votes)
27 views6 pages

Visual Basic Exam Questions 2022

This document is an examination paper for the B.Sc./B.C.A. degree in January 2022, focusing on Visual Basic for candidates admitted from 2016 onwards. It includes multiple-choice questions, short answer questions, and detailed essay prompts related to various aspects of Visual Basic programming and application development. The exam is structured into three sections, with a total of 75 marks available.

Uploaded by

MANI KANDAN
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views6 pages

Visual Basic Exam Questions 2022

This document is an examination paper for the B.Sc./B.C.A. degree in January 2022, focusing on Visual Basic for candidates admitted from 2016 onwards. It includes multiple-choice questions, short answer questions, and detailed essay prompts related to various aspects of Visual Basic programming and application development. The exam is structured into three sections, with a total of 75 marks available.

Uploaded by

MANI KANDAN
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Reg. No. : ..........................................

5324 Q.P. Code : [16 SC 04/16 CA 04/


16 IT 05/16 CTG 04/
16 SS 04/16 MM 04]

(For the candidates admitted from 2016 onwards)

[Link]./B.C.A. DEGREE EXAMINATION,


JANUARY 2022.

Fifth Semester

Part III — Computer Science/Computer


Application/Information Technology/ Computer
Technology/Software System/Multimedia and Web
Technology

VISUAL BASIC

Time : Three hours Maximum : 75 marks


Answer ALL questions
SECTION A — (10  1 = 10 marks)
Choose the correct answer
1. ________ is used for finding out about objects,
properties and methods.
(a) Object browser
(b) Property window
(c) Form layout window
(d) Code editor window
2. The default data type for Visual Basic is ________

(a) Integer (b) Boolean

(c) Variant (d) String

3. The button parameter used to identify the left


mouse button is __________

(a) 1 (b) 2

(c) 3 (d) 4

4. Which symbol creates an access key in the text of


a menu item?

(a) @ (b) &

(c) $ (d) %

5. Through _________ controls we can access


information in the databases.

(a) Data bound control

(b) Data control

(c) Wizard

(d) Report

2 5324
6. Extension of ActiveX designers is _________

(a) .dsr (b) .axd

(c) .adx (d) None of these

7. The OLE Container control is used to dynamically


––––––––– objects to a form at run time.

(a) Remove (b) Create

(c) Add (d) Destruct

8. ________ is a compressed file that is well suited to


distribution on either disks or the internet.

(a) .CBA (b) .CAB

(c) .PCB (d) .PCC

9. ______ method adds a row to an MSFlexGrid.

(a) Add (b) New

(c) AddItem (d) AppendItem

10. The __________ control provides a group of tabs,


each of which acts as a container for other
controls.

(a) SSTab (b) STab

(c) STaab (d) SSTtab

3 5324
SECTION B — (5  5 = 25 marks)

11. (a) Compare and contrast fixed size array with


dynamic array.

Or

(b) Write short notes on Function Procedures.

12. (a) State the features of a MDI application.

Or

(b) Briefly explain about the mouse events.

13. (a) How VB manages database? Explain.

Or

(b) Write a note on ActiveX EXE.

14. (a) Explain about the fundamentals of OLE.

Or

(b) Discuss how Visual Basic allows users to


explore the file system.

4 5324
15. (a) Write short notes on ImageList control.

Or

(b) Discuss how to use ADO data control.

SECTION C — (5  8 = 40 marks)

16. (a) What is IDE? Discuss the following


components of IDE: Project Window,
Property window, Form Window and Code
Editor Window.

Or

(b) Design a simple calculator which does the


operations add, subtract, multiply and divide
in VB.

17. (a) Explain the steps involved in creation of


menus and controls in a VB project.

Or

(b) Write a detailed note on Dialog boxes in VB.

5 5324
18. (a) Discuss about Database management with
ODBC and communicating with other
applications. Give suitable illustration.

Or

(b) Describe the procedure of creating an


ActiveX DLL component.

19. (a) Explain how to use OLE container control.

Or

(b) Discuss how to access files in VB.

20. (a) Elaborate how to set the properties of SSTab


control at runtime.

Or
(b) Write a detailed note on MSFlexgrid control.

——–––––––––

6 5324

Common questions

Powered by AI

In Visual Basic, the MSFlexGrid control can be enhanced by using its methods such as 'AddItem', which adds a row to the grid, as well as other methods like 'RemoveItem' to delete rows, and 'TextMatrix' for setting or retrieving the text of a specific cell. Customizing properties like 'Col' and 'Row' for current cell operation and using events for responding to user actions also add functionality to this control, making it a versatile UI component .

In Visual Basic, the SSTab control is used to create tabbed interfaces by providing a container where different tabs act as separate containers for other controls. Developers can set properties at runtime, such as changing the active tab using the 'Tab' property or customizing tabs with colors and labels. The SSTab control simplifies the organization of related groups of controls, allowing for a more user-friendly and logically organized interface, particularly in complex applications requiring multiple settings or sections .

ActiveX EXE and ActiveX DLL components differ primarily in execution context. An ActiveX EXE runs in its own process, which means it has its own memory space separate from the calling application, providing better isolation and allowing it to function independently. In contrast, an ActiveX DLL runs in the same process space as the calling application, allowing quicker communication due to in-process execution but sharing resources and memory with the host application. ActiveX EXEs are suitable for standalone applications needing interaction with other apps, while ActiveX DLLs are more efficient for sharing code and resources within a single application .

Fixed-size arrays in Visual Basic have a predefined size, meaning the number of elements it can hold is set at the time of declaration and cannot be changed. Dynamic arrays, on the other hand, can be resized during program execution using the 'ReDim' and 'ReDim Preserve' statements, which allows for more flexible memory use .

Visual Basic manages database operations with ODBC by establishing a connection using the 'Open Database Connectivity' standard. This allows for interaction with various databases through SQL queries. The process involves configuring a DSN (Data Source Name) or using a DSN-less connection string. VB then utilizes ADO or DAO technologies to perform operations such as querying, updating, and managing transactions, enabling robust database connectivity and versatility in interacting with different database systems .

The Integrated Development Environment (IDE) in Visual Basic includes several key components: the Project Window, which displays the files associated with the VB project; the Property Window, allowing developers to set and modify properties of selected controls or components; the Form Window, used for designing the user interface; and the Code Editor Window, where the actual VB code is written and edited. These components work together to provide a comprehensive environment for software development .

MDI applications in Visual Basic allow multiple child forms to be opened within a single parent form. Features include arranging child windows in various formats such as cascading or tiling, shared menu bars and toolbars for the parent and child forms, and centralized management of resources and logic. This design is beneficial for applications requiring the management of multiple documents or tasks simultaneously .

The OLE Container control in Visual Basic allows developers to embed and link to other applications' objects within a VB form at runtime. This enhances the functionality by enabling the integration of external document types and applications, such as Word documents or Excel spreadsheets, making it possible to manipulate and interact with these objects directly from a VB application, thereby increasing flexibility and interoperability .

Visual Basic allows users to explore the file system through the use of the 'FileSystemObject' available in the 'Microsoft Scripting Runtime' library. This object provides methods for navigating directories, creating, deleting, and managing files and folders, and examining file or folder information (e.g., size, date modified). By utilizing these capabilities, developers can build applications that interact with the file system to perform various file operations programmatically .

Creating an ActiveX DLL in Visual Basic involves initiating a new DLL project in the IDE, defining public methods and properties in a class module, compiling the project to generate the DLL file, and then registering it in the system so it can be used by other applications. This process allows developers to encapsulate and reuse code across different projects, providing a way to create modular and maintainable applications .

You might also like