Best C++ Institute CLA-11-03 2024 Training With 41 QA’s [Q22-Q41]

Rate this post

Best C++ Institute CLA-11-03 2024 Training With 41 QA’s

C++ Institute CLA-11-03 Certification Exam Questions

NEW QUESTION 22
What happens if you try to compile and run this program?
#include <stdio.h>
int main (int argc, char *argv[]) {
int i = 2;
int d= i << 2;
d /= 2;
printf (“%d”, d) ;
return 0;
}
Choose the right answer:

 
 
 
 
 

NEW QUESTION 23
What happens when you compile and run the following program?
#include <stdio.h>
#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:

 
 
 
 
 

NEW QUESTION 24
What happens if you try to compile and run this program?
#include <stdio.h>
int main (int argc, char *argv[]) {
int i = 20;
printf(“%x”, i);
return 0;
}

Choose the right answer:

 
 
 
 
 

NEW QUESTION 25
What happens if you try to compile and run this program?
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[]) {
double x = 1234567890.0;
printf (“%f”,x);
return 0;
}
Choose the most precise answer:

 
 
 
 
 

NEW QUESTION 26
What happens if you try to compile and run this program?
#include <stdio.h>
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

 
 
 
 

NEW QUESTION 27
What happens when you compile and run the following program?
#include <stdio.h>
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:

 
 
 
 
 

NEW QUESTION 28
What happens if you try to compile and run this program?
#include <stdio.h>
int main (int argc, char *argv[]) {
int i = ‘A’ – ‘B’;
int j = ‘b’ – ‘a’;
printf(“%d”,i / j);
return 0;
}
Choose the right answer:

 
 
 
 
 

NEW QUESTION 29
Assume that ints are 32-bit wide.
What happens if you try to compile and run this program?
#include <stdio.h>
typedef union {
int i;
int j;
int k;
} uni;
int main (int argc, char *argv[]) {
uni s;
s.i = 3;
s.j = 2;
s.k = 1;
printf(“%d”,s.k * (s.i – s.j));
return 0;
}
Choose the right answer:

 
 
 
 
 

NEW QUESTION 30
What happens if you try to compile and run this program?
#include <stdio.h>
int i = 0;
int main (int argc, char *argv[]) {
for(i; 1; i++);
printf(“%d”, i);
return 0;
}
Choose the right answer:

 
 
 
 
 

NEW QUESTION 31
What happens if you try to compile and run this program?
#include <stdio.h>
int fun(int i) {
return i++;
}
int main (void) {
int i = 1;
i = fun(i);
printf(“%d”,i);
return 0;
}
Choose the correct answer:

 
 
 
 
 

NEW QUESTION 32
What happens if you try to compile and run this program?
#include <stdio.h>
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:

 
 
 
 
 

NEW QUESTION 33
What happens if you try to compile and run this program?
#include <stdio.h>
int main (int argc, char *argv[]) {
int i = 0;
printf (“%s”, argv[i]);
return 0;
}
Choose the right answer:

 
 
 
 
 

NEW QUESTION 34
What happens if you try to compile and run this program?
#include <stdio.h>
#include <stdlib.h>
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:

 
 
 
 
 

NEW QUESTION 35
What happens if you try to compile and run this program?
#include <stdio.h>
int main (int argc, char *argv[]) {
int i = 1;
for(;i > 128;i *= 2);
printf(“%d”, i) ;
return 0;
}

Choose the right answer:

 
 
 
 
 

NEW QUESTION 36
What happens when you compile and run the following program?
#include <stdio.h>
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:

 
 
 
 
 

NEW QUESTION 37
What happens if you try to compile and run this program?
#include <stdio.h>
#include <string.h>
int main (int argc, char *argv[]) {
int a = 0, b = 1, c;
c = a++ && b++;
printf(“%d”,b);
return 0;
}
Choose the right answer:

 
 
 
 
 

Quickly and Easily Pass C++ Institute Exam with CLA-11-03 real Dumps: https://www.passtestking.com/c-plus-plus-institute/CLA-11-03-practice-exam-dumps.html

admin

Leave a Reply

Your email address will not be published. Required fields are marked *

Enter the text from the image below
 

Post comment