adplus-dvertising

Welcome to the Data Types,Operators and Expressions in C MCQs Page

Dive deep into the fascinating world of Data Types,Operators and Expressions in C with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Data Types,Operators and Expressions in C, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Data Types,Operators and Expressions in C, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within C Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Data Types,Operators and Expressions in C. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of C Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Data Types,Operators and Expressions in C. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Data Types,Operators and Expressions in C MCQs | Page 61 of 66

Q601.
Choose a right statement.
int var = 3.5;
Discuss
Answer: (b).a = 3
Q602.
Choose a right statement.
int main()
{
    int var = 3.5;;
    printf("%f", var);

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

    return 0;
}
Discuss
Answer: (c).5
Discuss
Answer: (a).Only int variables = Okay
Q605.
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;
}
Discuss
Answer: (c).-5 -5 5
Q606.
What is the output of the program?
int main()
{
    float a = 45;
    printf("%f", a);

    return 0;
}
Discuss
Answer: (c).45.000000
Q607.
What is the priority of operators *, / and % in C language?
Discuss
Answer: (d).All three operators *, / and % are same.
Q608.
In C language, which Operator group has more priority between (*, / and %) and (+, -) groups?
Discuss
Answer: (c).(+, -) < (*, / and %)
Discuss
Answer: (a).Operators *, / and % have Left to Right Associativity. Operators + and - have Left to Right Associativity. Operator = has Right to Left Associativitiy.
Q610.
What is the Priority among (*, /, %), (+, -) and (=) C Operators?
Discuss
Answer: (c).(*, /, %) > (+, -) >(=)

Suggested Topics

Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!