Array

Array

University

12 Qs

quiz-placeholder

Similar activities

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Let's Play Together

Let's Play Together

University - Professional Development

10 Qs

basic computer design

basic computer design

University

10 Qs

Application Development Midterm Quiz

Application Development Midterm Quiz

University

15 Qs

Python List

Python List

4th Grade - University

15 Qs

Machine Learning (Introduction)

Machine Learning (Introduction)

University

10 Qs

Array

Array

Assessment

Quiz

Computers

University

Practice Problem

Hard

Used 550+ 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

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

Already have an account?