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

11. What does the "unsigned" modifier do?

  • Allows only positive numbers
  • Allows only negative numbers
  • Increases precision
  • Decreases size
Show Answer Report

12. Which data type provides the highest precision for decimal numbers?

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

13. What is the size of "float" data type in C?

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

14. Which of the following is a derived data type in C?

  • int
  • float
  • array
  • char
Show Answer Report

15. What is the range of "unsigned int" on a 32-bit system?

  • 0 to 65,535
  • -2,147,483,648 to 2,147,483,647
  • 0 to 4,294,967,295
  • 0 to 32,767
Show Answer Report

16. Which format specifier is used for "unsigned long" in C?

  • %lu
  • %ul
  • %ld
  • %dl
Show Answer Report

17. What is the purpose of "void" data type?

  • Represents empty value
  • Represents any data type
  • Represents null pointer
  • Represents garbage value
Show Answer Report

18. Which data type would you use for a variable that stores age?

  • int
  • unsigned int
  • float
  • char
Show Answer Report

19. What is the difference between "float" and "double"?

  • double has higher precision
  • float has higher precision
  • They are the same
  • double is smaller in size
Show Answer Report

20. Which of the following is a valid character constant?

  • "A"
  • 'A'
  • A
  • char A
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test