Skip to main content

::: vuaskari.com ::: CS410 QUIZ NO. 4 DATED FEB 15 2013

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

 

 


--
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
---
You received this message because you are subscribed to the Google Groups ":::www.vuaskari.com :::" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vuaskari_com+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Comments

Popular posts from this blog

Re: ::: vuaskari.com ::: CS408 - FINAL TERM SUBJECTIVE WITH REFERENCE SOLVED BY UMAIR SAULAT

GREAT WORK On Wed, Feb 20, 2013 at 11:30 PM, Umair Saulat < saulat.umair@gmail.com > wrote: CS408- Human Computer Interaction Solved Subjective Fall Semester 2012   QNo.1    it has been observed that most computer users use menu option for input instead of keyboard accelerator. What is the reason behind it? (2 Marks) Answer:- 1.        Menu options are easier to find. 2.        You don't have to memories the keys for menu option but for key board accelerators you have to memories them REF:: Handouts Page No. 127   QNo.2    Define active intervention.  (2 Marks) Answer:- Active intervention with the participant and actively probes the participant understands of whatever is being tested. REF:: Handouts Page No. 276 QNo.3    what is Ubiquitous Computing? (2 Marks) Answer:- The most profound technologies are those that disappear. They weave themselves into the fabric of everyday life until they are indi

Updating our Google Account inactivity policy

Every day Google works hard to keep you and your private information safe and secure by preventing unauthorized access to your Google Account with our built-in security protections. And keeping you safe means having strong privacy practices across our products that minimize how long we store your personal files and any data associated with them. We want to protect your private information and prevent any unauthorized access to your account even if you're no longer using our services. Therefore, we are updating the inactivity period for a Google Account to two years across all our products and services. This change starts rolling out today and will apply to any Google Account that's been inactive, meaning it has not been signed into or used within a two-year period. An inactive account and any content in it will be eligible for deletion from December 1, 2023. What this means for you: These changes do not impact you unless you h

Learn more about our updated Terms of Service

stargthb@gmail.com On January 5, 2022, we're making some changes to our Terms of Service. These changes won't affect the way you use Google services, but they'll make it easier for you to understand what to expect from Google — and what we expect from you — as you use our services. You can review the new terms here . At a glance, here's what this update means for you: More clarity on what you can expect from Google and what we expect from you : We're providing more examples to describe the mutually respectful conduct that we expect from all our users. Improved readability : While our terms remain a legal document, we've done our best to make them easier to understand, including reorganizing some topics so that they're easier to find. If you use Family Link to manage a Google Account for someone else, please take some time to talk to them about these changes. Thank you for using Google!