Skip to content

Course home

Data structures

Data structures

EasyMedium
12345678910111213
Question 11

Complete the VB.Net program below by filling in the four gaps to initialize all elements in a 3x3 game board grid to "-".

1  Dim board As String(,) = New String(,) {{ "", "", "" },
                                           { "", "", "" },
                                           { "", "", "" }}

2  Dim row As Integer = 0
3  While (row < 3)

4      Dim col As Integer = 0
5      While (col < 3)

6          board( _____ , _____ ) = "-"

7          _____
8      End While

9      _____
10 End While
[4]
Markscheme

Data structures Questions

  1. GCSE
  2. /Computer Science
  3. /Data structures

36 exam-style questions on AQA GCSE Computer Science Data structures. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank