CS410_Solved_Mid_Term_Papers_Mega_file.doc
Verified academic study resource for CS410 (Design & Analysis of Algorithms) under the Computer Science at Virtual University of Pakistan. This DOC 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
- DOC
- Type
- MCQ Bank
- 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_Solved_Mid_Term_Papers_Mega_file.doc for free?
You can preview and download "CS410_Solved_Mid_Term_Papers_Mega_file.doc" (CS410 DOC, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs410-solved-mid-term-papers-mega-file-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 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
CS410 Solved MCQs For Mid Term Exam
M.Zahid Adnan MIT Final Layyah Campus
Message loop ends when the GetMessage() function removes the following message from
the message queue:
WM_SETFOCUS
WM_PAINT
WM_SYSCOMMAND
WM_QUIT
We want to declare a variable in a function such that whenever the function is called, the
variable is not reinitialized. The storage class of the variable must be:
Auto
Static
Extern
All of the given options
o
None of the above
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 takes return value of some other function
o
A pointer that points to the starting address of the function
How many parameters do WinMain function contains
1
2
3
4
5
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
Which of the following is not a user defined data type?
Structures
Enumerations
www.vustudents.ning.com
Unions
Typedefs
None of the above
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)
------- is a subsystem responsible for displaying text and images on display
devices and printers.
Brushes
Pens
GDI (Graphics Device Interface)
Kernel
Operating system
Union person{
Char name[30];
Int age;
Float height;
};
void main(){
person abc;
}
How many bytes will be allocated to abc;
42
30
38
36
28
__Line__ convert the current _____ in program.
► Line No
► File No
► Page No
► None of given
We
can undefine already defined preprocessor directive using
► #undef
► #unifdef
► #unenddef
► None of given
Question No: 9 ( Marks: 1 ) - Please choose one
Identifier is not replaced if it appears
► In a comment
► With in a string
► As a part of a long identifier
► All of given
Question No: 10 ( Marks: 1 ) - Please choose one
Union Person
{
char name[30];
//30 bytes
int age;
float height;
};
How many bytes will skip after executing ptr = ptr +1.
Union Person abc, *ptr;
Ptr = &abc;
Page 6
ptr = ptr +1;
► 30 bytes will skip after executing ptr = ptr +1.
► 31 bytes will skip after executing ptr = ptr +1.
► 32 bytes will skip after executing ptr = ptr +1.
► 38 bytes will skip after executing ptr = ptr +1.
Question No: 11 ( Marks: 1 ) - Please choose one
C
language is an extensible language.
► True
► False
Question No: 12 ( Marks: 1 ) - Please choose one
Page 7
______ is/are the type(s) of Logical Brushes.
► Solid
► Hatched
► Patched
► All of the given
Question No: 13 ( Marks: 1 ) - Please choose one
____________ is/are type(s) of macro.
► Object-like macro
► Function-like macro
► All of the given
► None of the given
Question No: 14 ( Marks: 1 ) - Please choose one
__________ macro expands to the constant 1, to signify that this compiler conforms to ISO standard C.
► _STD_
► _STDC_
► _STDC_HOSTED_
► _STDC_VERSION_
Question No: 15 ( Marks: 1 ) - Please choose one
Page 8
char
(*ptrString)[4][2];
How many bytes will be skipped by the statement ptrString += 2?
► 16
► 1
► 4
► 8
Question No: 16 ( Marks: 1 ) - Please choose one
If we
destroy owner window then _____________.
► Only owner window will be destroyed
► Only its owned window will be destroyed
► Both owner and owned window will be destroyed
► The application will be crashed
1 - Choose Command line user interface
1. MS DOS
2. MS Windows
3. MS Word
4. MS Visio
Correct Choice : 1 From Lectuer # 1
2 - Which of the following is not a feature of windows programming?
1. Resource sharing
2. Device independent programming
3. Multitasking
4. Single path of execution
Correct Choice : 4 From Lectuer # 1
4 - Window Operating System Do not give us
1. Direct memory access
2. Direct access video ports
Page 9
3. Direct memory interrupt
4. All of the given
Correct Choice : 4 From Lectuer # 2
5 - *(a+i) can also be written as ________________
1. a[i]
2. a[i+1]
3. *a
4. *a+1
Correct Choice : 1 From Lectuer # 3
6 - char (*ptrString)[4][2]; How many bytes will be skipped by the statement ptrString +=
2?
1.
2. www.vustudents.ning.com
3.
4.
Correct Choice : 4 From Lectuer # 3
7 - Name of Two dimensional array is the address of _________
1. First Column
2. First Row
3. Last Row
4. Last Column
Correct Choice : 2 From Lectuer # 3
8 - What is a function pointer?
1. A pointer that passes as an argument to the function
2. A pointer that is declared inside the function
3. A pointer that points to the starting address of the function
4. A pointer that takes return value of some other function
Correct Choice : 3 From Lectuer # 3
9 - Union Person { char name[30]; //30 bytes int age; float height; }; How many bytes will
skip after executing ptr = ptr +1. Union Person abc, *ptr; Ptr = &abc; ptr = ptr +1;
1. 30 bytes will skip after executing ptr = ptr +1
2. 31 bytes will skip after executing ptr = ptr +1.
3. 32 bytes will skip after executing ptr = ptr +1.
4. 38 bytes will skip after executing ptr = ptr +1.
Correct Choice : 1 From Lectuer # 4
10 - How many bytes will be allocated to abc; Union person{ Char name[30]; Int age;
Float
height; }; void main(){ person abc; }
1.
2.
3.
4.
Correct Choice : 3 From Lectuer # 4
Page 10
11 - We can display symbolic constants instead of numeric values using:
1. Structures
2. Enumeration
3. Unions
4. Typedef
Correct Choice : 2 From Lectuer # 4
13 - -------------macro expands to the constant 1, to signify that this compiler conforms to
ISO Standard C
1. __STDC__
2. __STDC_VERSION__
3. __STDC_HOSTED__
4. None of the given
Correct Choice : 1 From Lectuer # 5
14 - Identifier is not replaced if it appears
1. In a comment
2. With in a string
3. As a part of a long identifier
4. All of given
Correct Choice : 4 From Lectuer # 5 www.vustudents.ning.com
15 - Preprocessor directive starts with _________ symbol.
1. #
2. &
3. *
4. %
Correct Choice : 1 From Lectuer # 5
16 - We can undefine already defined preprocessor directive using
1. #undef
2. #unifdef
3. #unenddefMore CS410 files
- 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)
- CS410 FINAL TERM FILE 3 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)
- CS410 FINAL TERM FILE 3 SOLVED BY TEAM HADI.pdf (PDF · Final-Term)
- CS410 FINALTERM SUBJECTIVE WITH REFERENCE SOLVED BY UMAIR SA (DOC · Final-Term)