UGC NET CS 2007 June-Paper-2
October 13, 2023Algorithms
October 13, 2023UGC 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 :
are always filled with zeros
|
|
are always filled with ones
|
|
are filled with zeros or ones and is machine dependent
|
|
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.
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.
Example:
Input: positive number→ It will filled with zeros
Input: Negative number → it will filled with ones
Option-C is more appropriate answer.
Subscribe
Login
0 Comments