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

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 main (int argc, char *argv[]) {

int i = 0;

printf ("%s", argv[i]);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs an unpredictable string, or execution fails

B.

The program outputs a predictable non-empty string

C.

Execution fails

D.

The program outputs an empty string

E.

Compilation fails

Buy Now
Questions 5

Assume that ints are 32-bit wide.

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

#include

typedef struct

int i;

int j;

int k;

} str;

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

str s = { 7, 7, 7 };

printf ("%d", sizeof (s.s));

return 0;

}

Choose the right answer:

Options:

A.

Execution fails

B.

The program outputs 16

C.

Compilation fails

D.

The program outputs 12

E.

The program outputs 4

Buy Now
Questions 6

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

#include

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

int i = 2 / 1 + 4 / 2;

printf("%d",i);

return 0;

}

Choose the right answer:

Options:

A.

The program outputs 5

B.

Compilation fails

C.

The program outputs 3

D.

The program outputs 0

E.

The program outputs 4

Buy Now
Questions 7

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:

Options:

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

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, 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 9

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:

Options:

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

Buy Now
Questions 10

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

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

Options:

A.

The program outputs 68

B.

The program outputs 60

C.

Compilation fails

D.

The program outputs 86

E.

The program outputs 62

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

CLA-11-03 PDF

$28  $80
CLA-11-03 Engine

CLA-11-03 Testing Engine

$33.25  $95
CLA-11-03 PDF + Engine

CLA-11-03 PDF + Testing Engine

$45.5  $130