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

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





23352. What will be the output of the program in TurboC? #include<stdio.h> int fun(int ptr); int main() { int i=10, j=20; const int ptr = &i; printf(" i = %5X", ptr); printf(" ptr = %d", ptr); ptr = &j; printf(" j = %5X", ptr); printf(" ptr = %d", ptr); return 0; }





23353. Rewrite as directed:He was rude to say that. (Begin the sentence with ‘it’)





23354. Who suggested that most of the mass of the atom is located in the nucleus ?





23355. Pitchblend is an ore of





23356. As per news published in newspapers, how much money Govt. of India has decided to invest in Infrastructure Sector as an initiative ? About—





23357. She spent three hours ________ over the manuscript.





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





23359. What will be the output of the program? #include<stdio.h> int main() { char str[]="C-program"; int a = 5; printf(a >10?"Ps\n":"%s\n", str); return 0; }





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





23361. What will be the output of the program? #include<stdio.h> int main() { unsigned int i = 65535; / Assume 2 byte integer/ while(i++ != 0) printf("%d",++i); printf("\n"); return 0; }





23362. What will be the output of the program? #include<stdio.h> int main() { int x = 3; float y = 3.0; if(x == y) printf("x and y are equal"); else printf("x and y are not equal"); return 0; }





23363. What will be the output of the program, if a short int is 2 bytes wide? #include<stdio.h> int main() { short int i = 0; for(i<=5 && i>=-1; ++i; i>0) printf("%u,", i); return 0; }





23364. What will be the output of the program? #include<stdio.h> int main() { char ch; if(ch = printf("")) printf("It matters\n"); else printf("It doesn't matters\n"); return 0; }




23365. What will be the output of the program? #include<stdio.h> int main() { unsigned int i = 65536; / Assume 2 byte integer/ while(i != 0) printf("%d",++i); printf("\n"); return 0; }





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





23367. What will be the output of the program? #include<stdio.h> int main() { int a=0, b=1, c=3; ((a) ? &b : &a) = a ? b : c; printf("%d, %d, %d\n", a, b, c); return 0; }





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





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





23370. What will be the output of the program? #include<stdio.h> int main() { int x=1, y=1; for(; y; printf("%d %d\n", x, y)) { y = x++ <= 5; } printf("\n"); return 0; }





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





23372. What will be the output of the program? #include<stdio.h> int main() { int i=3; switch(i) { case 1: printf("Hello\n"); case 2: printf("Hi\n"); case 3: continue; default: printf("Bye\n"); } return 0; }





23373. What will be the output of the program? #include<stdio.h> int main() { int x = 10, y = 20; if(!(!x) && x) printf("x = %d\n", x); else printf("y = %d\n", y); return 0; }





23374. What will be the output of the program? #include<stdio.h> int main() { int i=4; switch(i) { default: printf("This is default\n"); case 1: printf("This is case 1\n"); break; case 2: printf("This is case 2\n"); break; case 3: printf("This is case 3\n"); } return 0; }





23375. What will be the output of the program? #include<stdio.h> int main() { int i = 1; switch(i) { printf("Hello\n"); case 1: printf("Hi\n"); break; case 2: printf("\nBye\n"); break; } return 0; }





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





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





23378. Point out the error, if any in the for loop. #include<stdio.h> int main() { int i=1; for(;;) { printf("%d\n", i++); if(i>10) break; } return 0; }





23379. Point out the error, if any in the program. #include<stdio.h> int main() { int a = 10; switch(a) { } printf("This is c program."); return 0; }





23380. Point out the error, if any in the program. #include<stdio.h> int main() { int i = 1; switch(i) { printf("This is c program."); case 1: printf("Case1"); break; case 2: printf("Case2"); break; } return 0; }





23381. Point out the error, if any in the while loop. #include<stdio.h> int main() { int i=1; while() { printf("%d\n", i++); if(i>10) break; } return 0; }





23382. Strong and settled dislike between two persons.





23383. Which of the following errors would be reported by the compiler on compiling the program given below? #include<stdio.h> int main() { int a = 5; switch(a) { case 1: printf("First"); case 2: printf("Second"); case 3 + 2: printf("Third"); case 5: printf("Final"); break; } return 0; }





23384. The Public Accounts Committee Submits its report to the





23385. Point out the error, if any in the program. #include<stdio.h> int main() { int P = 10; switch(P) { case 10: printf("Case 1"); case 20: printf("Case 2"); break; case P: printf("Case 2"); break; } return 0; }





23386. Screen that comes on when you turn on your computer that shows all the icons.





23387. Point out the error, if any in the program. #include<stdio.h> int main() { int i = 1; switch(i) { case 1: printf("Case1"); break; case 12+4: printf("Case2"); break; } return 0; }





23388. Force between same type of molecules





23389. Point out the error, if any in the while loop. #include<stdio.h> int main() { void fun(); int i = 1; while(i <= 5) { printf("%d\n", i); if(i>2) goto here; } return 0; } void fun() { here: printf("It works"); }





23390. Who was the first acting president of India?





23391. Point out the error, if any in the program. #include<stdio.h> int main() { int a = 10, b; a >=5 ? b=100: b=200; printf("%d\n", b); return 0; }





23392. Which of the following statements are correct about the below program? #include<stdio.h> int main() { int i = 10, j = 20; if(i = 5) && if(j = 10) printf("Have a nice day"); return 0; }





23393. The length of day due to earths atmosphere





23394. Which of the following statements are correct about the below program? #include<stdio.h> int main() { int i = 10, j = 15; if(i % 2 = j % 3) printf("IndiaBIX\n"); return 0; }





23395. All the three Round Table Conferences were held in





23396. Which of the following statements are correct about the program? #include<stdio.h> int main() { int x = 30, y = 40; if(x == y) printf("x is equal to y\n"); else if(x > y) printf("x is greater than y\n"); else if(x < y) printf("x is less than y\n") return 0; }





23397. The first Indian ruler to organise Haj pilgrimage at the expense of the state was





23398. Which of the following statements are correct about an if-else statements in a C-program? 1: Every if-else statement can be replaced by an equivalent statements using ?: operators 2: Nested if-else statements are allowed. 3: Multiple statements in an if block are allowed. 4: Multiple statements in an else block are allowed.





23399. Mahatma Gandhi’s thoughts were greatly influenced by





<<= 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