Hey there!
The operating system that functions from typing commands is called a Command–Line–Based OS. Examples of this type of OS include UNIX and MS–DOS made by Microsoft. These features white or green text on a black screen and were primarily meant for professionals who had to learn lots of commands rather than everyday users.
Hope this helped you out! :-)
Answer:
3
Explanation:
We can split the expression into two sections
First Section:
7 // 2 = 3. Using the floor division we only utilize the integer part.
Second Section:
10 % 2**4 = 0**4 = 0
Bringing back the full version expression we have
3 + 0 = 3
The question given is incomplete and by finding it on internet i found the complete question as follows:
Direct Mapped Cache.
Memory is byte addressable
Fill in the missing fields based upon the properties of a direct-mapped cache. Click on "Select" to access the list of possible answers Main Memory Size Cache Size Block Size Number of Tag Bits 3 1) 16 KiB 128 KiB 256 B 20 2) 32 GiB 32 KiB 1 KiB 3) 64 MiB 512 KiB 1 KiB Select] 4 KiB 4) 16 GiB 10 Select ] Select ] 5) 10 64 MiB [ Select ] 6) Select] 512 KiB 7
For convenience, the table form of the question is attached in the image below.
Answers of blanks:
1. 3 bits
2. 20 bits
3. 64 MB
4. 16 MB
5. 64 KB
6. 64 MB
Explanation:
Following is the solution for question step-by-step:
<u>Part 1:</u>
No. of Tag bits = No. of bits to represent
Tag bits = Main memory - cache size bits -------- (A)
Given:
Main memory = 128 KB = 
Cache Memory = 16 KB = 
Putting values in A:
Tag bits = 17 - 14 = 3 bits
<u>Part 2:</u>
Tag bits = Main memory - cache size bits -------- (A)
Given:
Main memory = 32 GB = 
Cache Memory = 16 KB = 
Putting values in A:
Tag bits = 35 - 15 = 20 bits
<u>Part 3:</u>
Given:
Tag bits = 7
Cache Memory = 512 KB = 
So from equation A
7 = Main Memory size - 19
Main Memory = 7 + 19
Main memory = 26
OR
Main Memory = 
<u>Part 4:</u>
Given that:
Main Memory Size = 
Tag bits = 10
Cache Memory Bits = 34 - 10 = 24
Cache Memory Size = 
<u>Part 5:</u>
Given that:
Main Memory Size = 64 MB = 
Tag bits = 10
Cache Memory Bits = 26 - 10 = 16
Cache Memory Size = 
<u>Part 6:</u>
Cache Memory = 512 KB = 
Tag Bits = 7
Main Memory Bits = 19 + 7 = 26
Main Memory size = 
i hope it will help you!
Answer:
<h2>YEET B </h2>
Explanation:
Sorry
Its B: a type of what-if analysis that allows a user to define multiple variables for multiple functions or formulas
(i think)
Answer:
Following are code of factorial in python language
def factorial(n): # function
result=1 #variable
for x in range(2,n+1): #iterating the loop
result=result*x #storing result
return result #return result
for n in range(10): #iterating loop
print(n,factorial(n)) #print factorial
Output:
Following are the attachment of output
Explanation:
Missing information :
In the question the information is missing the code is missing which we have to correct it following are the code that are mention below.
def factorial(n): # function
result=1 #variable
for x in range( ): #iterating the loop
result= #storing result
return #return result
for n in range( ): #iterating loop
print(n,factorial(n)) #print factorial
Following are the description of code
- We have create a function factorial in this we have pass the one parameter i.e "n".
- In the for loop we have pass 2,n+1 which has been used to iterating the loop calculating factorial and string the result in the result variable
- In the main function we have pass the range on which we have to calculated the factorial
- Finally the print function will print the factorial .
Following are the attachment snip of code in the python language