C Language Array Quiz

C Language Array Quiz

University

19 Qs

quiz-placeholder

Similar activities

Basic Excel

Basic Excel

University

15 Qs

YAY! Fridate with ComSSA (Network 101)

YAY! Fridate with ComSSA (Network 101)

University

20 Qs

Programación Básica Prácticas Tema 2

Programación Básica Prácticas Tema 2

University

19 Qs

Name The Disney Animation Films

Name The Disney Animation Films

KG - University

20 Qs

DBMS - Fundamentals

DBMS - Fundamentals

University

19 Qs

C++ Assesment 1

C++ Assesment 1

University

20 Qs

Bloque 3: Programación de dispositivos

Bloque 3: Programación de dispositivos

University

20 Qs

Control Structures  C#

Control Structures C#

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?