Search Header Logo

Module 8: Arrays

Authored by ROBERT JONAS SALAZAR TAN

Computers

University

Used 7+ times

Module 8: Arrays
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

It is basically, a variable that can store multiple values with the same data type.

List

Array

Object

Int

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Arrays best work with..

if else

while loop

do-while loop

for loop

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The correct syntax of declaring an array is?

dataType arrayName [arraySize];

dataType arrayName = [arraySize];

dataType arrayName [ ];

arrayName dataType [arraySize];

4.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

The correct syntax of assigning values upon declaration/ intitialization is?

dataType arrayName [arraySize] = { value1, value2, value3 };

dataType arrayName = [arraySize] { value1, value2, value3 };

dataType arrayName [ ] = { value1, value2, value3 };

arrayName dataType { value1, value2, value3 } [arraySize];

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In an array with a size of 10, what is the first index?

0

1

9

10

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Given the array

int list [ ] = { 1, 2, 3, 4 };

what is the value of list [ 0 ]

1

4

2

0

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In initializing or assigning values upon declaration in multi-dimensional array, arraySize is optional.

True

False

Cannot be determined.

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?