Quiz
C Quiz
Questions in this quiz (3)
1Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
- Arem = 3.14 % 2.1;
- Brem = modf(3.14, 2.1);
- Crem = fmod(3.14, 2.1);
- DRemainder cannot be obtain in floating point division.
2Which of the following special symbol allowed in a variable name?
- A* (asterisk)
- B| (pipeline)
- C- (hyphen)
- D_ (underscore)
3What is the output of the program ?
#include<stdio.h>
int main()
{
int x = 10, y = 20, z = 5, i;
i = x < y < z;
printf("%d\n", i);
return 0;
}- A0
- B1
- CError
- DNone of these
Information
- Description
- UNIT 1 Basic Concepts
- Author
- prema ravishankar
- Language
- English
- Views
- 18
- Tags
- Rating
- No ratings yet Rate this quiz