...
UGC NET CS 2007 June-Paper-2
October 13, 2023
Algorithms
October 13, 2023
UGC NET CS 2007 June-Paper-2
October 13, 2023
Algorithms
October 13, 2023

UGC NET CS 2007 June-Paper-2

Question 12
In case of right shift bitwise operator in ‘C’ language, after shifting n bits, the leftmost n bits :
A
are always filled with zeros
B
are always filled with ones
C
are filled with zeros or ones and is machine dependent
D
none of the above
Question 12 Explanation: 
In case of right shift bitwise operator in ‘C’ language, after shifting n bits, the leftmost n bits are filled with zeros or ones and is machine dependent.
Example:
Input: positive number→ It will filled with zeros
Input: Negative number → it will filled with ones
Option-C is more appropriate answer.
Correct Answer: C
Question 12 Explanation: 
In case of right shift bitwise operator in ‘C’ language, after shifting n bits, the leftmost n bits are filled with zeros or ones and is machine dependent.
Example:
Input: positive number→ It will filled with zeros
Input: Negative number → it will filled with ones
Option-C is more appropriate answer.

Leave a Reply

Your email address will not be published. Required fields are marked *