Arrays += Chan

Arrays += Chan

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Bài 7 Tin học 10

Bài 7 Tin học 10

10th Grade

10 Qs

Python

Python

8th - 9th Grade

15 Qs

SHORTCUT PADA KEYBOARD

SHORTCUT PADA KEYBOARD

10th - 12th Grade

10 Qs

# REVIEW 1 DATA TYPES

# REVIEW 1 DATA TYPES

10th Grade

15 Qs

Basic Parts of Speech EPS

Basic Parts of Speech EPS

9th - 10th Grade

10 Qs

Quiz 1

Quiz 1

1st - 12th Grade

15 Qs

Basics of spreadsheet

Basics of spreadsheet

12th Grade

15 Qs

Chapter 7: System life cycle

Chapter 7: System life cycle

9th - 11th Grade

15 Qs

Arrays += Chan

Arrays += Chan

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Raymond Chan

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

15 mins • 1 pt

Media Image

Given the following code segment what will be returned when you execute: getIndexOfLastElementSmallerThanTarget(values,-13);

A. -1

B. -15

C. 1

D. You will get an out of bounds error.

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

Given the following code segment what would be the elements of a when you execute: doubleLast();

A. {-40, -30, 4, 16, 32, 66}

B. {-40, -30, 4, 8, 16, 32}

C. {-20, -15, 2, 16, 32, 66}

D. {-20, -15, 2, 8, 16, 33}

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

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

A. 17.5

B. 30.0

C. 130

D. 32

E. 32.5

4.

FILL IN THE BLANK QUESTION

15 mins • 1 pt

Media Image

What is the output of the code segment?

5.

MULTIPLE SELECT QUESTION

15 mins • 1 pt

Media Image

Select all missing code that works.

int i = ans.length; i >= 0; i--

int i = ans.length-1; i >= 0; i--

int i = ans.length-1; i > 0; i--

int i = 0; i < ans.length; i++

int i = 0; i <= ans.length; i++

6.

MULTIPLE SELECT QUESTION

15 mins • 1 pt

Given an array of length 5, what are the indexes of the middle three elements?

4

2

1

0

3

7.

MULTIPLE SELECT QUESTION

15 mins • 1 pt

Given an array of length 3, called arr, what is the middle element?

arr[1]

2

1

arr[2]

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?