C Arrays

C Arrays

University

36 Qs

quiz-placeholder

Similar activities

Web Dev MasterClass Day1

Web Dev MasterClass Day1

6th Grade - Professional Development

34 Qs

Pemrograman Web

Pemrograman Web

University

40 Qs

World Wide Web Brainstorming!

World Wide Web Brainstorming!

University

32 Qs

Pseudecode 2

Pseudecode 2

9th Grade - University

40 Qs

Repaso Arquitectura & Organización de Computadoras

Repaso Arquitectura & Organización de Computadoras

University

35 Qs

Arrays and Strings in C

Arrays and Strings in C

12th Grade - University

32 Qs

1er PARCIAL BD

1er PARCIAL BD

University

40 Qs

Data Mining

Data Mining

University

35 Qs

C Arrays

C Arrays

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

sandeep aggarwal

Used 31+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

36 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Arrays are structures that hold multiple variables of the _____________ data type

int data type

char data type

same data type

different data type

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The first element in the array is by default numbered (index)

_____

-1

0

1

anything by the programmer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Before using an array its type and dimension must be declared?

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int marks[30]; What the number 30 tells us

int data type size

number of elements in marks array

maximum value, that can stored in marks

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is correct syntax for accessing value of 2nd element of an array

int value = marks[1];

int value = marks[2];

int value = marks(1);

int value = marks(2)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is correct syntax for entering 30 at 10th position of an array?

marks[10]=30

marks[9]=29

marks[9]=30

marks[10]=29

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Predict output of following program

int main(){

int i;

int arr[5] = {1};

for (i = 0; i < 5; i++)

printf("%d ", arr[i]);

return 0;

}

1 1 1 1 1

1 followed by 4 junk values

1 0 0 0 0

Compiler error

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?