(A) Just because every digit has an equal chance of appearing does not mean that all will be equally represented. (See "gambler's fallacy")
(B) The experimental procedure isn't exactly clear, so assuming a table of digits refers to a table of just one-digit numbers, each with 0.1 chance of appearing (which means you can think of the digits 0-9), you should expect any given digit to appear about 0.1 or 10% of the time.
So if a table consists of 1000 digits, one could expect 7 to appear in 10% of the table, or about 100 times.
The answer to the question is a direct variation. k=2
That is a distance formula I was gonna type it but I didn’t have the symbols so use the picture attached.