C++ Institute CLA-11-03 Free Exam Questions (Updated 2026)
-
-
PDF Questions

-
Bundle Pack

-
Online Engine

-
-
Question No 1
Assume that ints and floats are 32 - bit wide. What happens if you try to compile and run this program? #include <stdio.h> 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
Question No 2
What happens if you try to compile and run this program? #include <stdio.h> int main (int argc, char *argv[]) { float f = 1e1 + 2e0 + 3e - 1; printf("%f ",f); return 0; } Choose the right answer
Question No 3
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
Question No 4
What happens if you try to compile and run this program? #include <stdio.h> int main (int argc, char *argv[]) { char i = 20 + 020 + 0x20; printf("%d",i); return 0; } Choose the right answer
Question No 5
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
-
Page: 1/8
Total 40 Questions
