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

41. What is the purpose of "auto" storage class?

  • Automatic storage
  • Static storage
  • Global storage
  • Register storage
Show Answer Report

42. Which data type is suitable for storing a student's grade point average?

  • int
  • char
  • float
  • double
Show Answer Report

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

44. Which data type is used for storing double precision floating-point numbers?

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

45. What is the size of "char" data type?

  • 1 byte
  • 2 bytes
  • 4 bytes
  • Depends on system
Show Answer Report

46. Which of the following is a user-defined data type?

  • int
  • float
  • char
  • struct
Show Answer Report

47. What is the purpose of "static" storage class?

  • Preserves value
  • Makes variable global
  • Increases speed
  • Reduces size
Show Answer Report

48. Which data type would you use for a flag that can be true or false?

  • bool
  • boolean
  • int
  • flag
Show Answer Report

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

50. Which format specifier is used for "long int"?

  • %d
  • %ld
  • %li
  • %lld
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test