Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free C++ Institute CLA-11-03 Practice Exam with Questions & Answers | Set: 2

Questions 11

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

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

What happens when you compile and run the following program?

#include

int fun (void) {

static int i = 1;

i += 2;

return i;

}

int main (void) {

int k, 1;

k = fun ();

1 = fun () ;

printf ("%d", 1 - k);

return 0;

}

Choose the right answer:

Options:
A.

The program outputs 2

B.

The program outputs 4

C.

The program outputs 1

D.

The program outputs 0

E.

The program outputs 3

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

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.