Answer:
There needs to be an odd number of 1 bits
Explanation:
In memory, parity checking method is used to test the memory. There are two parity conditions. Either the parity is even or the parity is odd.
Odd parity means, number of 1's in eight bits of data. If the number 1's are odd it means parity is odd. In case of the memory testing result the parity should be odd.
So, In case of Parity of RAM, the parity should be odd, if the data is stored in the RAM.
Answer:
I'm not 100% on the answers . . .
Explanation:
1. A, 2. C, 3. D, 4. A, 5. D, 6. A & B, 7. False, 8. D, 9. D, 10. D
Answer:
def replace_at_index(str, number):
new = str.replace(str[number], "-")
return new
print(replace_at_index("eggplant", 3))
Explanation:
- Create a function called <em>replace_at_index</em> that takes a string and an integer
- Initialize a new variable called <em>new</em>, that will hold the new string
- Replace the character at given index with dash using <em>replace</em> function, it takes two parameters: the first is the character we want to replace, the second is the new character.
- Return the new string
- Call the function with the required inputs
Answer:
See explaination
Explanation:
//Array to store prices
INT PRICE[10][10]
//Loop through 2d array
FOR I FROM 0 TO 10
FOR J FROM 0 TO 10
//Populate a random int
PRICE[I][J] = RANDOM_INT(99,1999)
PRINT(PRICE[I][J]+" ")
PRINT()
//Prompt user for desired price
COST = READ_INPUT('Please enter your desired flight price: ')
//Variable to store if a match is found
MATCH = FALSE
//Loop through all ints in price
FOR I FROM 0 TO 10
FOR J FROM 0 TO 10
//Compare price with Cost
IF PRICE[I][J]==COST
MATCH = TRUE
BREAK
//Check if match is true
IF MATCH = TRUE
PRINT('A flight was found for that price, have a safe trip!')
ELSE
PRINT('No flight was found for that price, please try a new price.')