--:--









Quiz for Constants, variables, and data types

Course: C Language | Subject: Unit 1 | Topic: Introduction to C Programming



Logo

Q1: Which of the following is a valid integer constant in C?

Logo

Q2: Which keyword is used to declare a constant in C?

Logo

Q3: Which of the following is not a valid variable name in C?

Logo

Q4: What is the default data type of a constant like 10 in C?

Logo

Q5: Which data type can store a single character in C?

Logo

Q6: What will be the size of int data type in most modern compilers?

Logo

Q7: Which constant type is enclosed in double quotes in C?

Logo

Q8: What is the suffix for an unsigned integer constant in C?

Logo

Q9: Which keyword is used to define a variable whose value cannot change during execution?

Logo

Q10: Which of the following is a floating-point constant?

Logo

Q11: Which of these is a valid way to define a constant in C?

Logo

Q12: What is the range of values for an unsigned char?

Logo

Q13: Which data type should be used to store large whole numbers in C?

Logo

Q14: Which keyword is used to store a variable in memory for the lifetime of the program?

Logo

Q15: What is the correct format specifier for an int in printf?

Logo

Q16: Which escape sequence represents a new line in C?

Logo

Q17: Which constant type is enclosed in single quotes?

Logo

Q18: Which storage class is used for global variables shared across files?

Logo

Q19: What is the default value of an uninitialized static variable?

Logo

Q20: Which data type is best for storing true/false values in C?

Are you ready to start test? Set your time limit