Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dcdisc65

Page: 1 / 2
Total 12 questions
Exam Code: CLA-11-03                Update: Oct 15, 2025
Exam Name: CLA - C Certified Associate Programmer

C++ Institute CLA - C Certified Associate Programmer CLA-11-03 Exam Dumps: Updated Questions & Answers (October 2025)

Question # 1

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

#include

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

char *p = "World";

int i = 2;

switch (p[i]) {

case 'W' :i++; break ;

case 'o' :i += 2; break ;

case 'r' :i += 3; break ;

case '1' :i += 4; break ;

case 'd' :i += 5; break ;

default :i += 4;

}

printf("%d", i);

return 0;

}

-

Choose the right answer:

A.

Compilation fails

B.

The program outputs 5

C.

The program outputs 6

D.

The program outputs 3

E.

The program outputs 4

Question # 2

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:

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

Question # 3

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

#include

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

char *t = "abcdefgh";

char *p = t + 2;

int i;

p++;

p++;

printf("%d ", p[2] - p[-1]);

return 0;

}

Choose the right answer:

A.

The program outputs 3

B.

The program outputs 4

C.

Execution fails

D.

The program outputs 2

E.

Compilation fails

Question # 4

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

#include

int f1(int n) {

return n = n * n;

}

int f2(int n) {

return n = f1(n) * f1(n);

}

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

printf ("%d \n", f2(1));

return 0;

}

-

Select the correct answer:

A.

The program outputs 8

B.

The program outputs 2

C.

Execution fails

D.

The program outputs 4

E.

The program outputs 1

Question # 5

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

#include

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

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

printf("%f ",f);

return 0;

}

Choose the right answer:

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

Question # 6

Assume that we can open a file called "file1".

What happens when you try to compile and run the following program?

#include

int main (void) {

FILE *f;

int i;

f = fopen("file1","wb");

fputs("545454",f);

fclose (f);

f = fopen("file1","rt");

fscanf(f,"%d ", &i);

fclose (f) ;

printf("%d",i);

return 0;

}

Choose the right answer:

A.

The program outputs 545454

B.

Execution fails

C.

The program outputs 54

D.

The program outputs 0

E.

Compilation fails

Question # 7

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:

A.

The program outputs 10

B.

The program outputs 7

C.

The program outputs 8

D.

Compilation fails

E.

The progham outputs 9

Question # 8

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

#define ALPHA 0

#define BETA ALPHA-1

#define GAMMA 1

#define dELTA ALPHA-BETA-GAMMA

#include

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

printf ("%d", DELTA);

return 0;

Choose the right answer:

A.

The program outputs 2

B.

The program outputs -2

C.

The program outputs 1

D.

Compilation fails

E.

The program outputs -1

Question # 9

What is the meaning of the following declaration?

float ** p;

Choose the right answer:

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

Question # 10

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

#include

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

int i = 'A' - 'B';

int j = 'b' - 'a';

printf("%d",i / j);

return 0;

}

Choose the right answer:

A.

Execution fails

B.

Compilation fails

C.

The program outputs 1

D.

The program outputs -1

E.

The program outputs 0

Page: 1 / 2
Total 12 questions

Most Popular Certification Exams

Payment

       

Contact us

dumpscollection live chat

Site Secure

mcafee secure

TESTED 16 Oct 2025