Winter Sale - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpm65

Hot Vendors

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

Questions 4

-

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

#include

int *f();

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

int *p;

p = f();

printf("%d",*p);

return 0;

}

int *f() {

static v = 1;

return &v;

}

Choose the right answer:

Options:

A.

The program outputs 1

B.

Compilation fails

C.

The program outputs 3

D.

The program outputs 2

E.

The program outputs 0

Buy Now
Questions 5

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

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

#include

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

int i = 7 || 0 ;

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

return 0;

}

Choose the right answer:

Options:

A.

The program outputs -1

B.

The program outputs 7

C.

Compilation fails

D.

The program outputs 1

E.

The program outputs 0

Buy Now
Questions 7

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

#include

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

int i =2, j = 1;

if(i / j)

j += j;

else

i += i;

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

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 1

B.

The program outputs 5

C.

The program outputs 3

D.

Compilation fails

E.

The program outputs 4

Buy Now
Questions 8

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

#define ALPHA 0

#define BETA ALPHA-1

#define GAMMA 1

#define dELTA ALPHA-BETA-GAMMA

#include

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

printf ("%d", DELTA);

return 0;

Choose the right answer:

Options:

A.

The program outputs 2

B.

The program outputs -2

C.

The program outputs 1

D.

Compilation fails

E.

The program outputs -1

Buy Now
Questions 9

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 10

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

Buy Now
Questions 11

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

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:

Options:

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

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

PDF + Testing Engine

$56  $159.99

Testing Engine

$42  $119.99
buy now CLA-11-03 testing engine

PDF (Q&A)

$35  $99.99
buy now CLA-11-03 pdf
dumpsmate guaranteed to pass
24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 21 Nov 2024