C Arrays Quiz

C Arrays Quiz

Professional Development

12 Qs

quiz-placeholder

Similar activities

AD_Java Basics

AD_Java Basics

Professional Development

14 Qs

Day 1 contents

Day 1 contents

Professional Development

10 Qs

Quiz Modul 2

Quiz Modul 2

Professional Development

15 Qs

Advance Python

Advance Python

KG - Professional Development

10 Qs

Quiz sobre o Animômetro

Quiz sobre o Animômetro

Professional Development

13 Qs

Datatypes and Flowcontrol

Datatypes and Flowcontrol

Professional Development

15 Qs

Java Basics

Java Basics

Professional Development

17 Qs

PreTrainingScannerLoops

PreTrainingScannerLoops

Professional Development

10 Qs

C Arrays Quiz

C Arrays Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

T.NAGALAKSHMI Dept

Used 2+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is an array with 5 integers declared in C?

int a(5);

int a[5];

int[5] a;

array a[5];

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first element in an array?

0

1

First

Start

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To access the third element of an array named 'arr', you would use:

arr[2]

arr[3]

arr(2)

arr(3)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the size in bytes of an array int arr[20]; if an integer requires 4 bytes of memory?

40

80

20

5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid declaration for a 2D array?

int a[][] = {{1,2}, {3,4}};

int a[2,2] = {{1,2}, {3,4}};

int a[2][2] = {{1,2}, {3,4}};

array a[2][2] = {{1,2}, {3,4}};

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare a 3D array?

int a[][][] = {{{1},{2},{3}},{{4},{5},{6}}};

int a[3][3][3];

int[3][3][3] a;

Both A and B

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In an array declaration int arr[5] = {1, 2, 3};, what will be the value of arr[3]?

1

2

3

0

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?