Data Types


  1. Modulus for float could be achieved by?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    fmod(p, q);


  1. Which data type is suitable for storing a number like?
    25.00002500025











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    double



  1. Which of the following % operation is invalid?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Both 2 % 4f; and 2 % 4l;


  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    float fl = 15.621212121212;
    printf("%f", fl);
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    15.621212



  1. What is the range of a signed char variable in C?









  1. View Hint View Answer Discuss in Forum

    char is a single byte variable. Signed char would include negative numbers as well

    Correct Option: B

    range of signed char variable is -128 to 127 because it is 1 byte long.
    2 to the power 8 is 256, range included 256 numbers, as it is signed, include negative integers starting from -128 to 127.