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

8901. Is the following declaration correct? char far far ptr;



8902. Is the following declaration correct? void(f)(int, void()());



8903. Are the following declarations same? char far far scr; char far far scr;



8904. Declare the following statement? "An array of three pointers to chars".




8905. What do the following declaration signify? int ptr[30];





8906. Declare the following statement? "A pointer to an array of three chars".




8907. What do the following declaration signify? char arr[10];





8908. What do the following declaration signify? int (pf)();





8909. Article 254 of the Indian constitution describes which of the following





8910. The doctor told me to avoid fatty foods ————— bacon or hamburgers.





8911. The new agricultural strategy called "Green Revolution" was initiated in





8912. The World Development Report- 2009 is released a few months earlier, by which of the following Organisations ?





8913. The temple of Angkorvat is in





8914. What will be the output of the program? #include<stdio.h> int main() { const char s = ""; char str[] = "Hello"; s = str; while(s) printf("%c", s++); return 0; }





8915. What will be the output of the program? #include<stdio.h> int get(); int main() { const int x = get(); printf("%d", x); return 0; } int get() { return 20; }





8916. What will be the output of the program (in Turbo C)? #include<stdio.h> int fun(int f) { f = 10; return 0; } int main() { const int arr[5] = {1, 2, 3, 4, 5}; printf("Before modification arr[3] = %d", arr[3]); fun(&arr[3]); printf("\nAfter modification arr[3] = %d", arr[3]); return 0; }





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





8918. What will be the output of the program? #include<stdio.h> int main() { const c = -11; const int d = 34; printf("%d, %d\n", c, d); return 0; }





8919. Point out the error in the program. #include<stdio.h> #define MAX 128 int main() { char mybuf[] = "India"; char yourbuf[] = "BIX"; char const ptr = mybuf; ptr = 'a'; ptr = yourbuf; return 0; }





8920. Point out the error in the program (in Turbo-C). #include<stdio.h> #define MAX 128 int main() { const int max=128; char array[max]; char string[MAX]; array[0] = string[0] = 'A'; printf("%c %c\n", array[0], string[0]); return 0; }





8921. Point out the error in the program. #include<stdio.h> #include<stdlib.h> union employee { char name[15]; int age; float salary; }; const union employee e1; int main() { strcpy(e1.name, "K"); printf("%s", e1.name); e1.age=85; printf("%d", e1.age); printf("%f", e1.salary); return 0; }





8922. Point out the error in the program. #include<stdio.h> const char fun(); int main() { char ptr = fun(); return 0; } const char fun() { return "Hello"; }




8923. Point out the error in the program. #include<stdio.h> int main() { const int x; x=128; printf("%d\n", x); return 0; }





8924. Point out the error in the program. #include<stdio.h> int main() { const int k=7; int const q=&k; printf("%d", q); return 0; }




8925. Who among the following decides whether a particular bill is money bill or not?





8926. Point out the error in the program. #include<stdio.h> const char fun(); int main() { fun() = 'A'; return 0; } const char fun() { return "Hello"; }





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





8928. What will be the output of the program? #include<stdio.h> #include<stdlib.h> union employee { char name[15]; int age; float salary; }; const union employee e1; int main() { strcpy(e1.name, "K"); printf("%s %d %f", e1.name, e1.age, e1.salary); return 0; }




8929. What will be the output of the program? #include int fun(int ptr); int main() { int i=10; const int ptr = &i; fun(&ptr); return 0; } int fun(int ptr) { int j = 223; int temp = &j; printf("Before changing ptr = %5x\n", ptr); const ptr = temp; printf("After changing ptr = %5x\n", ptr); return 0; }





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





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





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





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





8934. Pitchblend is an ore of





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





8936. She spent three hours ________ over the manuscript.





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





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





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





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





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





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





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





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





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





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





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





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





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





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





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