A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. A Program contains the following declarations and initial assignments:

int i = 8, j = 5;
double x = 0.005, y = –0.01;
char c=’c’, d=’d’;

Determine the value of the following expressions which involve the use of library functions:

abs(i-2*j) ; log(exp(x)) ; toupper(d)
a. 2; 0.005; D
b. 1; 0.005; D
c. 2; 0.005; E
d. 1; 0.005; e
Answer:2; 0.005; D
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: