CS410 – Visual Programming
Quiz No.4 Dated FEB 15, 2013
Which one of the following is very useful for localization?
Multithreading
Resource only DLLs NOT SURE
Multitasking
Icons
A child window is always appears within the client area of its parent window.
True
False
The _____ function associates a local address with a socket.
bind(…)
connect(…)
attach(…)
getSocket(…)
The window ______ is the color or pattern used to fill the client area before a window begins drawing.
Caption
Color Palette
Background
Foreground
The error code ______________ Indicates that the underlying network subsystem is not ready for network communication.
WSAEINPROGRESS
WSAEPROCLIM
WSASYSNOTREADY
WSAEFAULT
The state of a semaphore object is _______ when its count is greater than zero and ______ when its count is equal to zero
non-signaled, signaled
signaled, non-signaled
created, destroyed
destroyed, created
The DialogProc function is used to ________
Create a Dialog
Destroy a Dialog
Hide a Dialog
process messages sent to a modal or modeless dialog box
The ________ function sends data on a connected socket
dispatch(…)
transmit(…)
send(…)
broadcast(…)
Consider the following statements written in a DLL: __declspec (dllexport) int Factorial(int); int Average(int,int);
Factorial() and Average() are 2 public functions of the DLL
Average() is the only public functions of the DLL
Factorial()is the only public functions of the DLL
This DLL imports 2 functions. i.e. Factorial() and Average()
To create a thread which is initially in suspended state, we should:
Create thread by calling __beginthread function
Call ExitThread API immediately after creating thread
Give CREATE_SUSPENDED flag in CreateThread
It is impossible
When we use PostThreadMessage for a thread that has not message queue then:
Nothing will happen
It will cause a run time error
Thread will resume processing
Its message queue will be created
Virtual key code defined by
Kernel
Application
System
None of given
Whenever a window is resized, system sends "WM_SIZING" message to the application that owns the window
True
False
__________ handles user inputs and responds to user events independently.
User-Interface Thread
Worker Thread
Kernel Thread
None of given options
In Windows every running application is a _______________
Pointer
Process
Array
List
For showing Dialog we can use "ShowWindow(...)" function
True
Fal;se
The _______ function retrieves a handle to one of the stock pens, brushes, fonts, or palettes
GetStockGDI
GetStockDC
GetStockObject
None of the given options
__________, system sends the item's identifier to the owner window?
When the user chooses a command item from a menu
The _____ function releases a device context, freeing it for use by other applications.
FreeDC
GetDC
DeleteDC
ReleaseDC
________ function is used to invalidate a window or part of it
InvalidateRect
InvalidateWindow
InvalidateClient
InvalidateApp
HTML is a ______Language
Multiset Encryption
Mark-up
Micro Level
None of given options
Line can be drawn using _________ Functions
MoveToEx and LineTo
SelectPts and DrawLine
SelectPts and DrawPOLY
None of the giving options
Name of the three dimensional array is the address of __________________
First Row
First Element
First page
Last Page
If a window owns child Windows, and we destroy owner Window then _____________.
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
system sends the item's identifier to the owner window?
When the user chooses a command item from a menu
When the system chooses a command item from a menu
When the user click on any window area
When the system de-select the item menu
When a menu item is clicked, WM_COMMAND message is send and ID of this menu item is sent in:
wParam
lParam
hInstance
HWND
Which function is not used to handle a caret?
CreateCaret()
DestroyCaret()
SetCaretPos()
DenyCaret()
Graphical device interface communicates between application and _______ driver
Port
Operating System
Device
Kernel
_______ acts as a buffer between applications and output devices.
GDI
Kernel32
OS
CPU
When a thread terminates, the thread object attains _______ state
Signaled
Blocked
Resumed
Non-signaled
The ________ function establishes a connection to a specified socket.
Connect
Attach
Connectsocket
attachsocket
Static variables are made on ___________ memory location
Fixed
Stack
Pointer
Variable
We can undefine already defined preprocessor directive using
#undef
#unifdef
#unenddef
None of given
If we press a normal key from keyboard, the number of byte(s) sent to keyboard buffer
1
2 Not sure
3
4
All threads share the
Virtual Address space
Global variables
Operating system resources of their respective processes
All of given options
How many WM_CHAR messages will be generated when Shift+A key combination is pressed from keyboard and we haven't called TranslateMessage() before calling DispatchMessage() function?
0
1
2
3
32-bit Microsoft Windows, there is very low chance of device drivers getting corrupted because:
Win-32 allows multi-threading
Each process cannot access the virtual address space of some other process
Each thread has its own stack
Context switching mechanism is very good
Consider the following statements written in a DLL: __declspec (dllexport) int Factorial(int); int Average(int,int);
Factorial() and Average() are 2 public functions of the DLL
Average() is the only public functions of the DLL
Factorial()is the only public functions of the DLL
This DLL imports 2 functions. i.e. Factorial() and Average()
Long chain of keywords in declaration can be shortened. Above line is the advantage of ______.
Typedef
Struct
Union
None of given
Ist woh jiss ney tumhari jeet ke Liye buhat kuch hara hoo
--
Please visit http://vusr.net for Old and Latest Papers, Assignments, Quiz and GDBs.
http://VUSR.net The ultimate VU Study Resource
You received this message because you are subscribed to the Google
Groups "VUSR" group.
To unsubscribe
vusr+unsubscribe@googlegroups.com
To Visit Group Home Page
http://groups.google.com/group/vusr?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "VUSR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vusr+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment