AP CS A- Recursion and 2D Arrays

AP CS A- Recursion and 2D Arrays

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

Grade 11 Term 4 Practice 2

Grade 11 Term 4 Practice 2

11th Grade

10 Qs

Los periféricos del computador

Los periféricos del computador

1st Grade - Professional Development

9 Qs

Logos - Digital Images

Logos - Digital Images

2nd - 10th Grade

10 Qs

Database Concepts

Database Concepts

11th - 12th Grade

15 Qs

Administrasi Sistem Jaringan

Administrasi Sistem Jaringan

1st - 10th Grade

10 Qs

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

11th - 12th Grade

10 Qs

AP CS A- Recursion and 2D Arrays

AP CS A- Recursion and 2D Arrays

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Diya Krishnan

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

2 mins • 1 pt

Media Image

What is the value returned by the call what(A,5) where A has been initialized by the statement


int[] A = {1,2,1,1,2}

1

2

3

4

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the value returned by the call what(123)?

1

2

3

0

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

1 1 1 1 1

1 1 1 1 1

1 1 1 1 1

1 1 1 1 1

1 1 1 1 1

-1 1 1 1 1

1 -1 1 1 1

1 1 -1 1 1

1 1 1 -1 1

1 1 1 1 -1

-1 -1 -1 -1 -1

-1 -1 -1 -1 -1

-1 -1 -1 -1 -1

-1 -1 -1 -1 -1

-1 -1 -1 -1 -1

-1 1 -1 1 -1

1 -1 1 -1 1

-1 1 -1 1 -1

1 -1 1 -1 1

-1 1 -1 1 -1

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which of the following represents the contents of grid after the segment is executed?

1 2

3 4

5 6

7 8

1 2 3 4

5 6 7 8

1 3 5 7

2 4 6 8

1 5

2 6

3 7

4 8

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the value returned by the call what (“ay caramba”)”

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which of the following represents grid?

A B C

D E F

G H I

A A A

A A A

A A A

A D G

B E H

C F I

C C C

F F F

I I I

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What i the value returned by the call

repl(“All of the above”)?

“All of the above”

“All+of+the+above”

“Alloftheabove”

“All”

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?