Search Header Logo

DS - Chapter 3 - Arrays

Authored by Cayden Henderson

Computers

University

Used 12+ times

DS - Chapter 3 - Arrays
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an array is declared as arr[] = {1,3,5,7,9}; then what is the value of sizeof(arr[3])?

1

2

3

8

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an array is declared as arr[] = {1,3,5,7,9}; then what is the value of arr[3]?

1

7

9

5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an array is declared as double arr[50]; how many bytes will be allocated to it?

50

100

200

400

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an array is declared as int arr[50], how many elements can it hold?

49

50

51

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an array is declared as int arr[5][5], how many elements can it store?

5

25

10

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given an integer array arr[]; the ith element can be accessed by writing

*(arr+i)

*(i+arr)

arr[i]

All of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An array is used to refer multiple memory locations having the same name.

True

False

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?