Array

Array

University

12 Qs

quiz-placeholder

Similar activities

AI Exam

AI Exam

University

17 Qs

GIS Unit III

GIS Unit III

University

15 Qs

ロジックテスト (Đề kiểm tra năng lực IT)

ロジックテスト (Đề kiểm tra năng lực IT)

University

12 Qs

SQLite - Writing Queries

SQLite - Writing Queries

University

9 Qs

AB1401 Case Study: Facebook

AB1401 Case Study: Facebook

University

12 Qs

Cloud Computing - Introducción

Cloud Computing - Introducción

University

12 Qs

Post Test #4 - Python Fundamental #3

Post Test #4 - Python Fundamental #3

University

10 Qs

C Wrapup Quiz Deutsch

C Wrapup Quiz Deutsch

University

12 Qs

Array

Array

Assessment

Quiz

Computers

University

Practice Problem

Hard

Used 552+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

_________________ is a collection of elements used to store the same type of data.

Array
Switch
Case
Loop

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is returned by values[5]?

9
12
6
8

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For the array:
float stats[3];
What is the range of the index?

0 to 3
0 to 2
1 to 3
0 to 4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int nums[ ] =
{2, 3, 5, 8, 9, 11};
How would you access the fourth element in nums

nums[4]
nums[3]
nums(4)
nums(3)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

for(int i=0; i<10; i++)
           numbers[i] = 2 * i + 1;
// Which index of the array holds the value of 5?

1
2
3
4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the error in the following code fragment?
float average [20];
average[20] = 15.25;

A cast is required
data not initialized
A two-dimensional array is required
Array Out-of-bounds error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

________________________ are used to create a multi dimensional array.

Single round brackets
Single square brackets
Multiple squares brackets
Single angled brackets

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

Already have an account?