CLA - C Certified Associate Programmer
Last Update May 20, 2024
Total Questions : 40
We are offering FREE CLA-11-03 C++ Institute exam questions. All you do is to just go and sign up. Give your details, prepare CLA-11-03 free exam questions and then go for complete pool of CLA - C Certified Associate Programmer test questions that will help you more.
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:
What happens when you compile and run the following program?
#include
int fun(void) {
static int i = 1;
i++;
return i;
}
int main (void) {
int k, l;
k = fun ();
l = fun () ;
printf("%d",l + k);
return 0;
}
Choose the right answer:
What is the meaning of the following declaration?
float ** p;
Choose the right answer:
What happens if you try to compile and run this program?
#include
int main (int argc, char *argv[]) {
int i = 1, j = 0;
int 1 = !i + !! j;
printf("%d", 1);
return 0;
}
Choose the right answer:
What happens if you try to compile and run this program?
#include
int *fun(int *t) {
return t + 4;
}
int main (void) {
int arr[] = { 4, 3, 2, 1, 0 };
int *ptr;
ptr = fun (arr - 3);
printf("%d \n", ptr[2]);
return 0;
}
Choose the right answer:
What happens if you try to compile and run this program?
#include
int main (int argc, char *argv[]) {
int main, Main, mAIN = 1;
Main = main = mAIN += 1;
printf ("%d", MaIn) ;
return 0;
}
Choose the right answer:
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:
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:
What happens if you try to compile and run this program?
#include
int main (int argc, char *argv[]) {
int i = 1;
for( ;; i/=2)
if(i)
break ;
printf("%d",i);
return 0;
}
Choose the right answer:
The program executes an infinite loop
What happens if you try to compile and run this program?
#include
int main (int argc, char *argv[]) {
char *t = "abcdefgh";
char *p = t + 2;
int i;
p++;
p++;
printf("%d ", p[2] - p[-1]);
return 0;
}
Choose the right answer:
What happens when you compile and run the following program?
#include
int fun (void) {
static int i = 1;
i += 2;
return i;
}
int main (void) {
int k, 1;
k = fun ();
1 = fun () ;
printf ("%d", 1 - k);
return 0;
}
Choose the right answer:
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: