Visual Programming MCQs with Answers
Practice important Visual Programming MCQs with answers and explanations.
Multiple Choice Questions
Q381: What does the ScaleTransform property Scalex control?
- A: Horizontal scaling factor
- B: Vertical scaling factor
- C: Scaling origin
- D: Scaling matrix
View Answer
A
Q382: Which transform is used to skew an element horizontally in WPF?
- A: SkewTransform
- B: RotateTransform
- C: ScaleTransform
- D: TranslateTransform
View Answer
A
Q383: How do you specify a matrix transform using a string in XAML?
- A: MatrixTransform with matrix as a string
- B: MatrixTransform with a Matrix object
- C: TransformGroup with a MatrixTransform
- D: MatrixTransform with a Transform
View Answer
A
Q384: What is the effect of setting RenderTransformOrigin to 0.5, 0.5?
- A: It centers the transform origin at the element's center.
- B: It positions the transform origin at the element's top-left corner.
- C: It scales the element to 50% of its size.
- D: It applies a fixed transformation from the top-right corner.
View Answer
A
Q385: What does the TranslateTransform property X specify?
- A: Amount to move horizontally
- B: Amount to move vertically
- C: Amount to scale horizontally
- D: Amount to scale vertically
View Answer
A
Q386: Which transform affects the actual size and layout of elements in WPF?
- A: LayoutTransform
- B: RenderTransform
- C: TranslateTransform
- D: ScaleTransform
View Answer
A
Q387: How are multiple transforms combined in WPF?
- A: Using TransformGroup
- B: Using MatrixTransform
- C: By chaining multiple Transform properties
- D: Using RenderTransformGroup
View Answer
A
Q388: What does the Canvas.ZIndex property control?
- A: The stacking order of elements in a Canvas.
- B: The size of elements within a Canvas.
- C: The position of elements in a Canvas.
- D: The margin and padding of elements in a Canvas.
View Answer
A
Q389: What does the WrapPanel do when there is not enough space for elements?
- A: Wraps elements into additional rows or columns.
- B: Stretches elements to fit available space.
- C: Centers elements within the available space.
- D: Positions elements according to a grid layout.
View Answer
A
Q390: Which panel is most suitable for absolute positioning of elements in WPF?
- A: Canvas
- B: StackPanel
- C: WrapPanel
- D: Grid
View Answer
A