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
41. What is the purpose of "auto" storage class?
- Automatic storage
- Static storage
- Global storage
- Register storage
42. Which data type is suitable for storing a student's grade point average?
- int
- char
- float
- double
43. What is the range of "signed int" on a 32-bit system?
- -128 to 127
- 0 to 255
- -32,768 to 32,767
- -2,147,483,648 to 2,147,483,647
44. Which data type is used for storing double precision floating-point numbers?
- float
- double
- long double
- int
45. What is the size of "char" data type?
- 1 byte
- 2 bytes
- 4 bytes
- Depends on system
47. What is the purpose of "static" storage class?
- Preserves value
- Makes variable global
- Increases speed
- Reduces size
48. Which data type would you use for a flag that can be true or false?
- bool
- boolean
- int
- flag
49. What is the range of "unsigned short int"?
- 0 to 255
- 0 to 65,535
- -32,768 to 32,767
- 0 to 4,294,967,295