DS - Chapter 3 - Arrays

DS - Chapter 3 - Arrays

University

31 Qs

quiz-placeholder

Similar activities

CS 211 - Midterm Review

CS 211 - Midterm Review

University

30 Qs

Python Mock

Python Mock

University

30 Qs

Kuis 2

Kuis 2

University

35 Qs

Pemrograman Web Lanjut

Pemrograman Web Lanjut

University

30 Qs

REV 4- Antenna Systems Part 2

REV 4- Antenna Systems Part 2

University

28 Qs

arrays js

arrays js

University

27 Qs

Q3 CH3

Q3 CH3

University

30 Qs

Code Twisters Round One Batch -1

Code Twisters Round One Batch -1

University

30 Qs

DS - Chapter 3 - Arrays

DS - Chapter 3 - Arrays

Assessment

Quiz

Computers

University

Medium

Created by

Cayden Henderson

Used 12+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?