DS - Chapter 3 - Arrays

DS - Chapter 3 - Arrays

University

31 Qs

quiz-placeholder

Similar activities

CC 214 Chapter 3 Quiz (2-A)

CC 214 Chapter 3 Quiz (2-A)

University

33 Qs

CodeChef (Secret Snippet)

CodeChef (Secret Snippet)

University

35 Qs

CODEZILLA 2022

CODEZILLA 2022

University

30 Qs

CS2110 Spring 24 Final Exam Prep

CS2110 Spring 24 Final Exam Prep

University

35 Qs

JavaScript List

JavaScript List

University

30 Qs

Collections

Collections

University - Professional Development

30 Qs

WebMania Quiz

WebMania Quiz

University

30 Qs

Pre assessment_Front end_Athani

Pre assessment_Front end_Athani

University

33 Qs

DS - Chapter 3 - Arrays

DS - Chapter 3 - Arrays

Assessment

Quiz

Computers

University

Medium

Created by

Cayden Henderson

Used 12+ times

FREE Resource

AI

Enhance your content

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?