apcsa-1D array

apcsa-1D array

11th Grade

10 Qs

quiz-placeholder

Similar activities

Testas: Saugesnis internetas

Testas: Saugesnis internetas

11th Grade

10 Qs

Calidad y Atributos del Servicio

Calidad y Atributos del Servicio

9th - 12th Grade

12 Qs

Sistema Binario

Sistema Binario

1st Grade - University

10 Qs

HTML Quiz

HTML Quiz

11th Grade - University

15 Qs

Hệ Điều Hành Của Máy Tính

Hệ Điều Hành Của Máy Tính

10th Grade - University

10 Qs

paquetes contables  lección 1

paquetes contables lección 1

11th Grade - Professional Development

10 Qs

examen final normas APA

examen final normas APA

11th Grade

10 Qs

la historia de la computadora

la historia de la computadora

1st - 12th Grade

10 Qs

apcsa-1D array

apcsa-1D array

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

lin fu

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider the following code segment. int[] arr = {1, 2, 3, 4, 5};

Which of the following code segments would correctly set the first two elements of array arr to 10 so that the new value of array arr will be {10, 10, 3, 4, 5} ?

arr[0] = 10;

arr[1] = 10;

arr[1] = 10;

arr[2] = 10;

arr[0, 1] = 10;

arr[1, 2] = 10;

arr = 10, 10, 3, 4, 5;

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

I only

II only

III only

I and II

I and III

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

{10, 20, 30, 70, 120}

{10, 20, 50, 90, 50}

{10, 20, 50, 90, 140}

{10, 30, 60, 100, 50}

{10, 30, 60, 100, 150}

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

2

1

0

-4

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

I only

II only

I and II

I and III

I and II and III

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

In the for loop header, the initial value of j should be 0.

In the for loop header, the initial value of j should be 2.

The for loop condition should be j < fibs.length - 1.

The for loop condition should be j < fibs.length + 1.

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

for (int y = 0; y <= arr.length; y++)

for (int y = 0; y < arr.length; y++)

for (int y = x; y < arr.length; y++)

for (int y = x + 1; y < arr.length; y++)

for (int y = x + 1; y <= arr.length; y++)

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?