apcsa-1D array

apcsa-1D array

11th Grade

10 Qs

quiz-placeholder

Similar activities

BÀI KIỂM TRA 15P HK2 TIN HỌC 11

BÀI KIỂM TRA 15P HK2 TIN HỌC 11

11th Grade

10 Qs

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

PHẦN MỀM MSW LOGO

PHẦN MỀM MSW LOGO

9th - 12th Grade

10 Qs

Câu hỏi trắc nghiệm

Câu hỏi trắc nghiệm

11th Grade

10 Qs

La imagen digital

La imagen digital

11th - 12th Grade

10 Qs

PREGUNTAS BÁSICAS SOBRE CONOCIMIENTO INFORMÁTICO

PREGUNTAS BÁSICAS SOBRE CONOCIMIENTO INFORMÁTICO

1st Grade - Professional Development

10 Qs

Bài tập trắc nghiệm C++(tiếp)

Bài tập trắc nghiệm C++(tiếp)

3rd Grade - University

10 Qs

NHÓM HÀM CƠ SỞ DỮ LIỆU

NHÓM HÀM CƠ SỞ DỮ LIỆU

11th 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?