Visual Programming MCQs with Answers
Practice important Visual Programming MCQs with answers and explanations.
Multiple Choice Questions
Q371: Which class provides the RenderTransform and LayoutTransform properties?
- A: FrameworkElement
- B: Transform
- C: UIElement
- D: Visual
View Answer
A
Q372: What is the primary difference between RenderTransform and LayoutTransform in WPF?
- A: RenderTransform affects how the element is rendered; LayoutTransform affects the element's layout size and position.
- B: RenderTransform affects the layout only; LayoutTransform affects rendering quality.
- C: RenderTransform affects the layout and rendering; LayoutTransform affects only rendering quality.
- D: RenderTransform affects visual appearance; LayoutTransform affects data binding.
View Answer
A
Q373: What does Thickness represent in WPF layout properties?
- A: The space around an element, which can be set to one, two, or four values.
- B: The maximum height of an element.
- C: The amount of space inside the edges of an element.
- D: The distance from the element to its container's border.
View Answer
A
Q374: How do you specify a margin in XAML that represents 10 pixels on all sides?
- A:
- B:
- C:
- D:
View Answer
A
Q375: Which WPF property affects how a control's content fills the space inside the control?
- A: HorizontalContentAlignment
- B: HorizontalAlignment
- C: VerticalAlignment
- D: ContentAlignment
View Answer
A
Q376: What method is used to get the value of an attached property in WPF?
- A: GetValue
- B: RetrieveValue
- C: FetchValue
- D: AccessValue
View Answer
A
Q377: What value of Visibility makes an element invisible and not participate in layout?
- A: Collapsed
- B: Hidden
- C: Visible
- D: None
View Answer
A
Q378: How is the FlowDirection property used for right-to-left languages in WPF?
- A: Set FlowDirection to RightToLeft.
- B: Set FlowDirection to LeftToRight.
- C: Set FlowDirection to TopToBottom.
- D: Set FlowDirection to BottomToTop.
View Answer
A
Q379: What is the difference between LayoutTransform and RenderTransform in WPF?
- A: LayoutTransform is applied before rendering, RenderTransform is applied after rendering.
- B: LayoutTransform affects size and position; RenderTransform affects only appearance.
- C: RenderTransform affects layout; LayoutTransform affects appearance.
- D: LayoutTransform is applied after rendering, RenderTransform is applied before rendering.
View Answer
A
Q380: Which property is used to specify the origin for rendering transforms?
- A: RenderTransformOrigin
- B: TransformOrigin
- C: TransformPosition
- D: RenderingOrigin
View Answer
A