Answer:
1100 ; 11000 ; 110000 ; 1100000
Explanation:
Converting the following decimals to binary :
2__12
2__6 r 0
2__3 r 0
2__1 r 1
___0 r 1
12 = 1100 base 2
2.)
2__24
2__12 r 0
2__6 r 0
2__3 r 0
2__1 r 1
___0 r 1
24 = 11000 base 2
2__48
2__24 r 0
2__12 r 0
2__6 r 0
2__3 r 0
2__1 r 1
___0 r 1
48 = 110000 base 2
2__96
2__48 r 0
2__24 r 0
2__12 r 0
2__6 r 0
2__3 r 0
2__1 r 1
___0 r 1
96 = 1100000 base 2
Draw a text box and enter text
Answer:
- public class Main {
-
- public static void main (String [] args) {
- int[][] myArray = {{1,5,6}, {7, 9, 2}};
- fixArray(myArray, 1, 2, 12);
-
- System.out.println(myArray[1][2]);
- }
-
-
- private static void fixArray(int[][] array, int row, int col, int value){
- array[row][col] = value;
- }
- }
Explanation:
The solution code is written in Java.
Firstly, create the method fixArray with that takes four inputs, array, row, col and value (Line 11). Within the method body, use row and col as index to address a particular element from array and set the input value to it (Line 12).
Next, we test the method in the main program using a sample array (Line 4) and we try to change the row-1 and col-2 element from 2 to 12 (Line 5).
The print statement in Line 7 will display 12 in console.
Answer: (B) Symmetric key encryption
Explanation:
The symmetric key encryption is the computerize cryptography form that are used to show an electronic message by using the key the singular encryption. It is basically used in various mathematical algorithm for the purpose of data conversion.
In the symmetric key encryption, the computer system contain the secret key which is basically used to send the encrypt information in the form of packet over the network from one computer to another.
Therefore, Option (B) is correct.