Weekend Sale Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 713PS592

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

Questions 4

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 5

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
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

Buy Now
Questions 7

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

#include

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 8

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
Questions 9

Assume that ints and floats are 32-bit wide.

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

#include

union uni {

float f, g;

int i, j;

};

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

union uni u;

printf ("%ld", sizeof (u) ) ;

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 16

B.

The program outputs 8

C.

Compilation fails

D.

The program outputs 4

E.

The program outputs 24

Buy Now
Questions 10

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

#include

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

int i = 20;

printf("%x", i);

return 0;

}

-

Choose the right answer:

Options:

A.

The program outputs 24

B.

The program outputs 14

C.

The program outputs 20

D.

The program outputs 10

E.

Compilation fails

Buy Now
Questions 11

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

#include

int i = 0;

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

for(i; 1; i++);

printf("%d", i);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 0

B.

Compilation fails

C.

The program executes an infinite loop

D.

The program outputs 2

E.

The program outputs 1

Buy Now
Questions 12

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

#include

#include

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

Buy Now
Exam Code: CLA-11-03
Exam Name: CLA - C Certified Associate Programmer
Last Update: May 10, 2024
Questions: 40

PDF + Testing Engine

$66.4  $165.99

Testing Engine

$46  $114.99
buy now CLA-11-03 testing engine

PDF (Q&A)

$42  $104.99
buy now CLA-11-03 pdf