Weekend Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: best70

CLA-11-03 CLA - C Certified Associate Programmer Questions and Answers

Questions 4

Select the proper form for the following declaration:

p is a pointer to an array containing 10 int values

Choose the right answer:

Options:

A.

int * (p) [10];

B.

int (*p) [10];

C.

The declaration is invalid and cannot be coded in C

D.

int (*)p[10];

E.

int *p[10];

Buy Now
Questions 5

What happens if you try to compile and run this program?

#include

int main(int argc, char *argv[]) {

int i = 10 - 2 / 5 * 10 / 2 - 1;

printf("%d",i);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 0

B.

The program outputs 4

C.

Compilation fails

D.

The program outputs 9

E.

The program outputs 15

Buy Now
Questions 6

Assume that ints are 32-bit wide.

What happens if you try to compile and run this program?

#include

typedef struct

int i;

int j;

int k;

} str;

int main (int argc, char *argv[]) {

str s = { 7, 7, 7 };

printf ("%d", sizeof (s.s));

return 0;

}

Choose the right answer:

Options:

A.

Execution fails

B.

The program outputs 16

C.

Compilation fails

D.

The program outputs 12

E.

The program outputs 4

Buy Now
Questions 7

What happens if you try to compile and run this program?

#include

#include

void fun (void) {

return 3.1415;

}

int main (int argc, char *argv[]) {

int i = fun(3.1415);

printf("%d",i);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 3

B.

The program outputs 3.1415

C.

The program outputs 4

D.

Execution fails

E.

Compilation fails

Buy Now
Questions 8

What happens if you try to compile and run this program?

#include

int main (int argc, char *argv[]) {

int i = 1;

for(;i > 128;i *= 2);

printf("%d", i) ;

return 0;

}

-

Choose the right answer:

Options:

A.

The program enters an infinite loop

B.

Compilation fails

C.

The program outputs a value less than 128

D.

The program outputs 128

E.

The program outputs a value greater than 128

Buy Now
Questions 9

What happens if you try to compile and run this program?

#include

int fun(int i) {

return i++;

}

int main (void) {

int i = 1;

i = fun(i);

printf("%d",i);

return 0;

}

Choose the correct answer:

Options:

A.

The program outputs 2

B.

Compilation fails

C.

The program outputs 0

D.

The program outputs 1

E.

The program outputs an unpredictable value

Buy Now
Questions 10

What happens if you try to compile and run this program?

enum { A, B, C, D, E, F };

#include

int main (int argc, char *argv[]) {

printf ("%d", B + D + F);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 10

B.

The program outputs 7

C.

The program outputs 8

D.

Compilation fails

E.

The progham outputs 9

Buy Now
Questions 11

What happens if you try to compile and run this program?

#include

#include

struct STR {

int i;

char c[20];

float f;

};

int main (int argc, char *argv[]) {

struct STR str = { 1, "Hello", 3 };

printf("%d", str.i + strlen(str.c));

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 4

B.

The program outputs 1

C.

The program outputs 5

D.

The program outputs 6

E.

Compilation fails

Buy Now
Questions 12

What happens if you try to compile and run this program?

#include

int main (int argc, char *argv[]) {

int i = 7 || 0 ;

printf("%d", !! i);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs -1

B.

The program outputs 7

C.

Compilation fails

D.

The program outputs 1

E.

The program outputs 0

Buy Now
Exam Code: CLA-11-03
Exam Name: CLA - C Certified Associate Programmer
Last Update: Sep 13, 2025
Questions: 40

PDF + Testing Engine

$134.99

Testing Engine

$99.99

PDF (Q&A)

$84.99