Visual Programming - Question Bank
Visual Programming - Question Bank
Visual Programming - Question Bank
UNIT-I
WINDOWS PROGRAMMING
1.Define multitasking.
To facilitate the use of multiple programs, and the exchange of information among
them, windows supports multitasking. Several windows programs can be displayed and
run at the same time. Each program occupies a window on the screen. The user can move
the windows around on the screen, change their sizes, and switch between different
programs and transfer data from one program to another.
11. Which is the most commonly used text output function in GDI?
The most commonly used text output function is Text Out( ) which has the following
format.
Text Out (hdc,x,y,p* Text, length);
hdc -Handle to device context
x and y -Starting position of the character string
p*Text -Pointer to the character string
ilength -Length of the string in characters.
3. Explain MFC.
MFC-Microsoft Foundation Class.
The MFC, as the name suggests provides a set of reusable classes designed to simplify
windows programming. MFC provides on application framework, including the classes
that make up the application architecture hierarchy.
7. What is multithreading?
When any application (or process) starts, it has one primary tread. The application may
then start up additional threads which execute independently. All treads share the single
memory space of the process in which they are created. This technique is called
multithreading.
UNIT III
The Document and View Architecture
4.What are the three additional actions necessary to place a dockable toolbar?
After creating and loading the 3 additional actions necessary to place a docable
toolbar are,
a. Enable docking for the toolbar.
b. Enable docking for the frame window
c. Dock the toolbar to the frame window.
9. List out the classes that provide functionality of rich edit control within the
context of MFC document view architecture?
a. CRichEditView
b. CrichEditDoc
c. CrichEditCntrlItem
19.Define an interface.?
An interface is a collection of functionality related abstract methods and is identified by a
128 bit Gloabally Unique Identifier (GUID) called the interface ID .
3.What is DCOM?
Distributed Component Object Model specifies the additional infrastructure that is
required to further extend the benefits to networked environment.
5.Define an interface?
An interface is acollection of functionality related abstract methods and is identified by a
128 bit globally unique identifier (GUID) called the Interface ID (IID).
14. What are the graphical representation used for interfaces and COM classes?
Interfaces are shown as small circles with lines attached to their class. The I Unknown
interface whichever supports is at the top and others are on the left.
16.How is the time saved in copying a large block of data that’s already in a disk
file?
The I Data Object interface specifies the storage medium of a data object formats.
Conventional clipboard transfer relies on global memory .The I data Object interface
permits transmission of a disk file name or a structure storage pointer instead. Thus if we
are to transfer a very large block of data that is already in disk file we don’t have to waste
time copying it to and from a memory block.
19. Name the important member functions of the Cole Data source Class?
The member functions of the Cole Data source class are
a. CacheData()
b. CacheGlobalData()
c. DoDragDrop()
d. SetClipBoard()
1. What is ODBC?
The Open Data base connectivity or ODBC. API is perhaps the most widely used
database interface for windows applications today. ODBC provides a standard
interface to a wide range of different sorts of data sources ranging from simple
text files to full blown database server systems.
8.What are the various components that make up the OLEDB architecture?
Enumerators
Sessions
Commands
Errors
Data source objects
Transaction objects
Row sets
UNIT 1
1. What are the various functions used for basic drawing in a windows program? Explain in
detail?
2. Write short notes on:
i. WinMain()
ii. WndProc()
3. Explain the architecture of a windows program with a sample
program.
4. Explain in detail the various child window controls.
5. What is GDI? Explain in detail the basic drawing functions used in windows programming?
UNIT 2
UNIT 3
1. Write in detail how OLE embedded components and containers are used in windows
programming.
2. Explain how OLE drag and drop is done with visual C++.
3. Explain hoe ActiveX controls are different from ordinary windows controls in detail
4. Write short notes on:
i. COM
ii. OLE
5. Write short notes on:
i. Component object model
ii. Containment and aggregation Vs Inheritance.
UNIT 5
8. Explain how the concept of threading is used in visual C++ with suitable example?