Search Header Logo

Mastering Pointers and Functions

Authored by Karen Tan

Information Technology (IT)

12th Grade

Used 5+ times

Mastering Pointers and Functions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is the array declaration valid?
int arr[5];

Valid

Invalid

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is the following array declaration valid?
float arr[10];

Valid

Invalid

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is this array declaration correct?
char arr[] = {'a', 'b', 'c'};

Invalid

Valid

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is the following declaration valid?
double arr[5][3];

Valid

Invalid

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is the following declaration valid?
int arr[3][4][2];

Invalid

Valid

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is this array declaration correct?
double arr[10];

Valid

Invalid

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is the following array declaration valid?
float arr[] = {1.0, 2.0, 3.0};

Valid

Invalid

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?