CS410 FINALTERM SUBJECTIVE WITH REFERENCE SOLVED BY UMAIR SAULAT.doc

Verified academic study resource for CS410 (Design & Analysis of Algorithms) under the Computer Science at Virtual University of Pakistan. This DOC document (Final-Term Solved Past Paper & Examination Pack) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 pages across 4 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
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Tags
SUBJECTIVE, SOLVED, FINALTERM

Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS410, regardless of midterm scores.

What this file covers — CS410 syllabus roadmap

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. 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 FINALTERM SUBJECTIVE WITH REFERENCE SOLVED BY UMAIR SAULAT.doc for free?

You can preview and download "CS410 FINALTERM SUBJECTIVE WITH REFERENCE SOLVED BY UMAIR SAULAT.doc" (CS410 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs410-finalterm-subjective-with-reference-solved-by-umair-saulat-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 Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (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
SOLVED SUBJECTIVE FOR FINAL EXAM
FALL SEMESTER 2012
QNo.1	Synchronization objects?
Answer:-
A synchronization object is an object whose handle can be specified in one of the wait functions to coordinate the execution of multiple threads. More than one process can have a handle to the same synchronization object, making interprocess synchronization possible.
REF :: handouts Page No. 343

QNo.2	Define owner drawn items?
Answer:-
Owner-drawn items require an application to take total responsibility for drawing selected (highlighted), selected, and cleared states.
REF :: handouts Page No. 236

QNo.3	Give two disadvantages of the DLL version
Answer:-
    1. Saves memory and reduces swapping.
Many processes can use a single DLL simultaneously, sharing a single copy of the DLL in memory.
    2. Saves disk space.
Many applications can share a single copy of the DLL on disk. In contrast, each application built with a static link library has the library code linked into its executable image as a separate copy.
REF :: handouts Page No. 332
http://msdn.microsoft.com/en-us/library/dtba4t8b.aspx

QNo.4	int connect(  SOCKET s,  const struct sockaddr* name,  int namelen);Define the all parameters
Answer:-
Parameters
s:
Descriptor identifying an unconnected socket.
name:
Name of the socket in the sockaddr structure to which the connection should be established.

namelen:
Length of name, in bytes

Return Values:
If no error occurs, connect returns zero. Otherwise, it returns SOCKET_ERROR, and a specific error code can be retrieved by calling WSAGetLastError.
REF :: handouts Page No. 367

QNo.5	dynamic library that export DLL function "hello! You are here in DLL"
Answer:-
Say you want to build this minimal function in mydll.c:
#include <stdio.h>
int
hello()
{
  printf ("Hello World!\n");
}

First compile mydll.c to object code:			gcc -c mydll.c
Then, tell gcc that it is building a shared library:		gcc -shared -o mydll.dll mydll.o
you can now link to the dll with a simple program:
int
main ()
{
  hello ();
}
Then link to your dll with a command like:		gcc -o myprog myprog.c -L./ -lmydll
REF :: http://cygwin.com/cygwin-ug-net/dll.html

QNo.6	Modeless dialog why we cannot use the control in parent
Answer:-
The application displays the dialog box (if it is not already displayed) by using the ShowWindow function. The application destroys the dialog box by using the DestroyWindow function. To support keyboard navigation and other dialog box functionality, the message loop for the dialog box must call the IsDialogMessage function.
REF :: handouts Page No. 267

QNo.7	Socket connect ?
Answer:-
The connect () system call connects the socket referred to by the file descriptor sockfd to the address specified by addr
REF :: http://linux.die.net/man/2/connect

QNo.8	list box styles?
Answer:-
There are two types of list boxes:
    1. single-selection
    2. multiple-selection.
REF :: handouts Page No. 287

QNo.9	pointer arithmetic ?
Answer:-
Pointer Arithmetic deals with performing addition and subtraction operations on pointer variables.
    • increment a pointer ( ++ )
    • decrement a pointer ( -- )
    • Address in pointer is incremented or decremented by the size of the object it points to (char = 1 byte, int = 2 bytes, ...)
REF :: handouts Page No. 21

QNo.10	what is Bind Function?
Answer:-
The bind function is used on an unconnected socket before subsequent calls to connect or listen functions.
REF :: handouts Page No. 364

QNo.11	what is the purpose of Pager control?
Answer:-
A pager control is a window container that is used with a window that does not have enough display area to show all of its content.
REF :: handouts Page No. 305

QNo.12	what is the Mean by Resource definition Statement?
Answer:-
The resource-definition statements define the resources that the resource compiler puts in the resource (.Res) file. After the .Res file is linked to the executable file, the application can load its resources at run time as needed.
REF :: handouts Page No. 213

QNo.13	why static variables are not destroyed when function returns
Answer:-
The static variable is not destroyed on exit from the function; instead its value is preserved, and becomes available again when the function is next called.
REF :: http://www2.its.strath.ac.uk/courses/c/subsection3_6_4.html

QNo.14	Some usages of Dialog?
Answer:-
The following sections discuss how to use both types of dialog boxes.
    1. Modal Dialog Boxes
    2. Modeless Dialog Boxes
 REF :: handouts Page No. 243

QNo.15	How Transfer-Encoding is implemented in Exchange-2000.
Answer:-
Routing group boundaries and SMTP target destinations determine how Exchange 2000 Server encodes mail. Exchange 2000 will encode as quoted-printable or 7-bit or Transport-Neutral Encapsulation Format (TNEF) when sending between two servers /recipients in different routing groups, and to the Internet.

Exchange 2000 Server will encode in Binary or Summary TNEF when sending to a recipient/server in the same routing group.
REF :: http://support.microsoft.com/kb/836555

QNo.16	what is the purpose of Hot Key?
Answer:-
A hot key is a key combination that generates a WM_HOTKEY message, a message the system places at the top of a thread's message queue, bypassing any existing messages in the queue
REF :: handouts Page No. 199

QNo.17	Unregister the Class function
Answer:-The process must destroy all windows using the class before the .dll is unloaded and call the UnregisterClass function.
REF :: handouts Page No. 76

QNo.18	What happen if we use DEFwinPRoc instead of dialog procedure in dialog.
Answer:-
if you call any function that results in your dialog procedure receiving a window message, the nested window message could overwrite the return value you set using DWL_MSGRESULT.
REF :: handouts Page No. 130

QNo.18	 If you include CS_DBLCLKS in your window call style, the windows procedure receives which message for double click. (Specify exact sequence).
Answer:-

More CS410 files

All CS410 files · Midterm Prep 2026 · MCQs Bank