8.2 Arrays Cambridge IGCSE 0478

8.2 Arrays Cambridge IGCSE 0478

10th Grade

10 Qs

quiz-placeholder

Similar activities

PWPB - 11 RPL

PWPB - 11 RPL

11th Grade

15 Qs

Network Management Week 14

Network Management Week 14

University

10 Qs

QUIZZ 1 : DATABASE FUNDAMENTALS

QUIZZ 1 : DATABASE FUNDAMENTALS

University

10 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

ITF Chapter 1 Computing Devices

ITF Chapter 1 Computing Devices

University

14 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

8.2 Arrays Cambridge IGCSE 0478

8.2 Arrays Cambridge IGCSE 0478

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Stephen Ling-Winston

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary advantage of using an array in a program?

It allows multiple values to be stored under a single variable name.

It eliminates the need for loops.

It prevents errors in a program.

It improves execution speed for all operations.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does a one-dimensional (1D) array store data?

As a list of values, each accessed using a single index.

In a table format with rows and columns.

As a linked list of separate memory locations.

By assigning values dynamically without indexing.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a two-dimensional (2D) array, how many indices are needed to access a value?

Two (one for the row and one for the column).

One (similar to a 1D array).

Three (one for each possible dimension).

It depends on the programming language.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following pseudocode do?

Stores the values [0, 2, 4, 6, 8] in myArray.

Stores the values [1, 2, 3, 4, 5] in myArray.

Stores only even numbers but does not assign them.

Produces an error because i * 2 is not valid.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you access the third element in an array named scores if arrays are zero-indexed?

scores[2]

scores[3]

scores[1]

scores[0]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is required when iterating over a 2D array?

Nested loops (one for rows and one for columns).

A single loop for all elements.

A recursive function call.

A predefined index table.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an array data[5] is declared in a zero-indexed language, how many elements can it store?

5 elements

4 elements

6 elements

It depends on the values stored.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?