TOTAL QS = 20Time [ 00 : 00 : 00 ]
00:00:00

C Programming Basics Tutorial - Arrays, Multidimensional Arrays and Pointers - Online Test 3

Instructions

Total Questions: 20

Total Minutes: 20

This ExamTray Free Online Exam or MCQ Quiz tests your C Programming Skills on C Arrays, Multidimensional Arrays and Pointers to Arrays. Examples are given as questions and answers. Easily Attend Competitive Exams and Job Interview Questions.

Go through C Theory Notes on Arrays before attempting this test.

All the Best

Challenge SCORE

0 / 20

Take This Exam
1) What is the dimension of the C array int ary[10][5].?
2) What is the dimension of the below C Array.?
int ary[]={1,3,5,7};
3) Choose a correct statement with array pointers.
4) Choose correct statement about C array pointers.
5) What is the output of C Program with arrays.?
int main()
{
    int ary[] = {1, 3, 5};
    printf("%d %d", ary[-1], ary[4]);
    return 0;
}
6) What is the output of C Program with arrays.?
int main()
{
    static int ary[] = {1, 3, 5};
    printf("%d %d", ary[-1], ary[5]);
    return 0;
}
7) What is the output of C Program with arrays and pointers.?
int main()
{
    int ary[] = {11, 33, 55};
    int *p, *q;
    p = ary;
    q = ary+2;
    printf("%d %d",*p, *q);
    return 0;
}
8) Difference between C Arrays, ary[10] and cry[10][10] is.?
9) Array of Arrays is also called.?
10) What is the output of C program with multidimensional array.?
int main()
{
    int ary[3][2] = {1,2,3,4,5,6};
    printf("%d %d", ary[0][0], ary[2][1]);
    return 0;
}
11) What is the output of C program with multidimensional arrays.?
int main()
{
    int ary[3][] = {6,5,4,3,2,1};
    printf("%d %d", ary[0][0], ary[2][1]);
    return 0;
}
12) What is the output of C program with multidimensional arrays.?
int main()
{
    int ary[][3] = {6,5,4,3,2,1};
    printf("%d %d", ary[0][0], ary[1][0]);
    return 0;
}
13) Choose an alternative definition of C Multidimensional array.?
int ary[][3] = {6,5,4,3,2,1};
14) What is the output of C Program with arrays.?
int main()
{
    int ary[][2][3] = {
        {{1,2,3},{4,5,6}},
        {{7,8,9},{10,11,12}}
    };
    printf("%d %d", ary[0][0][0], ary[1][1][1]);
    return 0;
}
15) Choose a correct statement about a C Multidimensional array.
16) What is the output of C Program.?
int main()
{
    int ary[2][2][3] = {
        {{1,2,3},{4,5,6}},
        {{7,8,9},{10,11,12}}
    };
    int *p;
    p = &ary;
    printf("%d %d",*p, *p+11);
    return 0;
}
17) What is the output of C Program.?
int main()
{
    int ary[2][2][3] = {
        {{1,2,3},{4,5,6}},
        {{7,8,9},{10,11,12}}
    };
    printf("%d",*(*(*(ary+1)+ 1)+2));
    return 0;
}
18) Choose a correct C Statement to choose number 66 in the array, int ary[3][2] = {{11,22},{33,44},{55,66}};
19) A multidimensional array of dimension N is a collection of.?
20) Choose a correct statement about a Multidimensional array and pointer.?
Certification Group ID
3858

Open Certification Helper Popup Reset Popup