loading...

CS410 VU Current Midterm Fall 2012 Paper 8 December 2012

1. Result of _________________ of two bits is TRUE (1) if only if both are TRUE (1)

Select correct option:

OR (I)

XOR

AND (&)

NOR

 

2. Union Person { char name[30]; //30 bytes int age; float height; }; Union Person abc, *ptr; Ptr = &abc; ptr = ptr +1; How many bytes will skip after executing ptr = ptr +1.

Select correct option:

38 bytes will skip after executing ptr = ptr +1.

30 bytes will skip after executing ptr = ptr +1.

31 bytes will skip after executing ptr = ptr +1.

32 bytes will skip after executing ptr = ptr +1.

 

3. _______ acts as a buffer between applications and output devices.

Select correct option:

GDI

Kernel32

OS

CPU

 

4. If first non wide space character will be #, so it will be called _____.

Select correct option:

Preprocessor Directives

Preprocessor Folder Not Sure

Preprocessor Director

None of Given

 

5. Ptr -> age is equivalent to _______________

Select correct option:

*ptr.age

ptr.age

(ptr).age

(*ptr).age

 

6. _______ acts as a buffer between applications and output devices.

Select correct option:

GDI

Kernel32

OS

CPU

 

7. The system paints the background for a window or gives the window, the opportunity to do so by sending it a _______ message

Select correct option:

WM_FILLBKGND

WM_ERASEBKGND

WM_SYSCOMMAND

WM_OVERLAPPED

 

 

8. *(a+i) can also be written as ________________

Select correct option:

a [i]

a[i+1]

*a

*a+1

 

9. GDI presents _________

Select correct option:

Device-independent view

Device-dependent view

Monitor-dependent view

None of given

 

10. GDI is implemented through ____________________

Select correct option:

GDI.dll

Win32.dll

GDI32.dll

Kernel

 

11. A ________ is a structure that defines a set of graphic objects and their associated attributes, as well as the graphic modes that affect output.

Select correct option:

Kernel

Pen

Bitmap

Device Context

 

12. Static variables are made on ___________ memory location

Fixed

Stack

Pointer

Variables

 

13. GDI stands for __________

Graphics Driver Interface

Graphics Device Interface

Graphics Direct Interface

None of the given options

 

14. What kind of messages can be display using messagebox function?

Long Messages

Short Messages

Null Massages

None of Given

 

15. A _________ is commonly used to handle background tasks

Worker thread

User Interface thread

Parent thread

Process thread

 

16. Graphical device interface communicates between application and _______ driver

Port

Operating System

Device

Kernel

 


17. A ________ is a structure that defines a set of graphic objects and their associated

attributes, as well as the graphic modes that affect output.

Kernel

Pen

Bitmap

Device Context

 

18. Condition(s) in which WM_PAINT message may be sent is/are ______________

A dialog box is maximized

A drop-down menu disappears

A tool tip is displayed and then it hides

All of the given options

 

19. If we pass NULL value to “GetDC” function, it retrieves the DC for the:

Entire Screen

Parent Window

Client Window

It does not retrieves DC

 

20. The ___ function retrieves a handle to a display device context (DC) for the client area

of a specified window or for the entire screen.

GetHwnd

GetDC

GetGDI

GetStockObject

Q.21 what is Macro ?  2

Q.22 Defination of Message?  2

Q.23Two type of Subclassing write only name 3

Q.24 Type of Threads? 3

Q.25 Define a Function Pointer             5

Q.26 write syntax of WM_ PAINT             5


DOWNLOAD SOLUTION HERE
loading...