Summer Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ex2p65

Exact2Pass Menu

CLA - C Certified Associate Programmer

Last Update 19 hours ago Total Questions : 40

The CLA - C Certified Associate Programmer content is now fully updated, with all current exam questions added 19 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 # 4

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:

A.

The program outputs 24

B.

The program outputs 14

C.

The program outputs 20

D.

The program outputs 10

E.

Compilation fails

Question # 5

What happens when you compile and run the following program?

#include

#define SYM

#define BOL 100

#undef SYM

int main (void) {

#ifdef SYM

int i = 100;

#else

int i= 200;

#endif

int j = i + 200;

printf("%d",i+j);

return 0;

}

Select the correct answer:

A.

The program outputs 200

B.

The program outputs 100

C.

The program outputs 400

D.

The program outputs 300

E.

The program outputs 600

Question # 6

Assume that we can open a file called "file1".

What happens when you try to compile and run the following program?

#include

int main (void) {

FILE *f;

int i;

f = fopen("file1","wb");

fputs("545454",f);

fclose (f);

f = fopen("file1","rt");

fscanf(f,"%d ", &i);

fclose (f) ;

printf("%d",i);

return 0;

}

Choose the right answer:

A.

The program outputs 545454

B.

Execution fails

C.

The program outputs 54

D.

The program outputs 0

E.

Compilation fails

Question # 7

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

#include

#include

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

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

#include

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

char *p = "John" " " "Bean";

printf("[%s]", p) ;

return 0;

}

Choose the right answer:

A.

The program outputs "[]"

B.

The program outputs nothing

C.

The program outputs [John Bean]

D.

The program outputs three lines of text

E.

The program outputs two lines of text

Question # 9

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:

A.

The program outputs 3

B.

The program outputs 1

C.

The program outputs 2

D.

Compilation fails

E.

The program outputs 0

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/=2)

if(i)

break ;

printf("%d",i);

return 0;

}

Choose the right answer:

The program executes an infinite loop

A.

The program outputs 1

B.

Compilation fails

C.

The program outputs 0

D.

The program outputs 0.5

Go to page: