<<= Back Next =>>
You Are On Multi Choice Question Bank SET 182

9101. What will be the output of the program? #include<stdio.h> int main() { int i=2; printf("%d, %d\n", ++i, ++i); return 0; }





9102. What will be the output of the program? #include<stdio.h> int main() { int k, num=30; k = (num>5 ? (num <=10 ? 100 : 200): 500); printf("%d\n", num); return 0; }





9103. What will be the output of the program? #include<stdio.h> int main() { char ch; ch = 'A'; printf("The letter is"); printf("%c", ch >= 'A' && ch <= 'Z' ? ch + 'a' - 'A':ch); printf("Now the letter is"); printf("%c\n", ch >= 'A' && ch <= 'Z' ? ch : ch + 'a' - 'A'); return 0; }




9104. What will be the output of the program? #include<stdio.h> int main() { int i=2; int j = i + (1, 2, 3, 4, 5); printf("%d\n", j); return 0; }





9105. Associativity has no role to play unless the precedence of operator is same.



9106. The expression of the right hand side of || operators doesn't get evaluated if the left hand side determines the outcome.



9107. In the expression a=b=5 the order of Assignment is NOT decided by Associativity of operators



9108. Associativity of an operator is either Left to Right or Right to Left.



9109. Are the following two statement same? 1. a <= 20 ? (b = 30): (c = 30); 2. (a <=20) ? b : (c = 30);



9110. Two different operators would always have different Associativity.



9111. Will the expression p = p be disallowed by the compiler?



9112. Every operator has an Associativity



9113. Which of the following is the correct order of evaluation for the below expression? z = x + y z / 4 % 2 - 1





9114. Which of the following correctly shows the hierarchy of arithmetic operations in C?





9115. Which of the following is the correct usage of conditional operators used in C?





9116. Which of the following is the correct order if calling functions in the below code? a = f1(23, 14) f2(12/4) + f3();





9117. Which of the following are unary operators in C? 1. ! 2. sizeof 3. ~ 4. &&





9118. Who was the first Indian to pass ICS exam?





9119. Name the Parliament of America?





9120. Water gas is a mixture of





9121. When was ‘Dronacharya Award’, come to being?





9122. The first president of prajamandalam





9123. We want to round off x, a float, to an int value, The correct way to do is





9124. The binary equivalent of 5.375 is





9125. A float occupies 4 bytes. If the hexadecimal equivalent of these 4 bytes are A, B, C and D, then when this float is stored in memory in which of the following order do these bytes gets stored?





9126. What will you do to treat the constant 3.14 as a float?





9127. Which of the following statement obtains the remainder on dividing 5.5 by 1.3 ?




9128. What will be the output of the program? #include<stdio.h> int main() { float a=0.7; if(a < 0.7) printf("C\n"); else printf("C++\n"); return 0; }





9129. What will be the output of the program? #include<stdio.h> int main() { float p; printf("%d\n", sizeof(p)); return 0; }





9130. What will be the output of the program? #include<stdio.h> int main() { float fval=7.29; printf("%d\n", (int)fval); return 0; }





9131. What will be the output of the program? #include<stdio.h> #include<math.h> int main() { printf("%f\n", sqrt(36.0)); return 0; }





9132. What will be the output of the program? #include<stdio.h> #include<math.h> int main() { printf("%d, %d, %d\n", sizeof(3.14f), sizeof(3.14), sizeof(3.14l)); return 0; }





9133. What will be the output of the program? #include<stdio.h> int main() { float f=43.20; printf("%e, ", f); printf("%f, ", f); printf("%g", f); return 0; }





9134. What will be the output of the program? #include<stdio.h> int main() { float a=0.7; if(a < 0.7f) printf("C\n"); else printf("C++\n"); return 0; }





9135. What will be the output of the program? #include<stdio.h> #include<math.h> int main() { float n=1.54; printf("%f, %f\n", ceil(n), floor(n)); return 0; }





9136. What will be the output of the program? #include<stdio.h> int main() { float d=2.25; printf("%e,", d); printf("%f,", d); printf("%g,", d); printf("%lf", d); return 0; }





9137. What are the different types of real data type in C ?





9138. What will you do to treat the constant 3.14 as a long double?





9139. If the binary eauivalent of 5.375 in normalised form is 0100 0000 1010 1100 0000 0000 0000 0000, what will be the output of the program (on intel machine)? #include<stdio.h> #include<math.h> int main() { float a=5.375; char p; int i; p = (char)&a; for(i=0; i<=3; i++) printf("%02x\n", (unsigned char)p[i]); return 0; }





9140. Which of the following range is a valid long double (Turbo C in 16 bit DOS OS) ?





9141. Which statement will you add in the following program to work it correctly? #include<stdio.h> int main() { printf("%f\n", log(36.0)); return 0; }





9142. A journey by sea is called





9143. I’m afraid this exercise is ......... more difficult





9144. The correctly spelt word below is





9145. Find out the feminine gender of Horse





9146. He ------- to discuss his plans with the newspaper men.





9147. What will be the output of the program in 16 bit platform (Turbo C under DOS)? #include<stdio.h> int main() { int fun(); int i; i = fun(); printf("%d\n", i); return 0; } int fun() { _AX = 1990; }





9148. What will be the output of the program? #include<stdio.h> void fun(int, int); int main() { int i=5, j=2; fun(&i, &j); printf("%d, %d", i, j); return 0; } void fun(int i, int j) { i = ii; j = jj; }





9149. What will be the output of the program? #include<stdio.h> int i; int fun(); int main() { while(i) { fun(); main(); } printf("Hello\n"); return 0; } int fun() { printf("Hi"); }





9150. What will be the output of the program? #include<stdio.h> int reverse(int); int main() { int no=5; reverse(no); return 0; } int reverse(int no) { if(no == 0) return 0; else printf("%d,", no); reverse (no--); }





<<= Back Next =>>
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution