Arrays

Arrays

University

10 Qs

quiz-placeholder

Similar activities

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

HTML DOJO 1

HTML DOJO 1

University

10 Qs

GPS

GPS

9th Grade - University

15 Qs

Linkedlist

Linkedlist

University

10 Qs

conversiones de bases

conversiones de bases

University

10 Qs

Preguntas de repaso

Preguntas de repaso

University

10 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

Semiconductores

Semiconductores

University

10 Qs

Arrays

Arrays

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Aruna Devi

Used 46+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int j[4] the sizeof(j) and sizeof(int )

will display the value

8,2

2,8

2,2

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct statement to declare an

array?

int x[];

int x[5];

int x{5};

3.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Find the output

void main()

{

int i,marks[5]={55,56,67,78,64};

clrscr();

for(i=2;i<=4;i++)

printf(“\n %d”,marks[i]);

getche();

}

4.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Find the output

void main()

{

char name []={’a’,’m’,’i’,’t’};

int i;

clrscr();

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

printf(“%c”,name[i]);

getche();

}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose a correct statement about C language arrays.

An array address is the address of first element of array itself.

An array size must be declared if not initialized immediately.

Array size is the sum of sizes of all elements of the array.

All the above

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

find the output

void main()

{

int a1[5]={1};

int b=0,k=0;

clrscr();

for(b=0;b<=4;b++)

{

printf(“%3d”,++a1[0]);

}

}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of C program.?

int main()

{

float marks[3] = {90.5, 92.5, 96.5};

int a=0;

while(a<3)

{ printf("%.2f,", marks[a]); a++; } }

90.5 92.5 96.5

90.50 92.50 96.50

0.00 0.00 0.00

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?