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

Explore more Topics under C Programming

Q391.
What will you do to treat the constant 3.14 as a long double?
Discuss
Answer: (b).use 3.14L
Q392.
If the binary eauivalent of 5.375 in normalised form is 0100 0000 1010 1100 0000 0000 0000 0000, what will be the output of the program (on intel machine)?
#include<stdio.h>
#include<math.h>
int main()
{
    float a=5.375;
    char *p;
    int i;
    p = (char*)&a;
    for(i=0; i<=3; i++)
        printf("%02x\n", (unsigned char)p[i]);
    return 0;
}
Discuss
Answer: (c).00 00 AC 40
Q393.
Which of the following range is a valid long double (Turbo C in 16 bit DOS OS) ?
Discuss
Answer: (a).3.4E-4932 to 1.1E+4932
Q394.
Which statement will you add in the following program to work it correctly?
#include<stdio.h>
int main()
{
    printf("%f\n", log(36.0));
    return 0;
}
Discuss
Answer: (b).#include<math.h>
Q395.
We want to round off x, a float, to an int value, The correct way to do is
Discuss
Answer: (a).y = (int)(x + 0.5)
Q396.
The binary equivalent of 5.375 is
Discuss
Answer: (b).101.011
Q397.
A float occupies 4 bytes. If the hexadecimal equivalent of these 4 bytes are A, B, C and D, then when this float is stored in memory in which of the following order do these bytes gets stored?
Discuss
Answer: (d).Depends on big endian or little endian architecture
Q398.
What will you do to treat the constant 3.14 as a float?
Discuss
Answer: (b).use 3.14f
Q399.
Which of the following statement obtains the remainder on dividing 5.5 by 1.3 ?
Discuss
Answer: (c).rem = fmod(5.5, 1.3)
Q400.
What will be the output of the program?
#include<stdio.h>
int main()
{
    float a=0.7;
    if(a < 0.7)
        printf("C\n");
    else
        printf("C++\n");
    return 0;
}
Discuss
Answer: (a).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!