Easter Special Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

CLA-11-03 Sample Questions Answers

Questions 4

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 5

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

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

#include

struct s {

int i;

};

void fun(struct S st) {

st.i --;

int main (void) {

int k;

struct $ str1 = { 2 };

fun (str1) ;

k =str1.i;

printf("%d", k);

return 0;

}

-

Choose the correct answer:

Options:

A.

The program outputs 3

B.

Compilation fails

C.

The program outputs 1

D.

The program outputs 2

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[]) {

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 8

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

#include

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

int i = 2;

int d= i << 2;

d /= 2;

printf ("%d", d) ;

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 0

B.

The program outputs 4

C.

The program outputs 1

D.

The program outputs 2

E.

Compilation fails

Buy Now
Questions 9

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:

Options:

A.

The program outputs 4

B.

The program outputs 1

C.

The program outputs 5

D.

The program outputs 6

E.

Compilation fails

Buy Now
Questions 10

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

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

#include

int f1(int n) {

return n = n * n;

}

int f2(int n) {

return n = f1(n) * f1(n);

}

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

printf ("%d \n", f2(1));

return 0;

}

-

Select the correct answer:

Options:

A.

The program outputs 8

B.

The program outputs 2

C.

Execution fails

D.

The program outputs 4

E.

The program outputs 1

Buy Now
Questions 12

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

#include

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

char *p = "World";

int i = 2;

switch (p[i]) {

case 'W' :i++; break ;

case 'o' :i += 2; break ;

case 'r' :i += 3; break ;

case '1' :i += 4; break ;

case 'd' :i += 5; break ;

default :i += 4;

}

printf("%d", i);

return 0;

}

-

Choose the right answer:

Options:

A.

Compilation fails

B.

The program outputs 5

C.

The program outputs 6

D.

The program outputs 3

E.

The program outputs 4

Buy Now
Exam Code: CLA-11-03
Exam Name: CLA - C Certified Associate Programmer
Last Update: May 14, 2024
Questions: 40
$64  $159.99
$48  $119.99
$40  $99.99
buy now CLA-11-03