Operators


  1. Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    +, –


  1. Which of the following data type will throw an error on modulus operation(%)?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    float



  1. Which of the following is not an arithmetic operation?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    a != 10;


  1. What is the precedence of arithmetic operators (from highest to lowest)?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    %, *, /, +, –



  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int p = 5;
    int q = ++p + p++ + --p;
    printf("Value of q is %d", q);
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Value of q is 19