Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

Arrays

Arrays are data structures which are of a fixed size and contain data of the same type stored in a contiguous block of memory.

1D array

1D array

  • A 1-dimensional array is a single set of data, which can be visualised in a single row. - For example: oneDArray = [A, B, C, D]
2D array

2D array

  • A 2-dimensional array is a set of data which can be visualised in rows and columns.
  • For example, array twoDArray = [[A, B, C, D], [E, F, G, H],[I, J, K, L]]
  • Items in a 2-dimensional array are referred to by their row number, followed by column number.
  • For example, twoDArray [1,2] = G
3D array

3D array

  • A 3-dimensional array is a collection of 2-dimensional arrays.
  • You can visualise each 2D array as being stored one behind the other.
    • For example, threeDArray = [[[A, B, C, D], [E, F, G, H],[I, J, K, L]], [[M, N, O, P], [Q, R, S, T],[U, V, W, X]],[[Y, Z, 0, 1], [2, 3, 4, 5], [6, 7, 8, 9]]]
3D array cont.

3D array cont.

  • Items in a 3-dimensional array are referred to by their 2D array number, followed by the row number, and column number.
    • For example, threeDArray [1,2,2] = W
Jump to other topics
1

Components of a Computer

2

Software & Software Development

3

Exchanging Data

4

Data Types, Data Structures & Algorithms

5

Legal, Moral, Cultural & Ethical Issues

6

Elements of Computational Thinking

6.1

Thinking Abstractly

6.2

Thinking Ahead

6.3

Thinking Procedurally

6.4

Thinking Logically

6.5

Thinking Concurrently

7

Problem Solving & Programming

8

Algorithms

Practice questions on 3D Arrays

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
  3. 3
Answer all questions on 3D Arrays

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium