CS Arrays

CS Arrays

9th - 12th Grade

34 Qs

quiz-placeholder

Similar activities

Localisation et cartographie (2° SNT)

Localisation et cartographie (2° SNT)

9th Grade - University

34 Qs

GIỮA KỲ 2 -  TIN 8

GIỮA KỲ 2 - TIN 8

8th Grade - University

36 Qs

HOJAS DE CÁLCULO SPS (2)

HOJAS DE CÁLCULO SPS (2)

11th Grade

36 Qs

LO1 iMedia

LO1 iMedia

7th - 10th Grade

31 Qs

Kuis Aplikasi Kamus Digital

Kuis Aplikasi Kamus Digital

8th Grade - University

35 Qs

Soal Latihan

Soal Latihan

11th Grade

30 Qs

Chapter 11 Review

Chapter 11 Review

7th - 12th Grade

30 Qs

Quiz về Kinh tế tri thức

Quiz về Kinh tế tri thức

10th Grade - University

38 Qs

CS Arrays

CS Arrays

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

AI

Enhance your content in a minute

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

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which index is the last element in an array called nums at?

nums.length

nums.length - 1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following declarations will cause a compile time error?

int[] scores = null;

int[] scoreArray = {50,90,85};

String[] nameArray = new String[10];

String[] nameArray = {5, 3, 2};

int[] scores = new int[5];

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is returned from arr[3] if arr={6, 3, 1, 2}?

1

2

3

6

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is returned from mystery when it is passed {10, 30, 30, 60}?

17.5

30.0

130

32

32.5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Given the following values of a and the method doubleLast what will the values of a be after you execute: doubleLast()?

{-20, -10, 2, 8, 16, 60}

{-20, -10, 2, 4, 8, 30}

{-10, -5, 1, 8, 16, 60}

{-10, -5, 1, 4, 8, 30}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following statements is a valid conclusion. Assume that variable b is an array of k integers and that the following is true:

The value in b[0] does not occur anywhere else in the array

Array b is sorted

Array b is not sorted

Array b contains no duplicates

The value in b[0] is the smallest value in the array

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following code segment. Which of the following statements best describes the condition when it returns true?

whenever the first element in a is equal to val

Whenever a contains any element which equals val

Whenever the last element in a is equal to val

Whenever more than 1 element in a is equal to val

Whenever exactly 1 element in a is equal to val

Access all questions and much more by creating a free account

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?