Skip to content
VUBuddy

CS411 Midterm Short Notes and Questions and Answers

Visual Programming PDF 392 KBUpdated 23 Oct 2026
Midterm past paper CS411 Midterm Short Notes and Questions and Answers PDF 392 KB
vubuddy.com
Type
Midterm past paper
Course
CS411 Visual Programming
Size
PDF 392 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 392 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 8. Download the file for all 8 pages.

CS411 · Midterm upto 2015 · Visual Programming · Subjective Solved · M. Kamran Khan

No.

Question Statement

Name the Built-in Transforms - Their Default Values?

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)
  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(); xmlDoc. LoadXml("<uni name=\' Virtual\"> University Node</uni."); console.writeLine(xmldoc. DocumentElement. Name); console.writeLine(xmldoc. DocumentElement. InnerText); console.readline();

Answer: Element Name: Virtual Inner Text: University Node

Which Option to be Used to Fill the Dock Panels?

Answer: 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‖

Write Code to Delete Non-Empty Cell?

Answer: { cell.value = string.empty

Can BAML be Decompiled back into XAML? Explain with Valid Reason.

Answer: Yes, BAML can be converted back to XAML. BAML is binary application markup language. It just a compressed representation of XAML. There is even a BAML reader available.

What are Default Values of These?

  1. Max Height
  2. Min Height
  3. Max Width
  4. Min Width

Answer: Min=0 and Max=Infinity by default.

All frameworkelements have Height and Width properties of type double.

How can we know which cells are directly affected by the resizing of "GridSplitters"?

Answer: It depends on Gridsplitter’s alignment values. Default horizontal alignment=right and vertical alignment=stretch. 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.

Which provide multi-touch support, WPF3 or WPF4?

Answer: WPF 4.0 includes multi-touch support.

Name of three type of row-definition and column-definition sizing that are supported by WPF “GRID” panel?

3 Ways of Rows and Columns Sizing?

  1. Absolute sizing: device independent pixels means no grow shrink,
  2. Auto-sizing: size to content.
  3. Proportional or Star sizing: grows or shrinks.

How to make xml document name? Write the syntax?

Answer: Xmldocumentxmldoc = new xmldocument();

Types of Transform?

Answer: LayoutTransform RenderTransform. One applied before layout and one after.

Convert Xml into C#?

Span id="IL_AD1" class="IL_AD"> Button xmlns=" Content="OK"/>

Answer: 1 System. Windows. Controls. Button b = new System. Windows. Controls. Button(); 2 b.Content = "OK";

Write the C# code line to take any string as input from user and the write that string to a file named “Student.txt”?

Answer: 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();

Which panel functionality is actually a superset of “stack panel” functionality?

Answer: Dock panel is a superset of stack panel, Dock attached property has left, right, top, bottom values.

For what purpose XAML is used in WF and WCF?

Answer: 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 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.

WPF Panels are Derived from Which Class?

Answer: Panels are parents supporting layout of multiple children. They derive from the abstract System. Windows. Controls. Panel class.

How matrix transform is work like translate transform and give example?

Answer: 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.

Padding and margin, illustrate 3 instances?

Answer: 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.

All CS411 files →
CS411 Visual Programming All CS411 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.