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

23501. Which of the following special symbol allowed in a variable name?





23502. Is there any difference between following declarations? 1 : extern int fun(); 2 : int fun();





23503. How would you round off a value from 1.66 to 2.0?





23504. Which of the following amendments relates to the Local Government Institutions?





23505. The World Trade Centre in New York was destroyed by terrorists on





23506. The Super fast train connecting Thiruvananthapuram and New Delhi is .....





23507. The two basic values of a constitutional government are





23508. Solid Carbon dioxide is known as





23509. In which order do the following gets evaluated 1. Relational 2. Arithmetic 3. Logical 4. Assignment





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





23511. Assuming, integer is 2 byte, What will be the output of the program? #include<stdio.h> int main() { printf("%x\n", -2<<2); return 0; }





23512. What will be the output of the program? #include<stdio.h> int main() { int i=-3, j=2, k=0, m; m = ++i || ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; }





23513. What will be the output of the program? #include<stdio.h> int main() { int x=12, y=7, z; z = x!=4 || y == 2; printf("z=%d\n", z); return 0; }





23514. What will be the output of the program? #include<stdio.h> int main() { static int a[20]; int i = 0; a[i] = i ; printf("%d, %d, %d\n", a[0], a[1], i); return 0; }





23515. What will be the output of the program? #include<stdio.h> int main() { int i=4, j=-1, k=0, w, x, y, z; w = i || j || k; x = i && j && k; y = i || j &&k; z = i && j || k; printf("%d, %d, %d, %d\n", w, x, y, z); return 0; }





23516. What will be the output of the program? #include<stdio.h> int main() { int i=-3, j=2, k=0, m; m = ++i && ++j || ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; }





23517. What will be the output of the program? #include<stdio.h> int main() { int x=4, y, z; y = --x; z = x--; printf("%d, %d, %d\n", x, y, z); return 0; }





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





23519. What will be the output of the program? #include<stdio.h> int main() { int a=100, b=200, c; c = (a == 100 || b > 200); printf("c=%d\n", c); return 0; }





23520. What will be the output of the program? #include<stdio.h> int main() { int x=55; printf("%d, %d, %d\n", x<=55, x=40, x>=10); return 0; }





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





23522. 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; }





23523. 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; }





23524. 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; }





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



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



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



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



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



23530. Two different operators would always have different Associativity.



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



23532. Every operator has an Associativity



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





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





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





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





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





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





23539. Name the Parliament of America?





23540. Water gas is a mixture of





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





23542. The first president of prajamandalam





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





23544. The binary equivalent of 5.375 is





23545. 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?





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





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




23548. 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; }





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





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





<<= 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
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions