Sarkari Exam Quiz
Menu mobile
Home
GK Today
Exams
Subject
Downloads
Notes
Report Bug
Qus: Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
Qus 3.14 को 2.1 से विभाजित करने के बाद शेष प्राप्त करने के लिए निम्नलिखित में से किस कथन का उपयोग किया जाना चाहिए?
A. rem = 3.14 % 2.1;
B. rem = modf(3.14, 2.1);
C. rem = fmod(3.14, 2.1);
D. शेष बिंदु फ्लोटिंग पॉइंट डिवीजन में प्राप्त नहीं किया जा सकता है।
Solution
C. rem = fmod(3.14, 2.1);
Explanation
fmod(x,y) - Calculates x modulo y, the remainder of x/y. This function is the same as the modulus operator. But fmod() performs floating point divisions.
CCC Online Test , CCC MCQ
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
career counselling in allahabad
Website development Company in Allahabad