Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

CLA - C Certified Associate Programmer

Last Update 20 hours ago Total Questions : 40

The CLA - C Certified Associate Programmer content is now fully updated, with all current exam questions added 20 hours ago. Deciding to include CLA-11-03 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our CLA-11-03 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these CLA-11-03 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any CLA - C Certified Associate Programmer practice test comfortably within the allotted time.

Question # 1

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

#include < stdio.h >

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

A.

The program outputs 3

B.

The program outputs 1

C.

The program outputs 2

D.

Compilation fails

E.

The program outputs 0

Question # 2

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

#include < stdio.h >

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

int i = 20;

printf("%x", i);

return 0;

}

-

Choose the right answer:

A.

The program outputs 24

B.

The program outputs 14

C.

The program outputs 20

D.

The program outputs 10

E.

Compilation fails

Question # 3

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

#include < stdio.h >

#include < stdlib.h >

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

double x = 1234567890.0;

printf ("%f",x);

return 0;

}

Choose the most precise answer:

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

Question # 4

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

#include < stdio.h >

fun (void) {

static int n = 3;

return --n;

}

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

printf("%d \n", fun() + fun());

return 0;

}

Select the correct answer:

A.

The program outputs 3

B.

The program outputs 0

C.

The program outputs 1

D.

The program outputs 2

E.

The program outputs 4

Question # 5

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

#include < stdio.h >

int fun(int i) {

return i++;

}

int main (void) {

int i = 1;

i = fun(i);

printf("%d",i);

return 0;

}

Choose the correct answer:

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

Question # 6

What happens when you compile and run the following program?

#include < stdio.h >

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:

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

Question # 7

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

#include < stdio.h >

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

int i = 7 || 0 ;

printf("%d", !! i);

return 0;

}

Choose the right answer:

A.

The program outputs -1

B.

The program outputs 7

C.

Compilation fails

D.

The program outputs 1

E.

The program outputs 0

Question # 8

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

#include < stdio.h >

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

A.

The program outputs 4

B.

The program outputs 1

C.

The program outputs 5

D.

The program outputs 6

E.

Compilation fails

Question # 9

Assume that ints are 32-bit wide.

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

#include < stdio.h >

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:

A.

The program outputs 9

B.

The program outputs 0

C.

Execution fails

D.

Compilation fails

E.

The program outputs 3

Question # 10

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

#include < stdio.h >

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

Go to page: