Programming MCQS - QUESTION DETAILS

What is the output of System.out.println(Math.floor(7.8));?
A. 7
B. 8
C. 7.8
D. 8.0

'Math.floor(7.8)' returns the largest integer less than or equal to 7.8, which is 7.0.

Similar Questions

What is the purpose of the 'getch' function in C?






How do you declare a dynamic array in C?






What is the purpose of the 'strcmp' function in C?






How do you define a multi-line macro in C?






How do you declare a function pointer in C?






Which of the following is not a bitwise operator in C?






What is the purpose of the 'memcpy' function in C?






What is the purpose of the 'fflush' function in C?






What is the role of the 'auto' keyword in C?






What is the output of printf("%d", 1 == 1 ? 10 : 20);?