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

31. What is the default sign of "char" data type?

  • signed
  • unsigned
  • Implementation-defined
  • Always positive
Show Answer Report

32. Which data type is used for storing monetary values with precision?

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

33. What is the purpose of "register" storage class?

  • Stores in register
  • Makes variable global
  • Makes variable constant
  • Increases size
Show Answer Report

34. Which of the following is NOT a basic data type in C?

  • int
  • float
  • char
  • string
Show Answer Report

35. What is the range of "unsigned char"?

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

36. Which data type would you use for a loop counter?

  • float
  • double
  • int
  • char
Show Answer Report

37. What is the difference between "signed" and "unsigned" integers?

  • signed can be negative
  • unsigned is larger
  • signed is faster
  • No difference
Show Answer Report

38. Which data type is used for storing single precision floating-point numbers?

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

39. What is the size of "long int" on a 64-bit Linux system?

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

40. Which format specifier is used for "unsigned int"?

  • %d
  • %u
  • %i
  • %f
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test