Answer:
Nanosecond
Explanation:
Nanosecond is used for measuring DIMM read and write times.
Answer:
arr = []
for i in range(10):
x = int(input("Enter a number: "))
arr.append(x)
arr.reverse()
for n in arr:
print(str(n), end=" ")
Explanation:
Initialize an array
Create a for loop to fill the array with user input
Inside the loop, ask the user for the numbers and put them in the array
When the loop is done, reverse the array using reverse function
Create another for loop to print the numbers with space between them
011110 is the following base 10 & base 2 numbers in signed magnitude, one’s complement and two’s complement.
c)011110
<u>Explanation:</u>
Converting 10 base signed number as two complements. In computer signed is maintain in registered.
But computer needs all values in bits. In hardware it is considered as on or off methods. ASCII values are converted into bits and executed by CPU.
All values which been entered in computer are taken respective ASCII values and converted to bits. Normally sign symbol are maintained as registered flag which can be know if end user knows assembly programming languages.
Assembly language by which direct interacted with machine languages and faster in executions.
Solution :
check_palindrome
lower__string string_lower()
Let stack = new Stack()
Let queue = new Queue();
for each character c in lower_case_string:
stack.push(c);
queue.enqueue(c);
let isPalindrome = true;
while queue is not empty {
if (queue.remove().equals(stack.pop())) {
continue;
} else {
isPalindrome=false;
break while loop;
}
}
return isPalindrome
Input = aabb
output = true
input =abcd
output = false