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

CLA-11-03 Exam Dumps - CLA - C Certified Associate Programmer

Question # 4

Select the proper form for the following declaration:

p is a pointer to an array containing 10 int values

Choose the right answer:

A.

int * (p) [10];

B.

int (*p) [10];

C.

The declaration is invalid and cannot be coded in C

D.

int (*)p[10];

E.

int *p[10];

Full Access
Question # 5

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

#include

#include

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

Full Access
Question # 6

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:

A.

The program outputs 16

B.

The program outputs 8

C.

Compilation fails

D.

The program outputs 4

E.

The program outputs 24

Full Access
Question # 7

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

#include

#include

void fun (void) {

return 3.1415;

}

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

int i = fun(3.1415);

printf("%d",i);

return 0;

}

Choose the right answer:

A.

The program outputs 3

B.

The program outputs 3.1415

C.

The program outputs 4

D.

Execution fails

E.

Compilation fails

Full Access
Question # 8

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:

A.

The program outputs 3

B.

Compilation fails

C.

The program outputs 1

D.

The program outputs 2

E.

The program outputs 0

Full Access
Question # 9

What is the meaning of the following declaration?

float ** p;

Choose the right answer:

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

Full Access
Question # 10

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

#include

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

Full Access
Question # 11

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:

A.

The program outputs 0

B.

The program outputs 4

C.

Compilation fails

D.

The program outputs 9

E.

The program outputs 15

Full Access
Question # 12

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

#include

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

char i = 20 + 020 + 0x20;

printf("%d",i);

return 0;

}

Choose the right answer:

A.

The program outputs 68

B.

The program outputs 60

C.

Compilation fails

D.

The program outputs 86

E.

The program outputs 62

Full Access