C Data Types 1 Questions and Answers

Take Exam

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
Show Answer Report

2. Which data type is used to store a single character in C?

  • char
  • string
  • character
  • chr
Show Answer Report

3. What is the range of values for "signed char" data type?

  • -128 to 127
  • 0 to 255
  • -256 to 255
  • 0 to 127
Show Answer Report

4. Which modifier is used to create a constant variable in C?

  • const
  • constant
  • final
  • readonly
Show Answer Report

5. What is the size of "double" data type in C?

  • 4 bytes
  • 8 bytes
  • 10 bytes
  • 16 bytes
Show Answer Report

6. Which data type is suitable for storing true/false values in C?

  • bool
  • boolean
  • int
  • flag
Show Answer Report

7. What is the format specifier for "long double" in C?

  • %Lf
  • %lf
  • %ld
  • %Ld
Show Answer Report

8. Which data type has the largest size in C?

  • int
  • double
  • long double
  • float
Show Answer Report

9. What is the default value of an uninitialized local variable in C?

  • 0
  • NULL
  • Garbage value
  • 1
Show Answer Report

10. Which data type is used to store whole numbers without decimal points?

  • float
  • double
  • int
  • char
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test