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

Free C++ Institute CLA-11-03 Practice Exam with Questions & Answers

Questions 1

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

#include

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

C++ Institute CLA-11-03 Premium Access
Questions 2

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

#include

#include <string.h>

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

Questions 3

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

#include

#include <string.h>

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

int a = 0, b = 1, c;

c = a++ && b++;

printf("%d",b);

return 0;

}

Choose the right answer:

Options:
A.

The program outputs 3

B.

The program outputs 1

C.

The program outputs 2

D.

Compilation fails

E.

The program outputs 0

Questions 4

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

#include

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

int i = 2 / 1 + 4 / 2;

printf("%d",i);

return 0;

}

Choose the right answer:

Options:
A.

The program outputs 5

B.

Compilation fails

C.

The program outputs 3

D.

The program outputs 0

E.

The program outputs 4

Questions 5

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:

Options:
A.

The program outputs 8

B.

The program outputs 2

C.

Execution fails

D.

The program outputs 4

E.

The program outputs 1

Questions 6

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:

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

Questions 7

What happens when you compile and run the following program?

#include

int fun(void) {

static int i = 1;

i++;

return i;

}

int main (void) {

int k, l;

k = fun ();

l = fun () ;

printf("%d",l + k);

return 0;

}

Choose the right answer:

Options:
A.

The program outputs 5

B.

The program outputs 2

C.

The program outputs 1

D.

The program outputs 4

E.

The program outputs 3

Questions 8

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

Questions 9

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

Questions 10

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

Exam Code: CLA-11-03
Certification Provider: C++ Institute
Exam Name: CLA - C Certified Associate Programmer
Last Update: Jul 12, 2025
Questions: 40
PDF + Testing Engine
$164.99
$57.75
Testing Engine
$124.99
$43.75
PDF (Q&A)
$104.99
$36.75

C++ Institute Free Exams

C++ Institute Free Exams
Get the best free C++ Institute exam study materials and practice tests at Examstrack. Perfect your C++ Institute preparation by visiting Examstrack.