C Data Types 1 Questions and Answers
C Data Types questions with answers help learners understand how data is stored, manipulated, and used in C programming. Data types form the foundation of C as they define the type of data a variable can hold, such as int, float, char, or double. Mastering C data types is essential for students preparing for placement exams or programming interviews at companies like TCS, Infosys, and Wipro. This topic often features in C programming MCQs and technical test questions that evaluate understanding of memory allocation, data precision, and type conversions. Practice these programming questions and answers to strengthen your core knowledge and prepare for real-world coding challenges.
C Data Types 1
Showing 10 of
50 questions
1. What is the size of "int" data type in C typically on a 32-bit system?
- 2 bytes
- 4 bytes
- 8 bytes
- Depends on compiler
2. Which data type is used to store a single character in C?
- char
- string
- character
- chr
3. What is the range of values for "signed char" data type?
- -128 to 127
- 0 to 255
- -256 to 255
- 0 to 127
4. Which modifier is used to create a constant variable in C?
- const
- constant
- final
- readonly
5. What is the size of "double" data type in C?
- 4 bytes
- 8 bytes
- 10 bytes
- 16 bytes
6. Which data type is suitable for storing true/false values in C?
- bool
- boolean
- int
- flag
9. What is the default value of an uninitialized local variable in C?
- 0
- NULL
- Garbage value
- 1
10. Which data type is used to store whole numbers without decimal points?
- float
- double
- int
- char