CS410_MID_SPS2005.pdf
Verified academic study resource for CS410 (Design & Analysis of Algorithms) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 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
- Type
- Study Resource
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS410.
What this file covers — CS410 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
Frequently asked questions
Where can I download CS410_MID_SPS2005.pdf for free?
You can preview and download "CS410_MID_SPS2005.pdf" (CS410 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs410-mid-sps2005-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS410 file?
This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), 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
www.vupages.com
CS410 Visual Programming
Mid Term Examination – Special Semster 2005
Time Allowed: 90 Minutes
Please read the following instructions carefully before
attempting any of the questions:
1. Attempt all questions. Marks are written adjacent to each
question.
2. Do not ask any questions about the contents of this
examination from anyone.
a. If you think that there is something wrong with any of
the questions, attempt it to the best of your understanding.
b. If you believe that some essential piece of information is
missing, make an appropriate assumption and use it to
solve the problem.
c. Write all steps, missing steps may lead to deduction of
marks.
d. All coding questions should be answered using VC++.
You are allowed to write and test your code. If you do so please
remember to copy and paste your code into the examination solution
area. (Do NOT share your code; your colleague could get higher
marks than you!!)
**WARNING: Please note that Virtual University takes serious
note of unfair means. Anyone found involved in cheating will
get an `F` grade in this course.
Total Marks: 55 Total Questions: 13
Question No. 1 Marks : 8
Write a windows procedure function for the above program that explicitly handles
the window closing functionality by pressing any key. This functionality can be
achieved by notifying the WM_CHAR message. You can use DestroyWindow
function for closing the window. You are also required to provide appropriate
functionality against WM_DESTROY and the default message.
Question No. 2 Marks : 2
Consider the following code snippet
char x = 'Z';
float y = 8;
char *xPtr = &x;
float *yPtr = &y;
xPtr++; //1
yPtr++; // 2
What will be the address of xptr and yptr respectively after the execution of
statement 1 and statement 2 (assuming xPtr has the address of 105 and yptr has
the address of 102 initially)
o 106, 106
o 107, 107
o 106, 107
o 107, 106
o None of the above
Question No. 3 Marks :02
What is a function pointer?
o A pointer that passes as an argument to the function
o A pointer that is declared inside the function
o Some returning pointer
o A pointer that points to the starting address of the function
o A pointer that takes return value of some other function
Question No. 4 Marks : 02
How many parameters do WinMain function contains
o 5
o 2
o 1
o 3
o 4
Question No. 5 Marks : 03
What is the Difference between __stdcall and __cdecl calling convention?
Question No. 6 Marks : 02
Which of the following class of window is pre-registered?
o main window
o pop-up window
o system window
o child window
o parent window
Question No. 7 Marks : 02
Which of the following is not a user defined data type?
o Structures
o Unions
o Enumerations
o Typedefs
o None of the above
Question No. 8 Marks : 05
What are handles? Name three basic types of handles in windows programming.
Question No. 9 Marks : 20
Make a program that registers a window class names "Test Window Class"
having following features
o Redraws window if size changes
o Dark gray background color ---- using DKGRAY_BRUSH
o Having default application icons
o With vertical two headed arrow--- using IDC_SIZENS
Fill the appropriate window's structure variables with the required values given
above. Handle of the current instance of the window class should be assigned to
the appropriate structure variable. Set the remaining variables null or zero.
Your program should display a message box that displays a message "Test
Window class can not be registered" incase of failure of registering the window
class. It should also contain OK button and a title of "Error".
Create a main window named "First Test Window" of the "Test Window" class,
having following features
• Overlapped window with Horizontal and vertical scroll bars
• Having default horizontal and vertical positions
• Width should be 340 and height should be 180
• Disabled close button
Your program should display a message box that shows a message "First Test
Window, can not be created" incase of failure. The message box should also
contain an OK button and a title of "Error".
Implement a message loop for the above created application. The message loop
should retrieve all the messages related to your application from message queue
and then dispatch one by one to the respective windows. The messages should
be dispatched after translating into character form.
Question No. 10 Marks : 02
Which of the following is not a feature of windows programming?
o Resource sharing
o Device independent programming
o Multitasking
o Single path of execution
o GDI (Graphics Device interface)
Question No. 11 Marks : 02
How many bytes will be allocated to abc;
Union person{
Char name[30];
Int age;More CS410 files
- CS410.pdf (PDF · Study Resource)
- CS410VisualProgramming.zip (ARCHIVE · Study Resource)
- cs410 pst ppr.zip (ARCHIVE · Study Resource)
- All Subjects Mid & Final 25000 Pdf Files.pdf (PDF · Final-Term)
- CS410 FINAL TERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)
- CS410 FINAL TERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)
- CS410 FINAL TERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)
- CS410 FINAL TERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)