Spring Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

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

Questions 4

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

#include < stdio.h >

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

char i = 20 + 020 + 0x20;

printf("%d",i);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 68

B.

The program outputs 60

C.

Compilation fails

D.

The program outputs 86

E.

The program outputs 62

Buy Now
Questions 5

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

#include < stdio.h >

int *fun(int *t) {

return t + 4;

}

int main (void) {

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

int *ptr;

ptr = fun (arr - 3);

printf("%d \n", ptr[2]);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 2

B.

The program outputs 4

C.

The program outputs 5

D.

The program outputs 1

E.

The program outputs 3

Buy Now
Questions 6

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

#include < stdio.h >

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

float f = 1e1 + 2e0 + 3e-1;

printf("%f ",f);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 1230.0000

B.

Compilation fails

C.

The program outputs 12300.000

D.

The program outputs 12.300000

E.

The program outputs 123.00000

Buy Now
Questions 7

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

#include < stdio.h >

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

int i = 0;

printf ("%s", argv[i]);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs an unpredictable string, or execution fails

B.

The program outputs a predictable non-empty string

C.

Execution fails

D.

The program outputs an empty string

E.

Compilation fails

Buy Now
Questions 8

What is the meaning of the following declaration?

float ** p;

Choose the right answer:

Options:

A.

p is a float pointer to a float

B.

The declaration is erroneous

C.

p is a pointer to a float pointer

D.

p is a pointer to a pointer to a float

E.

p is a pointer to a float

Buy Now
Questions 9

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

#include < stdio.h >

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?

#include < stdio.h >

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

int main, Main, mAIN = 1;

Main = main = mAIN += 1;

printf ("%d", MaIn) ;

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 1

B.

The program outputs 3

C.

Compilation fails

D.

The program outputs 2

E.

The program outputs an unpredictable value

Buy Now
Questions 11

Assume that ints are 32-bit wide.

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

#include < stdio.h >

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 12

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

#include < stdio.h >

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

int i = 1, j = 0;

int 1 = !i + !! j;

printf("%d", 1);

return 0;

}

Choose the right answer:

Options:

A.

Compilation fails

B.

The program outputs 2

C.

The program outputs 3

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: May 18, 2026
Questions: 40

PDF + Testing Engine

$64.99  $185.69

Testing Engine

$49.99  $142.83
buy now CLA-11-03 testing engine

PDF (Q&A)

$54.99  $157.11
buy now CLA-11-03 pdf