TOTAL QS = 20Time [ 00 : 00 : 00 ]
00:00:00

C Programming Basics Tutorial - Arithmetic Operators Online Test 1

Instructions

Total Questions: 20

Total Minutes: 20

This ExamTray Free Online Exam tests your C Programming Skills on C Arithmetic Operators, Precedence, Hierarchy, Associativity and displays Questions and Answers after finishing the exam. You can easily clear Competitive Exams and Job Interview Questions after attending this exam.

Go through C Theory Notes on Arithmetic Operators before attempting this test.

All the Best

Challenge SCORE

0 / 20

Take This Exam
1) Choose a correct statement.
int a = 12 + 3 * 5 / 4 - 10
2) Operator % in C Language is called.?
3) Output of an arithmetic expression with integers and real numbers is ___ by default.?
4) Choose a right statement.
int a = 10 + 4.867;
5) Choose a right statement.
int a = 3.5 + 4.5;
6) Choose a right statement.
float var = 3.5 + 4.5;
7) Choose right statement.
int main()
{
    float c = 3.5 + 4.5;
    printf("%f", c);

    return 0;
}
8) Choose a right statement.
int main()
{
    float c = 3.5 + 4.5;
    printf("%d", (int)c);

    return 0;
}
9) Choose a right statement.
int a = 5/2;
int b = 5.0/2;
int c = 5 / 2.0;
int d = 5.0/2.0;
10) Choose a right statement.
float a = 5/2;
float b = 5/2.0;
float c = 5.0/2;
float d = 5.0/2.0;
11) If both numerator and denominator of a division operation in C language are integers, then we get.?
12) Choose a right statement.
int var = 3.5;
13) Choose a right statement.
int main()
{
    int var = 3.5;;
    printf("%f", var);

    return 0;
}
14) What is the output of the program.?
int main()
{
    int a = 25%10;
    printf("%d", a);

    return 0;
}
15) Can you use C Modulo Division operator % with float and int?
16) What is the output of the C program with Modulo Division operator with - or Negative numbers.?
int main()
{
    int a = -25%-10;
    int b = -25%10;
    int c = 25%-10;
    
    printf("%d %d %d", a, b, c);

    return 0;
}
17) What is the output of the program.?
int main()
{
    float a = 45;
    printf("%f", a);

    return 0;
}
18) What is the priority of operators *, / and % in C language.?
19) In C language, which Operator group has more priority between (*, / and %) and (+, -) groups.?
20) Associativity of C Operators *, /, %, +, - and = is.?
Certification Group ID
3858

Open Certification Helper Popup Reset Popup