Answer:
1. You want to use parameters
2. You don't want your program to run multiple times
3. You want to call that snippet of code throughout your program
hope this helped :D
Answer:
0.127 miles ; 5.458 *10^8 miles
Explanation:
Number of bytes needed to store a page = 2000
Number of pages (Harry Potter's book) = 800
Total memory required to store entire book = (2000 * 800) = 1600000 = 16 * 10^5 bytes
Hence,
1 byte of memory will store : (height of each book / memory size of each book)
= 3 ÷ 16 * 10^5
= 1.875 * 10^-6
For 32 bit memory space :
(1.875 * 10^-6 * 2^32) = 8053.06368 inches
1 inch = 1.578 * 10^-5 mile
8053.06368 inches = 8053.06368 * (1.578 * 10^-5) = 0.1270773448704 miles
= 0.127 miles
For 64 bit memory size :
(1.875 * 10^-6 * (2^64)) = 3.45876 * 10^13 inches
(3.45876 * 10^13) * (1.578 * 10^-5)
= 5.458 *10^8 miles
Answer:
For undirected graph n(n-1) for directed graph 
Explanation:
The maximum number of edges for a undirected graph is given by
, where n is number of vertices
The maximum number of edges in directed graph is given by
, where n is number of vertices
The maximum number of edges is greater in undirected graph than directed graph
It would be either one i belive... but i would choose C if your talking about google
Answer:
The rank of disk capacities in decreasing order is:
1.petabyte,
2.terabyte
3.gigabyte
4.megabyte
5.kilobyte
Explanation:
Petabyte is largest among all and 1 petabyte equal to 1024 terabyte
Kilobyte is smallest among all and 1 kilobyte equal to 1024 byte
1 megabyte is equal to 1024 kilobyte
1 gigabyte is equal to 1024 megabyte
1 terabyte is equal to 1024 gigabyte