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

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





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





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





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





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





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





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





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





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





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





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





23562. A journey by sea is called





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





23564. The correctly spelt word below is





23565. Find out the feminine gender of Horse





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





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





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





23569. 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"); }





23570. 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--); }





23571. What will be the output of the program? #include<stdio.h> void fun(int); typedef int (pf) (int, int); int proc(pf, int, int); int main() { int a=3; fun(a); return 0; } void fun(int n) { if(n > 0) { fun(--n); printf("%d,", n); fun(--n); } }





23572. What will be the output of the program? #include<stdio.h> int sumdig(int); int main() { int a, b; a = sumdig(123); b = sumdig(123); printf("%d, %d\n", a, b); return 0; } int sumdig(int n) { int s, d; if(n!=0) { d = n%10; n = n/10; s = d+sumdig(n); } else return 0; return s; }





23573. What will be the output of the program? #include<stdio.h> int main() { void fun(char); char a[100]; a[0] = 'A'; a[1] = 'B'; a[2] = 'C'; a[3] = 'D'; fun(&a[0]); return 0; } void fun(char a) { a++; printf("%c", a); a++; printf("%c", a); }





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





23575. What will be the output of the program? #include<stdio.h> int check (int, int); int main() { int c; c = check(10, 20); printf("c=%d\n", c); return 0; } int check(int i, int j) { int p, q; p=&i; q=&j; i>=45 ? return(p): return(q); }





23576. What will be the output of the program? #include<stdio.h> int fun(int, int); typedef int (pf) (int, int); int proc(pf, int, int); int main() { printf("%d\n", proc(fun, 6, 6)); return 0; } int fun(int a, int b) { return (a==b); } int proc(pf p, int a, int b) { return ((p)(a, b)); }





23577. What will be the output of the program? #include<stdio.h> int main() { int i=1; if(!i) printf("IndiaBIX,"); else { i=0; printf("C-Program"); main(); } return 0; }





23578. What will be the output of the program? #include<stdio.h> int addmult(int ii, int jj) { int kk, ll; kk = ii + jj; ll = ii jj; return (kk, ll); } int main() { int i=3, j=4, k, l; k = addmult(i, j); l = addmult(i, j); printf("%d %d\n", k, l); return 0; }





23579. What will be the output of the program? #include<stdio.h> int i; int fun1(int); int fun2(int); int main() { extern int j; int i=3; fun1(i); printf("%d,", i); fun2(i); printf("%d", i); return 0; } int fun1(int j) { printf("%d,", ++j); return 0; } int fun2(int i) { printf("%d,", ++i); return 0; } int j=1;





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





23581. He .............. to arrive at 8 O’ clock, but he is late.





23582. What will be the output of the program? #include<stdio.h> int check(int); int main() { int i=45, c; c = check(i); printf("%d\n", c); return 0; } int check(int ch) { if(ch >= 45) return 100; else return 10; }





23583. If int is 2 bytes wide.What will be the output of the program? #include <stdio.h> void fun(char); int main() { char argv[] = {"ab", "cd", "ef", "gh"}; fun(argv); return 0; } void fun(char p) { char t; t = (p+= sizeof(int))[-1]; printf("%s\n", t); }





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





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





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





23587. What will be the output of the program? #include<stdio.h> #include<stdlib.h> int main() { int i=0; i++; if(i<=5) { printf("IndiaBIX"); exit(1); main(); } return 0; }




23588. Point out the error in the program f(int a, int b) { int a; a = 20; return a; }





23589. Point out the error in the program #include<stdio.h> int f(int a) { a > 20? return(10): return(20); } int main() { int f(int); int b; b = f(20); printf("%d\n", b); return 0; }





23590. Point out the error in the program #include<stdio.h> int main() { int a=10; void f(); a = f(); printf("%d\n", a); return 0; } void f() { printf("Hi"); }




23591. Which of the following statements are correct about the program? #include<stdio.h> int main() { printf("%p\n", main()); return 0; }





23592. There is a error in the below program. Which statement will you add to remove it? #include<stdio.h> int main() { int a; a = f(10, 3.14); printf("%d\n", a); return 0; } float f(int aa, float bb) { return ((float)aa + bb); }





23593. Which of the following statements are correct about the function? long fun(int num) { int i; long f=1; for(i=1; i<=num; i++) f = f i; return f; }





23594. A function cannot be defined inside another function



23595. Functions cannot return more than one value at a time



23596. If return type for a function is not specified, it defaults to int



23597. In C all functions except main() can be called recursively.



23598. Functions can be called either by value or reference



23599. A function may have any number of return statements each returning different values.



23600. Names of functions in two different files linked together must be unique



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