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 7 of 66

Q61.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int y = 3;
        int x = 5 % 2 * 3 / 2;
        printf("Value of x is %d", x);
    }
Discuss
Answer: (a).Value of x is 1
Q62.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int a = 3;
        int b = ++a + a++ + --a;
        printf("Value of b is %d", b);
    }
Discuss
Answer: (d).Undefined behaviour
Q63.
The precedence of arithmetic operators is (from highest to lowest)
Discuss
Answer: (a).%, *, /, +, –
Q64.
Which of the following is not an arithmetic operation?
Discuss
Answer: (c).a != 10;
Q65.
Which of the following data type will throw an error on modulus operation(%)?
Discuss
Answer: (d).float
Q66.
Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?
Discuss
Answer: (a).+, –
Q67.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        int a = 10;
        double b = 5.6;
        int c;
        c = a + b;
        printf("%d", c);
    }
Discuss
Answer: (a).15
Q68.
What is the output of this C code?
#include <stdio.h>
    int main()
    {
        int a = 10, b = 5, c = 5;
        int d;
        d = a == (b + c);
        printf("%d", d);
    }
Discuss
Answer: (b).1
Q69.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int x = 1, y = 0, z = 5;
        int a = x && y || z++;
        printf("%d", z);
    }
Discuss
Answer: (a).6
Q70.
What is the output of this C code?
#include <stdio.h>
    void main()
    {
        int x = 1, y = 0, z = 5;
        int a = x && y && z++;
        printf("%d", z);
    }
Discuss
Answer: (b).5

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!