Declaration and Initialization on C related Questions and Answers

Question 1 : Which of the following special symbol allowed in a variable name?
1. * (asterisk)
2. | (pipeline)
3. = - (hyphen)
4. _ (underscore)
View Answer   Discuss with Members

Question 2 : When we mention the prototype of a function?
1. Defining
2. Declaring
3. Prototyping
4. Calling
View Answer   Discuss with Members

Question 3 : Is the following statement a declaration or definition?
extern int i;
1. Declaratio
2. Definition
3. Function
4. Error
View Answer   Discuss with Members

Question 4 : By default a real number is treated as a
1. float
2. double
3. long double
4. far double
View Answer   Discuss with Members

Question 5 : How would you round off a value from 1.66 to 2.0?
1. ceil(1.66)
2. floor(1.66)
3. roundup(1.66)
4. roundto(1.66)
View Answer   Discuss with Members

Question 7 : Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
1. rem = 3.14 % 2.1;
2. rem = modf(3.14, 2.1);
3. rem = fmod(3.14, 2.1);
4. Remainder cannot be obtain in floating point division.
View Answer   Discuss with Members


View 1 - 7 of 7 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter