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

Q271.
Which of the following are unary operators in C ?

1. !
2. sizeof
3. ~
4. &&
Discuss
Answer: (c).1, 2 and 3
Q272.
Arrange the following operators in decreasing order of Operator Precedence.

1. Arithmetic Operator
2. Unary Operator
3. Comparison Operator
4. Shift Operator
Discuss
Answer: (c).2 1 4 3
Q273.
Arithmetic Operator has associtivity from ___________ to ____________.
Discuss
Answer: (b).Left to Right
Q274.
Which of the following is correct use of Conditional Operator ?
Discuss
Answer: (b).max = a>b ? a>c?a:c:b>c?b:c
Q275.
Guess the output of the following code snippet -
#include<stdio.h>
int main()
{
    int i = 10 ,j;
    j = ++i;
    printf("%d, %d", i, j);
    return 0;
}
Discuss
Answer: (b).11 11
Q276.
Guess the output of the following example -
#include<stdio.h>
int main()
{
    int i = 10, j = 10 ,k;
    k = ++i + j++;
    printf("%d, %d, %d", i, j, k);
    return 0;
}
Discuss
Answer: (c).11, 11, 21
Q277.
In which order do the following gets evaluated in C Programming -

1. Relational
2. Arithmetic
3. Logical
4. Assignment
Discuss
Answer: (d).2134
Q278.
Guess the output of the following program -
#include<stdio.h>
int main()
{
    int i = 3 ,j;
    j = i++;
    printf("%d, %d", i, j);
    return 0;
}
Discuss
Answer: (d).4, 3
Q279.
Guess the output of the following expression.
#include<stdio.h>
int main()
{
    int i = -30, j = 20, k = 1, m;
    m = ++i && ++j && --k;
    printf("%d, %d, %d, %d\n", i, j, k, m);
    return 0;
}
Discuss
Answer: (a).-29, 21, 0, 0
Q280.
Local Variable is having _______ scope.
Discuss
Answer: (b).local

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!