Array

Array

University

12 Qs

quiz-placeholder

Similar activities

ADVACOMT-Quiz No.1 (final term)

ADVACOMT-Quiz No.1 (final term)

University

15 Qs

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

ITS462 - Propositional logic/calculus

ITS462 - Propositional logic/calculus

University

16 Qs

WN-CELLULAR CONCEPT

WN-CELLULAR CONCEPT

University

10 Qs

KSK2023 ulangkaji v1.1 (1-6)

KSK2023 ulangkaji v1.1 (1-6)

KG - University

15 Qs

Taller de desarrollo de SW

Taller de desarrollo de SW

University

10 Qs

Soal SKD

Soal SKD

University - Professional Development

10 Qs

Porcentajes

Porcentajes

University

12 Qs

Array

Array

Assessment

Quiz

Computers

University

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?