CS411 Midterm Short notes and Question and Answers-1.pdf
Verified academic study resource for CS411 (Visual Programming) 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
- CS411 – Visual Programming
- Faculty
- Computer Science
- Format
- Type
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Tags
- MIDTERM
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 CS411.
What this file covers — CS411 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 CS411 Midterm Short notes and Question and Answers-1.pdf for free?
You can preview and download "CS411 Midterm Short notes and Question and Answers-1.pdf" (CS411 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs411-midterm-short-notes-and-question-and-answers-1-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS411 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 CS411 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 CS411 solved past papers and handouts verified for 2026 exams?
Yes. All CS411 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
CS411 Midterm upto 2015 MC130401237
Visual Programming Subjective Solved M. Kamran Khan
No. Question Statement
Name the Built-in Transforms - Their Default Values?
1
Name 5 built in 2D transform which are supported by "System.Windows.Media"
namespace.
1. Translate Transform
2. Skew Transform - AngleX, AngleY, CenterX & CenterY (default value = 0)
Ans. 3. Scale Transform
4. Rotate Transform – Angle, Centrex, Centery = 0;
5. Matrix Transform
Consider the following code snippet and write the output:
XmlDocumentxmlDoc = new XmlDocument();
2 xmlDoc.LoadXml("<uni name=\'Virtual\">University Node</uni.");
console.writeLine(xmldoc.DocumentElement.Name);
console.writeLine(xmldoc.DocumentElement.InnerText);
console.readline();
Ans. Element Name: Virtual
Inner Text: University Node
3 Which Option to be Used to Fill the Dock Panels?
Ans. Dock panel allows easy docking of elements to an entire side.
Dock attached property has left, right, top, bottom values.
Last child fills space unless lastchildfill=false.in
We can also do this by setting Background = ―Red‖
4 Write Code to Delete Non-Empty Cell?
Ans. {
cell.value = string.empty
}
5 Can BAML be Decompiled back into XAML? Explain with Valid Reason.
Yes, BAML can be converted back to XAML.
Ans. BAML is binary application markup language. It just a compressed representation of XAML.
There is even a BAML reader available.
6 What are Default Values of These?
1. Max Height
2. Min Height
3. Max Width
4. Min Width
Min=0 and Max=Infinity by default.
Ans.
All frameworkelements have Height and Width properties of type double.
7 How can we know which cells are directly affected by the resizing of "GridSplitters"?
It depends on Gridsplitter’s alignment values.
Default horizontal alignment=right and vertical alignment=stretch.
Ans. When all proportionally sized, changes co-efficients accordingly.
When absolute sizing, changes only top or left of the cells. Remaining cells pushed down or
right.
8 Which provide multi-touch support, WPF3 or WPF4?
Ans. WPF 4.0 includes multi-touch support.
Name of three type of row-definition and column-definition sizing that are supported by
9 WPF “GRID” panel?
3 Ways of Rows and Columns Sizing?
1. Absolute sizing: device independent pixels means no grow shrink,
Ans. 2. Auto-sizing: size to content.
3. Proportional or Star sizing: grows or shrinks.
10 How to make xml document name? Write the syntax?
Ans. Xmldocumentxmldoc = new xmldocument();
11 Types of Transform?
o LayoutTransform
Ans.
o RenderTransform.
o One applied before layout and one after.
12 Convert Xml into C#?
Span id="IL_AD1" class="IL_AD">Button
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Content="OK"/>
Ans. 1 System.Windows.Controls.Button b = new System.Windows.Controls.Button();
2 b.Content = "OK";
13 Write the C# code line to take any string as input from user and the write that string to
a file named “Student.txt”?
Ans. using System;
class Program
{
static void Main()
{
while (true) // Loop indefinitely
{
Console.WriteLine("Enter input:"); // Prompt
string line = Console.ReadLine(); // Get string from user
if (line == "exit") // Check string
{
break;
}
// Write the string to a file.
{
System.IO.StreamWriter file = new System.IO.StreamWriter("c:\\student.txt");
file.WriteLine(lines);
}
file.Close();
14 Which panel functionality is actually a superset of “stack panel” functionality?
Ans. Dock panel is a superset of stack panel, Dock attached property has left, right, top, bottom
values.
15 For what purpose XAML is used in WF and WCF?
XAML is primarily used to describe interfaces in WPF and Silverlight.
It is also used to express activities and configurations in workflow foundation (WF) and
Ans. windows communication foundation (WCF).
It’s a common language for programmers and other experts e.g. UI design experts. Field
specific development tools can be made. Field experts are graphic designers. They can use a
design tool such as expression blend. Other than co-ordinating with designers, XAML is
good for a concise way to represent UI or hierarchies of objects, encourages separation of
front-end and back-end, tool support with copy and paste, used by all WPF tools.
16 WPF Panels are Derived from Which Class?
Ans. Panels are parents supporting layout of multiple children. They derive from the abstract
System.Windows.Controls.Panel class.
17 How matrix transform is work like translate transform and give example?
Ans. Translate Transform has X — Amount to move horizontally (default value = 0), Y —
Amount to move vertically (default value = 0). It has no effect as a layout transform.
Matrix Transform has a single Matrix property (of type System.Windows.Media.Matrix)
representing a 3x3 affine transformation matrix.
18 Padding and margin, illustrate 3 instances?
Next is margin and padding. All framework elements have margin, controls (and Border)
have padding. Margin is extra space ―outside‖ and padding is ―inside‖ edges of the element.
They are of type Thickness that can represent 1, 2, or 4 values. Negative margin is possible.
Label’s default padding=5. Xaml specification is helped by type converter.
Ans.
19 Write xml code of given C# code?
StakPanelstackpanel = new StakePanel
Button button = new system.window.control Button;
button.widh = 50;
button.Hight = 70
button.HOrizontelAlligenemtn = right;
stakepanel.child.add(button);
Ans. <?xml version="1.0" encoding="UTF-8" ?>
<root>
<0>More CS411 files
- CS411 - Midterm Solved MCQs With References By Moaaz.pdf (PDF · Midterm)
- CS411 Current (SUB+OBJ)Mid Term By JUANID-1.pdf (PDF · Midterm)
- CS411 Current (SUB+OBJ)Mid Term By JUANID.pdf (PDF · Midterm)
- CS411 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS411 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS411 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS411 MIDTERM FILE 3 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS411 MIDTERM FILE 4 SOLVED BY TEAM HADI.pdf (PDF · Midterm)