Question
int x = 1;
x = x << 7;
x = x >> 7;
a.
1
b.
-1
c.
127
d.
Implementation defined
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the value of the following 8-bit integer after all statements are executed?
Similar Questions
Discover Related MCQs
Q. Which of these expressions will make the rightmost set bit zero in an input integer x?
View solution
Q. Which of these expressions will isolate the rightmost set bit?
View solution
Q. 0946, 786427373824, ‘x’ and 0X2f are _____ _____ ____ and _____ literals respectively.
View solution
Q. Which of the following is not one of the sizes of the floating point types?
View solution
Q. Which of the following is a valid floating point literal?
View solution
Q. What is the range of the floating point numbers?
View solution
Q. Which of three sizes of floating point types should be used when extended precision is required?
View solution
Q. Which is used to indicate single precision value?
View solution
Q. The size of an object or a type can be determined using which operator?
View solution
Q. It is guaranteed that a ____ has atleast 8bits and a ____ has atleast 16 bits.
View solution
Q. Implementation dependent aspects about an implementation can be found in ____
View solution
Q. Size of C++ objects are expressed in terms of multiples of the size of a ____ and the size of a char is _______
View solution
Q. Identify the incorrect option.
View solution
Q. Which of the following will not return a value?
View solution
Q. ____ have the return type void?
View solution
Q. What does the following statement mean?
void a;
View solution
Q. Choose the incorrect option
View solution
Q. Identify the incorrect option.
View solution
Q. In which type does the enumerators are stored by the compiler?
View solution
Q. To which of these enumerators can be assigned?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!