C Language Array Quiz

C Language Array Quiz

University

19 Qs

quiz-placeholder

Similar activities

quiz pertemuan 2 asik ddp

quiz pertemuan 2 asik ddp

University

15 Qs

Excel Quiz

Excel Quiz

KG - University

15 Qs

QUIZ 2

QUIZ 2

University

20 Qs

DSA5541 Quiz 1 TRI 2210

DSA5541 Quiz 1 TRI 2210

University

20 Qs

ĐC CNTT_Chương 1

ĐC CNTT_Chương 1

University

20 Qs

C Programming Unit-1 Test-2

C Programming Unit-1 Test-2

University

20 Qs

Đề ôn tập cuối HKI lớp 5

Đề ôn tập cuối HKI lớp 5

6th Grade - University

17 Qs

Java Quiz 1

Java Quiz 1

University

20 Qs

C Language Array Quiz

C Language Array Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Fidel Romasanta

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

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

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is right way to Initialize array?

int num[6] = { 2, 4, 12, 5, 45, 5 };

int n{} = { 2, 4, 12, 5, 45, 5 };

int n{6} = { 2, 4, 12 };

int n(6) = { 2, 4, 12, 5, 45, 5 };

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An array elements are always stored in ________ memory locations.

sequential

Random

Sequential and Random

None of the above

3.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is the result of the code below?

int a[]={11,13,56,20,5};

printf("%d",a[2]);

garbage value

13

56

20

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

How to accesses the seventh element in array "myArr" with 100 elements?

myArr[6]

myArr[7]

myArr{6}

myArr{7}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An array Index starts with _____.

-1

0

1

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the minimum and maximum Indexes of array "int myArr[9];"

-1, 8

0, 8

1,9

None of the above

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is the output of this code fragment?

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

printf("%d", a[1][1]);

1

Error

2

0

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?

Discover more resources for Computers