Visual Programming MCQs with Answers
Practice important Visual Programming MCQs with answers and explanations.
Multiple Choice Questions
Q401: How does the GridLength constructor with GridUnitType.Star affect a Grid?
- A: It allows the size to be proportional to the remaining space.
- B: It sets the size to a fixed number of pixels.
- C: It adjusts the size based on the content.
- D: It sizes the element to fit its container.
View Answer
A
Q402: What effect does a GridSplitter have on a Grid layout?
- A: It allows interactive resizing of rows or columns.
- B: It positions elements within a grid cell.
- C: It changes the alignment of grid elements.
- D: It adds or removes rows and columns.
View Answer
A
Q403: What is the default alignment of a GridSplitter in a Grid?
- A: Horizontal alignment = Right, Vertical alignment = Stretch
- B: Horizontal alignment = Center, Vertical alignment = Center
- C: Horizontal alignment = Stretch, Vertical alignment = Bottom
- D: Horizontal alignment = Left, Vertical alignment = Top
View Answer
A
Q404: When using proportional sizing with * in Grid, how does 2* compare to 1*?
- A: 2* takes twice as much space as 1*.
- B: 2* takes half as much space as 1*.
- C: 2* takes the same amount of space as 1*.
- D: 2* takes no space compared to 1*.
View Answer
A
Q405: What does setting GridLength to Auto mean for row or column sizing?
- A: The size adjusts automatically based on the content.
- B: The size is set to a fixed number of pixels.
- C: The size is proportional to the remaining space.
- D: The size is not set and remains flexible.
View Answer
A
Q406: What does the GridLength constructor new GridLength(100) specify?
- A: An absolute size of 100 pixels.
- B: A proportional size relative to the remaining space.
- C: An automatic size based on content.
- D: A size of 100 units of Star sizing.
View Answer
A
Q407: What does the GridSplitter property ResizeDirection control?
- A: It determines whether the splitter resizes rows or columns.
- B: It sets the size of the splitter.
- C: It specifies the color of the splitter.
- D: It adjusts the alignment of the splitter.
View Answer
A
Q408: When multiple elements are placed in the same cell of a Grid, what determines their visibility?
- A: The z-order of the elements.
- B: The alignment of the elements.
- C: The size of the cell.
- D: The content of the cell.
View Answer
A
Q409: What does the Width="Auto" attribute do in a Grid.ColumnDefinition?
- A: Sets the column width to fit the content automatically.
- B: Sets the column width to a fixed value.
- C: Sets the column width to fill the remaining space.
- D: Sets the column width to the maximum value possible.
View Answer
A
Q410: What is the purpose of the GridSplitter in a Grid layout?
- A: It allows interactive resizing of columns or rows.
- B: It sets the alignment of elements within a Grid.
- C: It changes the color of the grid lines.
- D: It adjusts the padding of grid cells.
View Answer
A