WRITTEN IN C# - VISUAL STUDIO WRITTEN IN C# - VISUAL STUDIO 1. (Bitwise Operator
ID: 3727227 • Letter: W
Question
WRITTEN IN C# - VISUAL STUDIO
WRITTEN IN C# - VISUAL STUDIO
1. (Bitwise Operator) Write down the answer of each operation below: (20 points) (1) assume that the value of var1 in binary is var1- 00010111. Write down the value of var1. (2) assume that the value of var1 in binary is var1-00010111. Write down the value of var14 (4) assume that the value of var1 in binary is var1 00010111, and the value of var2 in binary is var2 00100010. Write down the value of C&D; (5) assume that the value of var1 in binary is var1 00010111, and the value of var2 in binary is var2-00100010. Write down the value of CID Note: You should finish this problem by hand.Explanation / Answer
Ans 1. Output -23 (in decimal) 11101001 (in binary)
Ans 2. Output 184 (in decimal) 10111000 (in binary)
Ans 3. Output 1 (in decimal) 00000001 (in binary)
Ans 4. Output 2 (in decimal) 00000010 (in binary)
Ans 5. Output 55 (in decimal) 00110111 (in binary)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.