C++ Institute CLA-11-03 CLA – C Certified Associate Programmer Online Training
C++ Institute CLA-11-03 Online Training
The questions for CLA-11-03 were last updated at Apr 11,2025.
- Exam Code: CLA-11-03
- Exam Name: CLA - C Certified Associate Programmer
- Certification Provider: C++ Institute
- Latest update: Apr 11,2025
What happens if you try to compile and run this program?
#include <stdio.h>
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:
- A . The program outputs 1
- B . Compilation fails
- C . The program outputs 3
- D . The program outputs 2
- E . The program outputs 0
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 <stdio.h>
int main(int argc, char *argv[]) {
printf ("%d", DELTA);
return 0;
Choose the right answer:
- A . The program outputs 2
- B . The program outputs -2
- C . The program outputs 1
- D . Compilation fails
- E . The program outputs -1
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 <stdio.h>
int main(int argc, char *argv[]) {
printf ("%d", DELTA);
return 0;
Choose the right answer:
- A . The program outputs 2
- B . The program outputs -2
- C . The program outputs 1
- D . Compilation fails
- E . The program outputs -1
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 <stdio.h>
int main(int argc, char *argv[]) {
printf ("%d", DELTA);
return 0;
Choose the right answer:
- A . The program outputs 2
- B . The program outputs -2
- C . The program outputs 1
- D . Compilation fails
- E . The program outputs -1
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 <stdio.h>
int main(int argc, char *argv[]) {
printf ("%d", DELTA);
return 0;
Choose the right answer:
- A . The program outputs 2
- B . The program outputs -2
- C . The program outputs 1
- D . Compilation fails
- E . The program outputs -1
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 <stdio.h>
int main(int argc, char *argv[]) {
printf ("%d", DELTA);
return 0;
Choose the right answer:
- A . The program outputs 2
- B . The program outputs -2
- C . The program outputs 1
- D . Compilation fails
- E . The program outputs -1
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 <stdio.h>
int main(int argc, char *argv[]) {
printf ("%d", DELTA);
return 0;
Choose the right answer:
- A . The program outputs 2
- B . The program outputs -2
- C . The program outputs 1
- D . Compilation fails
- E . The program outputs -1
What happens if you try to compile and run this program?
#include <stdio.h>
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:
- A . The program outputs 1
- B . The program outputs 5
- C . The program outputs 3
- D . Compilation fails
- E . The program outputs 4
What happens if you try to compile and run this program?
#include <stdio.h>
#include <string.h>
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
What happens if you try to compile and run this program?
#include <stdio.h>
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