Search Header Logo

Day 6 C Programming Quiz

Authored by Phantom Techlogics

Computers

Professional Development

Used 1+ times

Day 6 C Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the Types of Arrays.?

One dimensional

Two dimensional

Three dimensional

All the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

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

int b[4] = {5,6,7,8};

printf("%d,%d", a[0], b[0]);

}

What is the output of the above C Program.?

Compiler error

0,0

2,6

1,5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not possible statically in C?

Multidimensional Array

Cuboidal Array

Jagged Array

Rectangular Array

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An array elements are always stored in __________ memory locations.

Random

Sequential

Sequential and Random

None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array can be considered as set of elements stored in consecutive memory locations but having __________.

Same data type

Different data type

Same scope

None of these

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array is an example of _______ type memory allocation

Run time

Compile-time

Both A and B

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly accesses the fifth element stored in foo, an array with 100 elements?

foo(5);

foo[5];

foo[4];

foo;

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?