C Language Array Quiz

C Language Array Quiz

University

19 Qs

quiz-placeholder

Similar activities

Relational Algebra and Calculus

Relational Algebra and Calculus

University

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Quiz Microprogramming

Quiz Microprogramming

University

15 Qs

Redes Vlan

Redes Vlan

University

15 Qs

Ulangan Harian 1 Smstr 2 TIK

Ulangan Harian 1 Smstr 2 TIK

University

18 Qs

IGH Test de Entrada

IGH Test de Entrada

University

20 Qs

Kiến thức về Thuật toán và Chương trình

Kiến thức về Thuật toán và Chương trình

8th Grade - 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?