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

CLA-11-03 Exam Dumps - C++ Institute Certification Questions and Answers

Question # 4

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

#include

#include

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

double x = 1234567890.0;

printf ("%f",x);

return 0;

}

Choose the most precise answer:

Options:

A.

The program outputs 1234567900.0

B.

Execution fails

C.

The program outputs 1234567890.0

D.

Compilation fails

E.

The program outputs a value greater than 1234500000.0 and less than 1234600000.0

Buy Now
Question # 5

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
Question # 6

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:

Options:

A.

Execution fails

B.

Compilation fails

C.

The program outputs 1

D.

The program outputs -1

E.

The program outputs 0

Buy Now
Question # 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
Question # 8

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

Buy Now
Question # 9

Assume that ints are 32-bit wide.

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

#include

typedef union {

int i;

int j;

int k;

} uni;

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

uni s;

s.i = 3;

s.j = 2;

s.k = 1;

printf("%d",s.k * (s.i - s.j));

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 9

B.

The program outputs 0

C.

Execution fails

D.

Compilation fails

E.

The program outputs 3

Buy Now
Question # 10

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
Question # 11

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:

Options:

A.

The program outputs 3

B.

The program outputs 4

C.

Execution fails

D.

The program outputs 2

E.

Compilation fails

Buy Now
Question # 12

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

#include

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

char *s = "\\\"\\\\";

printf ("[%c]", s [1]);

return 0;

}

Choose the right answer:

Options:

A.

Execution fails

B.

The program outputs ["]

C.

The program outputs []

D.

The program outputs []

E.

Compilation fails

Buy Now
Question # 13

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

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

CLA-11-03 PDF

$25.5  $84.99
CLA-11-03 Engine

CLA-11-03 Testing Engine

$28.5  $94.99
CLA-11-03 PDF + Engine

CLA-11-03 PDF + Testing Engine

$40.5  $134.99