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

8751. Maruti view Tata Motors as prominent competitor but does not view Volvo as a competitor. This type of competition in the market is known as—





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





8753. If an unsigned int is 2 bytes wide then, What will be the output of the program ? #include<stdio.h> int main() { unsigned int m = 32; printf("%x\n", ~m); return 0; }





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





8755. If an unsigned int is 2 bytes wide then, What will be the output of the program ? #include<stdio.h> int main() { unsigned int a=0xffff; ~a; printf("%x\n", a); return 0; }





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





8757. What will be the output of the program? #include<stdio.h> int main() { printf("%d >> %d %d >> %d\n", 4 >> 1, 8 >> 1); return 0; }





8758. What will be the output of the program? #include<stdio.h> int main() { char c=48; int i, mask=01; for(i=1; i<=5; i++) { printf("%c", c|mask); mask = mask<<1; } return 0; }





8759. What will be the output of the program? #define P printf("%d\n", -1^~0); #define M(P) int main()\ {\ P\ return 0;\ } M(P)





8760. What will be the output of the program ? #include<stdio.h> int main() { int i=32, j=0x20, k, l, m; k=i|j; l=i&j; m=k^l; printf("%d, %d, %d, %d, %d\n", i, j, k, l, m); return 0; }





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





8762. What will be the output of the program? #include<stdio.h> int main() { unsigned int res; res = (64 >>(2+1-2)) & (~(1<<2)); printf("%d\n", res); return 0; }





8763. What will be the output of the program ? #include<stdio.h> int main() { int i=4, j=8; printf("%d, %d, %d\n", i|j&j|i, i|j&&j|i, i^j); return 0; }





8764. Which of the following statements are correct about the program? #include<stdio.h> int main() { unsigned int num; int i; scanf("%u", &num); for(i=0; i<16; i++) { printf("%d", (num<<i & 1<<15)?1:0); } return 0; }





8765. Which of the following statements are correct about the program? #include<stdio.h> int main() { unsigned int num; int c=0; scanf("%u", &num); for(;num;num>>=1) { if(num & 1) c++; } printf("%d", c); return 0; }





8766. Which of the following statements are correct about the program? #include<stdio.h> char fun(unsigned int num, int base); int main() { char s; s=fun(128, 2); s=fun(128, 16); printf("%s\n",s); return 0; } char fun(unsigned int num, int base) { static char buff[33]; char ptr = &buff[sizeof(buff)-1]; ptr = '\0'; do { --ptr = "0123456789abcdef"[num %base]; num /=base; }while(num!=0); return ptr; }





8767. Which of the following statements are correct about the program? #include<stdio.h> int main() { unsigned int m[] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}; unsigned char n, i; scanf("%d", &n); for(i=0; i<=7; i++) { if(n & m[i]) printf("yes"); } return 0; }





8768. Left shifting a number by 1 is always equivalent to multiplying it by 2.



8769. In the statement expression1 >> expression2. if expression1 is a signed integer with its leftmost bit set to 1 then on right shifting it the result of the statement will vary from computer to computer



8770. Bitwise & and | are unary operators



8771. Bitwise & can be used to check if more than one bit in a number is on.



8772. Bitwise & can be used to check if a bit in number is set or not.



8773. Bitwise & can be used to divide a number by powers of 2



8774. Left shifting an unsigned int or char by 1 is always equivalent to multiplying it by 2.



8775. On left shifting, the bits from the left are rotated and brought to the right and accommodated where there is empty space on the right?



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



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



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



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



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



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



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



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





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





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





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





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





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





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





8790. Oil of winter green is





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





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





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





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





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





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





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




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





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





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





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