Arrays (OCR GCSE Computer Science): Quizzes

📚Quizzes
Arrays
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

11 questions from this quiz

Show

What type of values must be stored in an array?

Values of the same data type

What is a key characteristic of an array's length?

It is fixed when created

What does a 1D array resemble?

A list

What does a 2D array resemble?

A grid or table

What number does array indexing start from?

0

In names = ["Bob", "Alex", "Chris"], what does names[1] return?

Alex

In 2D arrays used as database tables, what does each row represent?

A record

In 2D arrays used as database tables, what does each column represent?

A field

In matrix = [[1, 2], [3, 4], [5, 6]], what does matrix[1][1] return?

4

For matrix = [[1, 2], [3, 4], [5, 6]], what does len(matrix) return?

3

Can the size of an array be changed after it is created?

No, arrays have a fixed length

Explore OCR GCSE Computer Science Revision Notes by Topics

Explore OCR GCSE Computer Science Model Answers by Topics

Explore OCR GCSE Computer Science Flashcards by Topics

Explore OCR GCSE Computer Science Exam Questions by Topics

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.