14. Which expression has a value equal to the leftmost digit of the integer g = 68197?

Answer: C

Explanation:

The leftmost digit of the integer g = 68197 is 6.

To find the leftmost digit of the integer g, we can observe that g = 68197, and the leftmost digit is 6. The expression that calculates the leftmost digit correctly is g / 10000, which gives us 6 when g is divided by 10000.

A) g / 100000

This expression evaluates to 0.68197, which does not correspond to the leftmost digit of g. Dividing by 100000 shifts the decimal point too far left and does not yield the desired result.

B) g / 1000

This expression results in 68.197, which still does not reflect the leftmost digit of g. While it provides the first two digits, it does not isolate the leftmost digit accurately.

C) g / 10000

This expression correctly evaluates to 6.8197, which indicates that the leftmost digit of g is 6. By dividing by 10000, we effectively isolate the leftmost digit, confirming this as the correct option.

D) g % 100

This expression calculates the remainder of g when divided by 100, resulting in 97. This value does not represent the leftmost digit of g and, therefore, is incorrect in this context.

Conclusion

The expression g / 10000 accurately isolates the leftmost digit of the integer g = 68197, which is 6. Other options either provide incorrect values or do not capture the leftmost digit, thus confirming that option C is the only correct choice.