Visual Programming - MCQs
1. WCF stands for:
[ ] Windows Classic Foundation
[ ] Windows Class Foundation
[ ] Windows Channel Foundation
[x] Windows Communication Foundation
2. Anonymous methods _________________ the code size.
[ ] Double
[ ] Expand
[ ] Extend
[x] Reduce
3. ___________ methods do not have names.
[ ] Static
[x] Anonymous
[ ] Private
[ ] Non-anonymous
4. ________ library is used behind Xbox Graphics.
[x] DirectX
[ ] NXAG
[ ] GDI+
[ ] XNA
5. Which of the following keyword is used to declare an anonymous method?
[ ] this
[x] delegate
[ ] static
[ ] event
6. The ___________ method is used to read the whole file at once.
[ ] Read("test.txt");
[ ] ReadLine();
Visual Programming - MCQs
[x] ReadAllText("test.txt");
[ ] ReadAll();
7. WPF was previously known as __________.
[ ] Perl
[ ] Ruby
[ ] Mercury
[x] Avalon
8. Choose the correct option about Extension methods in C#:
[ ] Extension methods can be used to override existing instance methods
[x] They must be declared static
[ ] They can be declared as instance member
[ ] They must be declared in the same assembly (but may be in different source files)
9. Vector Graphics measure in _______.
[ ] Ratio
[ ] Intervals
[ ] Ordinal Scale
[x] Real units
10. _________ allows to keep the user interface description and implementation separate.
[ ] Avalon
[x] WPF
[ ] Altia
[ ] GDI
11. ________ allows child elements in a tree of elements to obtain the value of a particular property
from parent elements.
[ ] Property Polymorphism
[ ] Property Element
[ ] Property Abstract Nature
[x] Property Value inheritance
Visual Programming - MCQs
12. The root object element in XAML must specify at least ______ XML namespace(s).
[ ] Four
[ ] Two
[ ] Three
[x] One
13. If we exclude the mechanism of calling the objects through name then:
[x] Code will become design dependent
[ ] Code will have errors
[ ] Code will not compile
[ ] Code will be difficult to debug
14. Which one is the correct C# code to create a button in a WPF project?
[ ] System.Forms.Windows.Button b = new System.Forms.Windows.Button(); b.Content = "OK";
[ ] System.Forms.Button b = new System.Forms.Button(); b.Content = "OK";
[ ] System.Windows.Button b = new System.Windows.Button(); b.Content = "OK";
[x] System.Windows.Controls.Button b = new System.Windows.Controls.Button(); b.Content = "OK";
15. The code below is equivalent to _________: <SolidColorBrush>White</SolidColorBrush>
[x] <SolidColorBrush Color="White"/>
[ ] <Brush Color="White">
[ ] <Brush Style="SolidWhite">
[ ] <WhiteBrush>MyWhiteBrush</WhiteBrush>
16. ________ function will register a dependency property in WPF.
[ ] DependencyProperty.Registered()
[x] DependencyProperty.Register()
[ ] DependencyProperty.Reg()
[ ] DependencyProperty.Registeration()
17. DependencyObject.ClearValue method clears the _______ value in a dependency property.
[ ] Default
[x] Local
Visual Programming - MCQs
[ ] Setter
[ ] Getter
18. The goal of WPF and XAML is to keep separate the user interface design and ____________
[ ] Element Tree
[x] Implementation
[ ] Tools
[ ] Content
19. Markup extensions are surrounded by ________
[x] Curly braces
[ ] Square Brackets
[ ] Parentheses
[ ] Angle Brackets
20. <Button.Content> tag in XAML is the syntax for _______
[x] Property Element
[ ] Namespace
[ ] Form
[ ] Class