CS411 Midterm Short Notes and Questions and Answers
- Type
- Midterm past paper
- Course
- CS411 Visual Programming
- Size
- PDF 392 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 8. Download the file for all 8 pages.
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.
- Translate Transform
- Skew Transform - AngleX, AngleY, CenterX & CenterY (default value = 0)
- Scale Transform
- Rotate Transform – Angle, Centrex, Centery = 0;
- 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?
- Max Height
- Min Height
- Max Width
- 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?
- Absolute sizing: device independent pixels means no grow shrink,
- Auto-sizing: size to content.
- 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.
Related CS411 files
All CS411 files →- CS411 Midterm MCQs Midterm PDF 280 KB
- CS411 Midterm Short Notes Midterm PDF 650 KB
- CS411 Midterm MCQs with References by Moaaz Midterm PDF 369 KB
- CS411 Midterm Solved MCQs by Junaid Midterm PDF 1.5 MB
- CS411 Highlighted Handouts by Mickey Ch Highlighted PDF 6.1 MB
- CS411 Solved Grand Quiz 2021 by Sonu Ilyas Quiz PDF 5.1 MB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.