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

23201. Bitwise & can be used in conjunction with ~ operator to turn off 1 or more bits in a number.



23202. Bitwise can be used to reverse a sign of a number.



23203. Bitwise can be used to generate a random number.



23204. Bitwise | can be used to multiply a number by powers of 2.



23205. Bitwise | can be used to set multiple bits in number.



23206. Bitwise can be used to perform addition and subtraction.



23207. Bitwise | can be used to set a bit in number.



23208. In which numbering system can the binary number 1011011111000101 be easily converted to?





23209. Which bitwise operator is suitable for turning off a particular bit in a number?





23210. Which bitwise operator is suitable for turning on a particular bit in a number?





23211. Which bitwise operator is suitable for checking whether a particular bit is on or off?





23212. Which of the following is not a social assistance programme launched by the Govt. of India ?





23213. What is the Statutory Liquidity Ratio (SLR) at present ?





23214. Mr. Raman Singh has taken over as the Chief Minister of which of the following States after a General Election in November/December 2008 ?





23215. Oil of winter green is





23216. What will be the output of the program? #include<stdio.h> #define MAN(x, y) ((x)>(y)) ? (x):(y); int main() { int i=10, j=5, k=0; k = MAN(++i, j++); printf("%d, %d, %d\n", i, j, k); return 0; }





23217. What will be the output of the program? #include<stdio.h> #define SQUARE(x) xx int main() { float s=10, u=30, t=2, a; a = 2(s-ut)/SQUARE(t); printf("Result = %f", a); return 0; }





23218. What will be the output of the program? #include<stdio.h> #define SQR(x)(xx) int main() { int a, b=3; a = SQR(b+2); printf("%d\n", a); return 0; }





23219. What will be the output of the program? #include<stdio.h> #define JOIN(s1, s2) printf("%s=%s %s=%s \n", #s1, s1, #s2, s2); int main() { char str1="India"; char str2="BIX"; JOIN(str1, str2); return 0; }





23220. What will be the output of the program? #include<stdio.h> #define CUBE(x) (xxx) int main() { int a, b=3; a = CUBE(b++); printf("%d, %d\n", a, b); return 0; }





23221. What will be the output of the program? #include<stdio.h> #define PRINT(int) printf("int=%d, ", int); int main() { int x=2, y=3, z=4; PRINT(x); PRINT(y); PRINT(z); return 0; }





23222. What will be the output of the program? #include<stdio.h> #define SWAP(a, b) int t; t=a, a=b, b=t; int main() { int a=10, b=12; SWAP(a, b); printf("a = %d, b = %d\n", a, b); return 0; }




23223. What will be the output of the program? #include<stdio.h> #define FUN(i, j) i##j int main() { int va1=10; int va12=20; printf("%d\n", FUN(va1, 2)); return 0; }





23224. What will be the output of the program? #include<stdio.h> #define FUN(arg) do\ {\ if(arg)\ printf("IndiaBIX...", "\n");\ }while(--i) int main() { int i=2; FUN(i<3); return 0; }





23225. What will be the output of the program? #include<stdio.h> #define MAX(a, b) (a > b ? a : b) int main() { int x; x = MAX(3+2, 2+7); printf("%d\n", x); return 0; }





23226. What will be the output of the program? #include<stdio.h> #define MIN(x, y) (x<y)? x : y; int main() { int x=3, y=4, z; z = MIN(x+y/2, y-1); if(z > 0) printf("%d\n", z); return 0; }





23227. What will be the output of the program? #include<stdio.h> #define str(x) #x #define Xstr(x) str(x) #define oper multiply int main() { char opername = Xstr(oper); printf("%s\n", opername); return 0; }



23228. What will be the output of the program? #include<stdio.h> #define MESS junk int main() { printf("MESS\n"); return 0; }





23229. What will be the output of the program? #include<stdio.h> #define PRINT(i) printf("%d,",i) int main() { int x=2, y=3, z=4; PRINT(x); PRINT(y); PRINT(z); return 0; }





23230. What will be the output of the program? #include<stdio.h> #define MAX(a, b, c) (a>b ? a>c ? a : c: b>c ? b : c) int main() { int x; x = MAX(3+2, 2+7, 3+7); printf("%d\n", x); return 0; }





23231. Point out the error in the program #include<stdio.h> #define SI(p, n, r) float si; si=pnr/100; int main() { float p=2500, r=3.5; int n=3; SI(p, n, r); SI(1500, 2, 2.5); return 0; }





23232. Point out the error in the program #include<stdio.h> int main() { int i; #if A printf("Enter any number:"); scanf("%d", &i); #elif B printf("The number is odd"); return 0; }





23233. Which of the following are correct preprocessor directives in C? 1: #ifdef 2: #if 3: #elif 4: #undef





23234. Which of the following are correctly formed #define statements in C?





23235. If the file to be included doesn't exist, the preprocessor flashes an error message.



23236. Preprocessor directive #undef can be used only on a macro that has been #define earlier



23237. There exists a way to prevent the same file from getting #included twice in the same program.



23238. A preprocessor directive is a message from programmer to the preprocessor.



23239. Macro calls and function calls work exactly similarly.



23240. A macro must always be defined in capital letters.



23241. Macros have a local scope.



23242. Every C program will contain at least one preprocessor directive.



23243. Preprocessor directive #ifdef .. #else ... #endif is used for conditional compilation.



23244. Macros with arguments are allowed



23245. In a macro call the control is passed to the macro.



23246. A header file contains macros, structure declaration and function prototypes.



23247. The preprocessor can trap simple errors like missing declarations, nested comments or mismatch of braces.



23248. A preprocessor directive is a message from compiler to a linker.



23249. Once preprocessing is over and the program is sent for the compilation the macros are removed from the expanded source code.



23250. Will the program compile successfully? #include<stdio.h> #define X (4+Y) #define Y (X+3) int main() { printf("%d\n", 4X+2); 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