Home > Engineering> Computer Science & Engineering

1 . Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
A. rem = 3.14 % 2.1;
B. rem = modf(3.14, 2.1);
C. rem = fmod(3.14, 2.1);
D. Remainder cannot be obtain in floating point division.

2 . What are the types of linkages?
A. Internal and External
B.
External, Internal and None
C. External and None
D. Internal

3 . Which of the following special symbol allowed in a variable name?
A. * (asterisk)
B. | (pipeline)
C. - (hyphen)
D. _ (underscore)

4 . How would you round off a value from 1.66 to 2.0?
A. ceil(1.66)
B. floor(1.66)
C. roundup(1.66)
D. roundto(1.66)

5 . By default a real number is treated as a
A. float
B. double
C. long double
D. far double




Loading...

TET

Education