Unit-2: Assignment 2

Unit-2: Assignment 2

University

15 Qs

quiz-placeholder

Similar activities

JAVA QUIZ-1

JAVA QUIZ-1

University

10 Qs

Arrays

Arrays

KG - University

10 Qs

Array in C

Array in C

University

10 Qs

Arrays

Arrays

University

20 Qs

Arrays and pointers quiz

Arrays and pointers quiz

University

20 Qs

Arrays

Arrays

11th Grade - University

10 Qs

Coding Titans

Coding Titans

University

17 Qs

Array

Array

11th Grade - University

10 Qs

Unit-2: Assignment 2

Unit-2: Assignment 2

Assessment

Quiz

Computers

University

Medium

Created by

Umadevi N

Used 6+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an Array in C language.?

A group of elements of same data type.

An array contains more than one element

Array elements are stored in memory in continuous or contiguous locations.

All the above.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the Types of Arrays.?

int, long, float, double

struct, enum

char

All the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An array Index starts with.?

-1


B)


C)


D)

0

1

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of an array element which is not initialized.?

By default Zero 0

1

Depends on Storage Class

None of the above.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly declares an array?

int anarray[10];

int anarray;

anarray{10};

array anarray[10];

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index number of the last element of an array with 29 elements?

29

28

0

Programmer-defined

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a two-dimensional array?

array anarray[20][20];

int anarray[20][20];

int array[20, 20];

char array[20];

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?