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

Explore more Topics under C Programming

Discuss
Answer: (d).float a = 3.14; a = a%3;
Q292.
Which of the following correctly represents a long double constant?
Discuss
Answer: (b).6.68L
Q293.
Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1
Discuss
Answer: (a).* / % + - =
Q294.
Which of the following correctly shows the hierarchy of arithmetic operations in C?
Discuss
Answer: (d)./ * + -
Q295.
Which of the following is the correct usage of conditional operators used in C?
Discuss
Answer: (c).max = a>b ? a>c?a:c:b>c?b:c
Q296.
Which of the following is the correct order if calling functions in the below code?
a = f1(23, 14) * f2(12/4) + f3();
Discuss
Answer: (c).Order may vary from compiler to compiler
Q297.

Which of the following are unary operators in C?
1. !
2. sizeof
3. ~
4. &&
Discuss
Answer: (d).1, 2, 3
Q298.
In which order do the following gets evaluated

1. Relational
2. Arithmetic
3. Logical
4. Assignment
Discuss
Answer: (a).2134
Q299.
What will be the output of the program?
#include<stdio.h>
int main()
{
    int i=-3, j=2, k=0, m;
    m = ++i && ++j && ++k;
    printf("%d, %d, %d, %d\n", i, j, k, m);
    return 0;
}
Discuss
Answer: (a).-2, 3, 1, 1
Q300.
Assuming, integer is 2 byte, What will be the output of the program?
#include<stdio.h>

int main()
{
    printf("%x\n", -2<<2);
    return 0;
}
Discuss
Answer: (c).fff8

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!