MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues in C Programming
→
Bitwise | can be used to set multiple bits in numb..
1.
Bitwise | can be used to set multiple bits in number.
A.
Yes
B.
No
Answer» B. No
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
If an is 2 bytes wide then, What will be the output of the program ?
Left shifting an or by 1 is always equivalent to multiplying it by 2.
In the statement . if 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
In which numbering system can the binary number be easily converted to?
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; }
Which of the following statements are correct about the program?_x000D_ #include<stdio.h>_x000D_ _x000D_ int main()_x000D_ {_x000D_ unsigned int m[] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};_x000D_ unsigned char n, i;_x000D_ scanf("%d", &n);_x000D_ for(i=0; i<=7; i++)_x000D_ {_x000D_ if(n & m[i])_x000D_ printf("yes");_x000D_ }_x000D_ return 0;_x000D_ }
If an unsigned int is 2 bytes wide then, What will be the output of the program ?_x000D_ #include<stdio.h>_x000D_ _x000D_ int main()_x000D_ {_x000D_ unsigned int m = 32;_x000D_ printf("%x\n", ~m);_x000D_ return 0;_x000D_ }
What will be the output of the program ?_x000D_ #include<stdio.h>_x000D_ _x000D_ int main()_x000D_ {_x000D_ int i=4, j=8;_x000D_ printf("%d, %d, %d\n", i|j&j|i, i|j&&j|i, i^j);_x000D_ return 0;_x000D_ }
What will be the output of the program ?_x000D_ #include<stdio.h>_x000D_ _x000D_ int main()_x000D_ {_x000D_ int i=32, j=0x20, k, l, m;_x000D_ k=i|j;_x000D_ l=i&j;_x000D_ m=k^l;_x000D_ printf("%d, %d, %d, %d, %d\n", i, j, k, l, m);_x000D_ return 0;_x000D_ }
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; }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply