PROMOTE MY BLOG: JUST CLICK BELOW BUTTON

Search Any Paper On This Blog

Thursday, December 6, 2012

::: vuaskari.com ::: CS410 QUIZ NO.2 DATED DEC 06, 2012

CS410 – Visual Programming

Quiz No.2 Dated DEC 06, 2012

 

If we pass NULL value to "GetDC" function, it retrieves the DC for the:

Select correct option:

Entire Screen

Parent Window

Client Window

It does not retrieves DC

 

Two types of Subclassing are:

Select correct option:

Automated Subclassing and Manual Subclassing

Static Subclassing and Dynamic Subclassing

Local Subclassing and Global Subclassing

Instance Subclassing and Global Subclassing

 

Long chain of keywords in declaration can be shortened. Above line is the advantage of ______.

Select correct option:

Typedef

Struct

Union

None of given

 

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

Select correct option:

OR (I)

XOR

AND (&)

NOR

 

DOS boxes are also called ___________

Select correct option:

Main Window

Console Window

Dialogue Box

Arrays

 

________ function is used to invalidate a window or part of it

Select correct option:

InvalidateRect

InvalidateWindow

InvalidateClient

InvalidateApp

 

 

 

The _________ function draws a rectangle

Select correct option:

SetRectCoords(...)

ShowRectangle(...)

DrawRectangle(...)

Rectangle(...)

 

_________ is the handle to icon associated with Window Class.

Select correct option:

hIcon

hCursor

HINSTANCE

UINT

 

The SelectObject function selects an object into the specified:

Select correct option:

Object Context (OC)

Device Context (DC)

Window Context (WC)

Class Context (CC)

 

A thread can not share all of the its resources

Select correct option:

TRUE

FALSE

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.

 

There cannot be multiple _________________ messages in message queue.

Select correct option:

WM_ PAINT

WM_TIMER

WM_QUIT

WParam

 

_______ acts as a buffer between applications and output devices.

Select correct option:

GDI

Kernel32

OS

CPU

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

 

The ___ function retrieves a handle to a display device context (DC) for the client area of a specified window or for the entire screen.

Select correct option:

GetHwnd

GetDC

GetGDI

GetStockObject

 

______________ tell the operating system about the characteristics and physical layout of its windows.

Select correct option:

Register Class

Object Class

Window Class

Common Class

 

Line can be drawn using _________ Functions

Select correct option:

MoveToEx and LineTo

SelectPts and DrawLine

SelectPts and DrawPOLY

None of the giving options

 

A Window that has a parent is called a ____ Window

Select correct option:

Parent

Main

Child

Owner Window

 

Whenever a window is resized, system sends "WM_SIZING" message to the application that owns the window

Select correct option:

TRUE

FALSE

 

 

 

 

 

___________ is used to check the predefined identifiers.

Select correct option:

#include

#ifdef

#def

#elif

 

What kind of messages can be display using messagebox function?

Select correct option:

Long messages

Short messages

Null values

None of the given

 

We can create a window using ______________

Select correct option:

RegisterClass ( )

WNDClass

CreateWindow ( )

DestroyWinndow( )

 

A thread _________

Select correct option:

is a path of execution through a program

is smallest unit of execution that Win32 schedules

consists of a stack

All of given options

 

A thread can not share all of the its resources

Select correct option:

TRUE

FALSE

If a window owns child Windows, and we destroy owner Window then _____________.

Select correct option:

Only owner window will be destroyed

Only its owned window will be destroyed

Both owner and owned Windows will be destroyed

The application will be crashed

 

A Window that has a parent is called a ____ Window

Select correct option:

Parent

Main

Child

Owner Window

_______ is a technique that allows an application to intercept messages destined for another window.

Select correct option:

Subclassing

SuperClassing

Message Dispatching

None of given options

 

_________ is unique identifier of the registered window class return by Registeredclass ()

Select correct option:

Handle

Cursor

Object

ATOM

 

______________ tell the operating system about the characteristics and physical layout of its windows.

Select correct option:

Register Class

Object Class

Window Class

Common Class

 

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

Select correct option:

OR (I)

XOR

AND (&)

NOR

 

Whenever a window is resized, system sends "WM_SIZING" message to the application that owns the window

Select correct option:

TRUE

FALSE

 

Regarding Win32, an application cannot subclass a Window or Class that belongs to another process

Select correct option:

TRUE

FALSE

 

 

 

 

 

Ptr -> age is equivalent to _______________

Select correct option:

*ptr.age

ptr.age

(ptr).age

(*ptr).age

 

If a window owns child Windows, and we destroy owner Window then _____________.

Select correct option:

Only owner window will be destroyed

Only its owned window will be destroyed

Both owner and owned Windows will be destroyed

The application will be crashed

 

__________ handles user inputs and responds to user events independently.

Select correct option:

User-Interface Thread

Worker Thread

Kernel Thread

None of given options

 

___________ provides the functionality to create and manage screen windows and most basic controls

Select correct option:

GDI

Common Dialog Box

Common Control Library

User Interface

 

_______ acts as a buffer between applications and output devices.

Select correct option:

GDI

Kernel32

OS

CPU

 

The _____ function writes a character string at the specified location, using the currently selected font, background color, and text color

Select correct option:

printf(...)

PrintText(...)

TextOut(...)

cout<<

 

 

 

A _________ is commonly used to handle background tasks

Select correct option:

Worker thread

User Interface thread

Parent thread

Process thread

 

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

 

Name of Two dimensional array is the address of _________

Select correct option:

First Column

First Row

Last Row

Last Column

 

A thread _________

Select correct option:

is a path of execution through a program

is smallest unit of execution that Win32 schedules

consists of a stack

All of given options

 

 

 

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

Select correct option:

a [i]

a[i+1]

*a

*a+1

 

GDI presents _________

Select correct option:

Device-independent view

Device-dependent view

Monitor-dependent view

None of given

 

 

 

What will be the entry point to a Windows program?

Select correct option:

WinMain

Main

Java.main

System.main

 

GDI is implemented through ____________________

Select correct option:

GDI.dll

Win32.dll

GDI32.dll

Kernel

 

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

 

 



--
Zindagi mein 2 Logo ka buhat khayal rahkoooo
Ist woh jiss ney tumhari jeet ke Liye buhat kuch hara hoo
(Father)
2nd woh jiss ko tum ney har dukh me pukaara hoo (Mother)
Regards,
Umair Saulat Mc100403250

--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
 
 

No comments:

Post a Comment

PLEASE COMMENT ABOUT YOUR VISIT AND MY SITE

Note: Only a member of this blog may post a comment.