Skip to main content

CS410 Current Final Term Fall 2013 Shared by Waris_Ali File 13



  ______ is/are the type(s) of Logical Brushes.
1. Solid
2. Hatched
3. Pattern
4. All of the given

RFC stands for
Request for comments
Request of connects
Reference for connect
Request for cancels

Who generate a unique handle for each menu?
System
User
Dialog box
Menu Items

For TCP/IP, if the port is specified as zero, the service provider assigns a unique port to the
application with a value between ________________.
1 and 1024
1 and 4000
1024 and 5000
1024 and 10240


All bits in high word of a 32-bit pointer are ____________.
Non-zero
Zero
Two
None of the given

An accelerator _____________ to correspond to a menu command.
Needs
Needs not
Is essential
Is necessary

Identify the dll in which the windows common controls are implemented
Select correct option:
Kernel32.dll
Comctl32.dll Ans
Gdi32.dll
User32.dll

When we use PostThreadMessage for a thread that has not message queue then:
Select correct option:
Nothing will happen
It will cause a run time error
Thread will resume processing
Its message queue will be created Ans

We do not need to make the template for Print Dialog because:
Select correct option:
Windows provide their template
They do not need any template at all
We make their template in the code
We actually make their template

When a thread terminates, the thread object attains _______ state
Select correct option:
Signaled Ans
Blocked
Resumed
Non-signaled

____________ Is / are the basic operation(s) performed by both server and client systems.
Select correct option:
Create an unbound socket
Binding Server
Connecting Client
All of the given options Ans

The state of a semaphore object is _______ when its count is greater than zero and ______ when its count is equal to zero
Signaled, non signaled

When a thread terminates, the thread object attains a ______state
Signaled

If we press a normal key from keyboard, the number of byte(s) sent to keyboard buffer are:
Select correct option:
1
2
3
4
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
The _______ function retrieves a handle to one of the stock pens, brushes, fonts, or palettes
Select correct option:

GetStockGDI
GetStockDC
GetStockObject
None of the given options

Who generate a unique handle for each menu?
Select correct option:
System
User
Dialog box
Menu Items

If the load menu function fails so what will be the return value.
Select correct option:

0
False
Null
1
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
Short ques

What is mutex object 2
When WM_INITLDIALOG message is sent. 2
Define relationship between process and thread 2          5 marks ques
int connect(  SOCKET s,  const struct sockaddr* name,  int namelen);Define the all parameters
Column 1 given match with Column 2
Column 1
Column 2
Bad Request
80
request secceeded
404
Object Moved
200
Not Found
302
HTTP PORT
400
HTTP Version
1.0

#3 marks
 Why .LIB is safe 

This I remember

Please solve personally



Comments