Ben's Flashcard

Ben's Flashcard

Assessment

Flashcard

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What does this code snippet do?

Media Image

Back

Fill the array with zeros

2.

FLASHCARD QUESTION

Front

How would I access the 3rd element in the 4th row of an array? Options: arrName[4][3], arrName[3][2], arrName[2][3], arrName[3][4]

Back

arrName[3][2]

3.

FLASHCARD QUESTION

Front

How would I declare an array of 11 rows and 13 columns? Options: int arrName[11][13], int arrName[13][11], int arrName[12][10], int arrName[10][12]

Back

int arrName[11][13]

4.

FLASHCARD QUESTION

Front

When you pass a two-dimensional array to a function, which dimension(s) does the compiler make sure that you pass?

Back

The 2nd dimension

5.

FLASHCARD QUESTION

Front

What type is returned when indexing a two dimensional array declared as int my2DArr[3][4] with my2DArr[0]?

Back

A pointer to an array

6.

FLASHCARD QUESTION

Front

I pass a 2D array to a function and modify it inside the function. When I return from the function I print the values. Are the values printed the modified ones or the original ones?

Back

The modified ones

7.

FLASHCARD QUESTION

Front

I pass an integer to a function and modify it inside the function. When I return from the function I print the integer. Is the integer printed the modified one or the original one?

Back

The original one

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?