Which code fragment should you insert at line 12?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You want the application to contain a window as shown in the following exhibit. The application contains the following code fragment. (Line numbers are included for reference only.)
01 <Grid ShowGridLines=”True”>
02 <Grid.ColumnDefinitions>
03 <ColumnDefinition />
04 <ColumnDefinition />
05 <ColumnDefinition />
06 </Grid.ColumnDefinitions>
07 <Grid.RowDefinitions>
08 <RowDefinition />
09 <RowDefinition />
10 <RowDefinition />
11 </Grid.RowDefinitions>
12
13 <TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”0″>Quarter</TextBlock>
14 <TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”1″>Quarter 1</TextBlock>
15 <TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”2″>Quarter 2</TextBlock>
16 <TextBlock FontWeight=”Bold” Grid.Row=”2″ Grid.Column=”0″>Products</TextBlock>
17 <TextBlock Grid.Row=”2″ Grid.Column=”1″>100000</TextBlock>
18 <TextBlock Grid.Row=”2″ Grid.Column=”2″>150000</TextBlock>
19 </Grid>

You need to create the application window. Which code fragment should you insert at line 12?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You want the application to contain a window as shown in the following exhibit. The application contains the following code fragment. (Line numbers are included for reference only.)
01 <Grid ShowGridLines=”True”>
02 <Grid.ColumnDefinitions>
03 <ColumnDefinition />
04 <ColumnDefinition />
05 <ColumnDefinition />
06 </Grid.ColumnDefinitions>
07 <Grid.RowDefinitions>
08 <RowDefinition />
09 <RowDefinition />
10 <RowDefinition />
11 </Grid.RowDefinitions>
12
13 <TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”0″>Quarter</TextBlock>
14 <TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”1″>Quarter 1</TextBlock>
15 <TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”2″>Quarter 2</TextBlock>
16 <TextBlock FontWeight=”Bold” Grid.Row=”2″ Grid.Column=”0″>Products</TextBlock>
17 <TextBlock Grid.Row=”2″ Grid.Column=”1″>100000</TextBlock>
18 <TextBlock Grid.Row=”2″ Grid.Column=”2″>150000</TextBlock>
19 </Grid>

You need to create the application window. Which code fragment should you insert at line 12?

A.
<Rectangle Grid.ColumnSpan=”3″ Fill=”#73B2F5″/> <Rectangle Grid.Row=”1″ Grid.RowSpan=”2″ Fill=”#73B2F5″/> <TextBlock FontSize=”20″ FontWeight=”Bold” Grid.Row=”0″>2010 Products Shipped</TextBlock>

B.
<Rectangle Grid.ColumnSpan=”3″ Fill=”#73B2F5″/> <Rectangle Grid.Row=”1″ Grid.RowSpan=”1″ Fill=”#73B2F5″/> <TextBlock FontSize=”20″ FontWeight=”Bold” Grid.ColumnSpan=”3″ Grid.Row=”0″>2010 Products Shipped</TextBlock>

C.
<Rectangle Grid.ColumnSpan=”3″ Fill=”#73B2F5″/> <Rectangle Grid.RowSpan=”3″ Fill=”#73B2F5″/> <TextBlock FontSize=”20″ FontWeight=”Bold” Grid.ColumnSpan=”3″ Grid.Row=”0″>2010 Products Shipped</TextBlock>

D.
<Rectangle Grid.Column=”1″ Grid.ColumnSpan=”2″ Fill=”#73B2F5″/> <Rectangle Grid.RowSpan=”3″ Fill=”#73B2F5″/> <TextBlock Grid.Column=”1″ FontSize=”20″ FontWeight=”Bold” Grid.ColumnSpan=”3″ Grid.Row=”0″>2010 Products Shipped</TextBlock>



Leave a Reply 0

Your email address will not be published. Required fields are marked *