GoConqr has a new look! Let us know what you think.

Quiz

C Quiz

prema ravishankar 3 questions

Take the quiz

Questions in this quiz (3)

  1. 1Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
    1. Arem = 3.14 % 2.1;
    2. Brem = modf(3.14, 2.1);
    3. Crem = fmod(3.14, 2.1);
    4. DRemainder cannot be obtain in floating point division.
  2. 2Which of the following special symbol allowed in a variable name?
    1. A* (asterisk)
    2. B| (pipeline)
    3. C- (hyphen)
    4. D_ (underscore)
  3. 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;
    }
    1. A0
    2. B1
    3. CError
    4. DNone of these

Information

Description
UNIT 1 Basic Concepts
Language
English
Views
18
Tags
c programmingquiz
Rating
No ratings yet
Rate this quiz
Rate this quiz

More on C Programming Basics

Feedback

What is it about?

What do you think of the new look?

How do you like it?