Arrays Intro

Arrays Intro

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Arrays and Algorithms

Arrays and Algorithms

10th - 12th Grade

15 Qs

Area With Arrays

Area With Arrays

10th - 12th Grade

15 Qs

Area and Arrays

Area and Arrays

10th - 12th Grade

15 Qs

Single Array

Single Array

10th - 12th Grade

15 Qs

Arrays += Chan

Arrays += Chan

9th - 12th Grade

12 Qs

C# Arrays

C# Arrays

9th - 12th Grade

12 Qs

Массивы C++

Массивы C++

10th - 11th Grade

12 Qs

2D Arrays in C++

2D Arrays in C++

6th - 9th Grade

10 Qs

Arrays Intro

Arrays Intro

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

DVHSAPCS undefined

Used 85+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which declaration creates an array that holds 5 ints?
int[5] hand = new int[5];
int[5] hand = new int[];
int[] hand = new int[5];
int hand = new int[5];

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For the array:
double[] stats = new double[3];
What is the range of the index?
0 to 3
0 to 2
1 to 3
0 to 4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

//Which array will win?
string status = "Win";  
if(player[3] == 4)          
  status = "lose";
if(player[1] == 3)            
  status = "lose";
if(player[2] == 2)            
  status = "lose";
{0,1,2,3}
{1,3,2,4}
{3,2,1,4}
{3,2,4,5}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

//Which array will lose?
string status = "Win";
if(player[3] == 4)          
  status = "lose";
if(player[1] == 3)          
  status = "lose";
if(player[2] == 2)          
  status = "lose";
{3,2,4,1}
{1,2,3,4}
{1,2,4,3}
{3,4,1,2}

5.

MULTIPLE CHOICE QUESTION

30 sec • 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

for(int i=0;i<10;i++)

deck[2*i] = 5;

// Which statement will not print out 5?

Console.WriteLine(deck[18]);

Console.WriteLine(deck[0]);

Console.WriteLine(deck[10]);

Console.WriteLine(deck[20]);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for(int i = 1; i<=100; i++)

numbers[i-1] = i/10;

//At what index will the first 2 occur?

1

2

19

20

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?