Answer:
an error message
Explanation:
The return value is the value which is sent back by the function to a place in the code from where the
was called from. Its main work is to return a value form the function.
In the context, the form of "(symbol-length? 'James)" in Scheme will return the value --- ' an error message'.
Answer:
listNumbers = [34,56,23,56,78,89,98,45,34,33,25,26,67,78]
listString = [ ]
for i in range(14):
if listNumbers[i]%2!=0 and listNumbers[i]%5==0:
listString.append("five odd")
elif listNumbers[i]%5==0 and listNumbers[i]%2==0:
listString.append("five even")
elif listNumbers[i]%2==0:
listString.append("even")
elif listNumbers[i]%2!=0:
listString.append("odd")
print(listNumbers)
print(listString)
Explanation:
In python programming language;
- Create two lists
- The first is a list of numbers and initialize it with random values: listNumbers = [34,56,23,56,78,89,98,45,34,33,25,26,67,78]
- The second list is empty and will hold the string values listString = [ ]
- Use a for loop to iterate over all the elementts in the list of numbers
- Use the modulo operator (%) to chech for multiples of particular numbers as stipulated by the question
- Use combination of if/elif statements for each condition
- Use the .append method to add the elements into the list of strings
- finially output both lists
See attached code and output
Answer:
When you put a 0 on the right side of a binary number it multiplies it by 2
Explanation:
Answer:
64 terabytes
Explanation:
Given data:
Size of the disk block = 8 KB
Size required by the pointer to a disk block = 4 bytes
Now,
Size required by 12 direct disk blocks = 12 × 8
Size required by single disk block = 2048 × 8 KB
Size required by double disk block = 2048 × 2048 × 8 KB
size required by triple disk block = 2048 × 2048 × 2048 × 8 KB
Now,
the maximum size of the file that can be stored in the this file system = 12 × 8 + 2048 × 8 KB + 2048 × 2048 × 8 KB + 2048 × 2048 × 2048 × 8 KB = 64 terabytes
Answer:
Taj Mahal
Explanation:
The Taj Mahal is best described in the book; World Wonders Worn Down by Cody Crane.
Go to Page 14 of the attached pdf document and you'd find the write up by Jeffery Batholet.
Cheers