CS410 QUIZ NO. 4 FEB 15, 2013.doc

Verified academic study resource for CS410 (Design & Analysis of Algorithms) under the Computer Science at Virtual University of Pakistan. This DOC document (Live Quiz Dumps & Solved Objective Bank) covers Quizzes & Objective Exam Scope spanning approximately 180 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS410 – Design & Analysis of Algorithms
Faculty
Computer Science
Format
DOC
Type
Quiz
Coverage
Quizzes & Objective Exam Scope

Quiz questions often repeat with modified parameter values in both Midterm and Final exams. Practice with our 45-second timed simulator to master exam pacing.

What this file covers — CS410 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download CS410 QUIZ NO. 4 FEB 15, 2013.doc for free?

You can preview and download "CS410 QUIZ NO. 4 FEB 15, 2013.doc" (CS410 DOC, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs410-quiz-no-4-feb-15-2013-doc) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS410 file?

This document covers Quizzes & Objective Exam Scope across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS410 under the VU 20% Two-Half Rule?

Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.

Are CS410 solved past papers and handouts verified for 2026 exams?

Yes. All CS410 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.

Inside this file

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

More CS410 files

All CS410 files · Midterm Prep 2026 · MCQs Bank