Skip to main content

Visual Programming MCQs with Answers

Practice important Visual Programming MCQs with answers and explanations.

Chapter: 11
Q281:
What does the Person class in the example use reflection for?
A. To save settings to a file
B. To load and save properties
C. To create new directories
D. To manage file metadata
Correct Answer: B
Chapter: 11
Q282:
How is a new Person object saved to the file in the example?
A. By writing each property to a file
B. By creating a new file
C. By updating an existing file
D. By renaming the file
Correct Answer: A
Chapter: 11
Q283:
What is the main purpose of PropertyInfo in the Person class example?
A. To list all methods
B. To set and get property values
C. To handle file operations
D. To manage file metadata
Correct Answer: B
Chapter: 12
Q284:
When was WPF first publicly announced?
A. 1995
B. 2000
C. 2003
D. 2005
Correct Answer: C
Chapter: 12
Q285:
What was the codename for WPF before its public announcement?
A. Avalon
B. AvalonX
C. Avalon 2
D. Windows Presentation
Correct Answer: A
Chapter: 12
Q286:
What is a key feature of WPF regarding UI development?
A. Mixing UI with program logic
B. Separation of UI description and implementation
C. Hardcoded UI themes
D. Fixed UI design
Correct Answer: B
Chapter: 12
Q287:
What is the primary advantage of WPF over Win32 style programming?
A. Better hardware support
B. More complex code
C. Easier re-theming of user interfaces
D. Direct manipulation of graphics
Correct Answer: C
Chapter: 12
Q288:
Which UI library introduced in the 1980s is considered an earlier version of GDI+?
A. GDI
B. OpenGL
C. DirectX
D. GDI+
Correct Answer: A
Chapter: 12
Q289:
What does WPF use for its rendering pipeline?
A. OpenGL
B. Direct3D
C. GDI
D. GDI+
Correct Answer: B
Chapter: 12
Q290:
What is a notable feature of WPF in terms of graphics?
A. Resolution independence
B. Bitmap-based graphics
C. Only 2D graphics
D. Limited hardware acceleration
Correct Answer: A
Chapter: 12
Q291:
What does XAML stand for in the context of WPF?
A. Extensible Application Markup Language
B. Extensible Automated Markup Language
C. Extended Application Markup Language
D. External Application Markup Language
Correct Answer: A
Chapter: 12
Q292:
Which version of WPF introduced interactive 3D elements?
A. WPF 3.0
B. WPF 3.5
C. WPF 4.0
D. WPF 4.5
Correct Answer: B
Chapter: 12
Q293:
What feature did WPF 4.0 introduce related to multi-touch support?
A. Surface API v2 compatibility
B. Mouse support
C. Single-touch gestures
D. Keyboard shortcuts
Correct Answer: A
Chapter: 12
Q294:
How does Silverlight differ from WPF?
A. It is a full .NET framework
B. It is a lightweight version for the web
C. It supports extensive hardware acceleration
D. It is only for Windows applications
Correct Answer: B
Chapter: 12
Q295:
What is a primary use of XAML outside of WPF?
A. For hardware interaction
B. For describing workflows in WF and WCF
C. For creating directx applications
D. For handling file operations
Correct Answer: B
Chapter: 12
Q296:
What was a key improvement in WPF 3.5 SP1 over its previous versions?
A. Better special effects
B. Enhanced multi-touch support
C. Full Direct3D integration
D. Improved GDI+ support
Correct Answer: A
Chapter: 12
Q297:
What tool is mentioned as being fully WPF-based for designing and prototyping WPF apps?
A. Visual Studio 2010
B. Expression Blend
C. Visual Studio 2012
D. Adobe Illustrator
Correct Answer: B
Chapter: 12
Q298:
What is a primary benefit of using XAML in WPF projects?
A. Faster runtime performance
B. Reduced code complexity
C. Increased security
D. Increased network performance
Correct Answer: B
Chapter: 12
Q299:
What is a common misconception about XAML compared to other markup languages like HTML or SVG?
A. It has more elements than HTML
B. It is similar to HTML in structure
C. It doesn't make sense without .NET
D. It uses extensive SVG vocabularies
Correct Answer: C
Chapter: 12
Q300:
What type of programming does XAML primarily support?
A. Declarative
B. Imperative
C. Procedural
D. Object-oriented
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Visual Programming

🚀 Start Quiz Now