Answer:
The result is -63
Explanation:
First, we discover the Binary value of 151 which is 10010111.
1 = most significant bit and it represents the sign as negative.
Two's compliment of 10010111, is calculated by adding 1 to one's compliment. We get 01101001 which is 105 in decimal.
Therefore the value of A (the first part) is -105.
Second, the binary value of 214 = 11010110.
1 = most significant bit and it represents the sign as negative.
Two's compliment of 11010110, is calculated by adding 1 to one's compliment. We get 00101010 which is 42 in decimal.
Therefore, the value of B (the second part) is -42.
Simplify further,
A - B = -105 - (-42)
= -105 + 42
= -63
Therefore, the result is -63,
Consider the following array: Dim numbers(,) As Integer = {{1,2},{3,4},{4,5},{6,7},{8,9}} What row index value would be required
Kipish [7]
Answer:
The answer is "4"
Explanation:
The two-dimensional array or 2D array is the simplest form of the multilateral array. This array can be written as a table, in forms of rows and columns. It also known as an array chart.
declaration of two-dimensional array:
Dim a(,) As Integer = {{4, 0}, {0, 4}, {0, 4}, {4, 0}}//declaring of multi-dimensional array
In the given 2D array code, there we need 4-row index value, as we known array indexing always starts with 0, and in this array, 5 rows is equal to 0 to 4, that's why 4-row index value is the correct answer.