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

Q481.
If a variable can take only integral values from 0 to n. where n is a constant integer, then the variable can be represented as a bit-field whose width is the integral part of (the log in the answers arc to the base 2)
Discuss
Answer: (a).log (n) + 1
Discuss
Answer: (c).anywhere, but starting on a new line
Discuss
Answer: (a).int < unsigned < float < double
Q484.
What is the correct way to round offx, a float, to an int value?
Discuss
Answer: (a).y=(int)(x+0.5)
Q485.
By default, any real number in 'C' is treated as
Discuss
Answer: (b).A double
Q486.
To print out a and b given below, which printf() statement would you use?

float a = 3.14;
double b = 3.14;
Discuss
Answer: (a).printf("%f%f",a,b);
Q487.
When a variable of data type double is converted into float, then
Discuss
Answer: (a).Rounding takes place
Q488.
The library function sqrt operates on a double precision argument. If, i is an integer variable, then which of the following calls would correctly compute sqrt(i)?
Discuss
Answer: (a).sqrt((double)i)
Q489.
The statement 

  printf( " % f ", ( float )9/5) ;

prints
Discuss
Answer: (a).1.8
Q490.
The declaration

enum cities{ bethlehem, jericho, nazareth = 1, jerusalem }

assigns the value 1 to
Discuss
Answer: (d).jericho and nazareth

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!