MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues
→
Bitwise can be used to generate a random number.
1.
Bitwise can be used to generate a random number.
A.
Yes
B.
No
Answer» C.
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 int main() { unsigned int num; int i; scanf("%u", &num); for(i=0; i
Which of the following statements are correct about the program?_x000D_ #include_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
If an unsigned int is 2 bytes wide then, What will be the output of the program ?_x000D_ #include_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_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_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 int main() { printf("%d %d\n", 32-0); return 0; }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies