Sunday , 24 November 2024

CS410 today solved Quizs 3 fall 2012 (09 January 2013)

QUESTION

If we press a normal key from keyboard, the number of byte(s) sent to keyboard buffer are:
Select correct option:

1
2
3   (Not Sure)
4

QUESTION

Which of the following is compulsory about a keyboard accelerator?
Select correct option:


Identifier of Keyboard accelerator must start with “ID_”.
Accelerator and corresponding menu item must have identical identifiers.
You must not write DISCARDABLE in the resource script of accelerator.
All of the given options 

QUESTION

The DialogProc function is used to ________
Select correct option:

Create a Dialog 
Destroy a Dialog
Hide a Dialog
process messages sent to a modal or modeless dialog box

QUESTION

An accelerator, not always needs to correspond to a menu command.
Select correct option:

TRUE
FALSE 

QUESTION

Device-independed value represents
Select correct option:

Virtual key code
Key code
Read only code
Mix code

QUESTION

Suppose a windows application has 4 icon resources, then which of the following statements is true?
Select correct option:

Icon of the .exe file of the application will be the default windows icon
Icon of the shortcut of its .exe file will be default windows icon
Icon of the shrotcut of its .exe file will be the first one from icon resources
Icon of the its .exe file and the icon of its shortcut will be different.

QUESTION

In which parameter of “CreateWindow” function, we can specify the Menu.
Select correct option:


hMenu
hInstance
hWnd 
dialogBox

QUESTION

When we keep some key pressed for a long time, which one of the following technique keeps the message queue concise
Select correct option:

Older messages are discarded
Call the GetKeyState() funtion
Repeat Count contains how many times WM_KEYDOWN message was sent
There is no such technique

QUESTION

What will be the icon of shortcut of executable file of an application that has no icon resource?
Select correct option:

Default Window .exe file icon
Each application must have at least one icon
No icon 
Visual C++ icon

QUESTION

To retrieve the identifier of the menu item at a specified position, we can use the
Select correct option:

GetMenuItemID or GetMenuItemInfo function. 
Only GetMenuItemID function
We have to use both GetMenuItemID and GetMenuItemInfo
None of the given functins

Check Also

CS101 100% Solved MCQS for Final term Papers by Arslan Ali

CS101 105 Important MCQ’s Solved   Question No: 1    ( Marks: 1 )    – Please …

3 comments

  1. 1 Question Ans:
    2 Bytes (For confitmation you can visit this link)http://philipstorr.id.au/pcbook/book3/keyboard.htm)

    5 Qeuestion Ans:
    Virtual Key Code http://msdn.microsoft.com/en-us/library/windows/desktop/ms646267(v=vs.85).aspx

    7 Question Ans:
    hManu (Readout in Handout Page#17)

  2. Pleas Correct these

Leave a Reply

Your email address will not be published. Required fields are marked *

*