📘 Lectures 1–5
1. What is the main focus of the Visual Programming course?
A) Web Development
B) Data Structures
C) Event-driven programming using GUI ✅
D) Database Management
2. Which language is primarily used for WPF in this course?
A) Java
B) C++
C) Python
D) C# ✅
3. Which book is used for learning WPF in this course?
A) Event Processing in Action
B) Windows Presentation Foundation Unleashed ✅
C) C# for Beginners
D) Programming Windows
4. What does XAML stand for?
A) XML Application Markup Language
B) Extensible Application Markup Language ✅
C) Extra Advanced Markup Language
D) None of the above
5. Which panel arranges child elements in a single line?
A) Grid
B) StackPanel ✅
C) Canvas
D) DockPanel
6. In C#, which access modifier allows a class to be accessed from outside the assembly?
A) private
B) internal
C) public ✅
D) protected
📘 Lectures 6–10
1. What is the purpose of using namespaces in C#?
A) Increase memory
B) Prevent name conflicts ✅
C) Improve graphics
D) Enable multi-threading
2. What keyword is used to define a class in C#?
A) object
B) method
C) class ✅
D) define
3. Which of the following is true about constructors in C#?
A) They return an int value
B) They are used to destroy objects
C) They initialize class members ✅
D) They can have any name
4. Which keyword is used to define an anonymous method in C#?
A) delegate ✅
B) event
C) var
D) return
5. Overloaded operators in C# must be defined as:
A) public
B) static ✅
C) void
D) inline
6. What is used to create a dictionary in C#?
A) List<string>
B) Array[]
C) Dictionary<TKey, TValue> ✅
D) Hashtable
📘 Lectures 11–15
1. What is the main purpose of extension methods in C#?
A) Overload constructors
B) Add new methods to existing types without modifying them ✅
C) Add variables to classes
D) Replace static methods
2. What class is used for file writing in C#?
A) Stream
B) StreamWriter ✅
C) XmlWriter
D) FileAccess
3. What does BAML stand for?
A) Basic Application Markup Language
B) Binary Application Markup Language ✅
C) Built-in Application Markup Loader
D) Background Application Markup Logic
4. What XAML keyword is used to define event handlers inside markup?
A) x:Event
B) x:Code ✅
C) x:Class
D) x:Define
5. What keyword in XAML prevents a resource from being shared?
A) x:FieldModifier
B) x:Shared ✅
C) x:Name
D) x:Key
6. Which keyword is used in C# to release resources in file handling automatically?
A) free()
B) end
C) using ✅
D) release
📘 Lectures 16–20
1. What is a dependency property in WPF?
A) A property that cannot change
B) A method to inherit constructors
C) A property that depends on multiple inputs ✅
D) A static class in XAML
2. Which class is used to set attached properties?
A) DependencyManager
B) FrameworkElement
C) Button
D) TextElement ✅
3. What is the default sizing behavior in WPF layout?
A) Absolute sizing
B) Auto-sizing to content ✅
C) Fixed width
D) Full screen
4. What WPF element allows you to resize columns or rows by dragging?
A) GridEditor
B) SplitPanel
C) GridSplitter ✅
D) Resizer
5. What is the default alignment of GridSplitter in horizontal orientation?
A) Left
B) Right ✅
C) Center
D) Stretch
📘 Lectures 21–22
1. What feature in WPF allows resizable, dockable panes like in Visual Studio?
A) StackPanel
B) DockPanel with SharedSizeGroup ✅
C) Canvas
D) TabControl
2. What does the Grid.IsSharedSizeScope property do?
A) Enables scrolling
B) Disables resizing
C) Shares column width between Grids ✅
D) Rotates UI elements
3. What are attached events in WPF?
A) Events that run in another thread
B) Events that can tunnel and bubble through unrelated elements ✅
C) Events declared outside the window
D) Static events in a class
4. Which keyword indicates a tunneling event in WPF?
A) Bubble
B) Preview ✅
C) Tunnel
D) Cascade
5. What happens when a mouse right button event is triggered in the AboutDialog example?
A) Closes the window
B) Changes background color
C) Displays event source info and adds a border ✅
D) Refreshes the window