Search Header Logo

Arrays and Files

Authored by Salah Salah

Computers

12th Grade

Used 6+ times

Arrays and Files
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An array is a data structure that contains several elements of the same data type

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The position of each element is an array is identified using the arrays .......

index

Lower bound

Upper bound

Subscript

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare a 1D array in pseudocode?

DECLARE <Identifier> : ARRAY[LB:UB] OF <data type>

DECLARE <Identifier> : ARRAY[LB:UB],[LB:UB] OF <data type>

DECLARE <Identifier> : ARRAY[LB:UB]

DECLARE <Identifier> : ARRAY OF <data type>

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare a 2D array in pseudocode?

DECLARE <Identifier> : ARRAY[LB:UB] OF <data type>

DECLARE <Identifier> : ARRAY[LBR:UBR,LBC:UBC,] OF <data type>

DECLARE <Identifier> : ARRAY[LB:UB]

DECLARE <Identifier> : ARRAY OF <data type>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To find an item stored in an array, the array needs to be searched, which of the following is a method of searching an array

Linear search

Bubble sort

Bubble search

Merge search

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2D arrays can be referred to as a table, with rows and columns.

False

True

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly assigns a value to a 1D array in pseudocode

myArray[x] <-- 16

myArray[x,y] <-- 16

myArray x <-- 16

myArray[x] = 16

Access all questions and much more by creating a free account

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?