Q1: What is the correct syntax to output 'Hello World' in C?
Q2: What is the correct file extension for C programs?
Q3: Which symbol is used to comment a single line in C?
Q4: Which keyword is used to declare a variable in C?
Q5: How do you declare a constant variable in C?
Q6: What is the default return type of the 'main' function in C?
Q7: Which of the following is not a valid data type in C?
Q8: In C, which operator is used to allocate memory?
Q9: How do you end a statement in C?
Q10: What is the correct syntax for an if statement in C?
Q11: Which loop is guaranteed to execute at least once?
Q12: What is the size of int data type in C?
Q13: Which function is used to read a formatted input in C?
Q14: How do you declare an array in C?
Q15: What is the starting index of arrays in C?
Q16: Which function is used to find the length of a string in C?
Q17: What does 'EOF' stand for in C?
Q18: Which of the following is used to exit a loop in C?
Q19: What is a pointer in C?
Q20: How do you access a value from a pointer?
Q21: Which header file is required for using printf and scanf functions?
Q22: What is the purpose of the return statement in C?
Q23: Which operator is used to get the address of a variable?
Q24: What is a function prototype in C?
Q25: Which function is used to allocate memory dynamically in C?
Q26: Which of the following loops in C does not use a condition to stop?
Q27: What is the maximum value of an unsigned int in C (assuming 4 bytes)?
Q28: What is the difference between '==' and '=' in C?
Q29: Which keyword is used to create a structure in C?
Q30: How do you define a macro in C?
Q31: Which function terminates the execution of a program in C?
Q32: Which is the logical AND operator in C?
Q33: What will be the output of 'printf("%d", 5+3*2);'?
Q34: Which keyword is used to avoid duplicate inclusions of a header file?
Q35: What is the value of the expression '5/2' in C?
Q36: How do you initialize a variable to zero in C?
Q37: What is the output of 'printf("%d", 3==3);'?
Q38: Which keyword is used for creating an infinite loop in C?
Q39: How do you declare a floating-point variable in C?
Q40: Which header file is required for using the sqrt function?
Q41: What does 'NULL' represent in C?
Q42: How do you call a function in C?
Q43: Which operator is used for modulus in C?
Q44: How do you define a union in C?
Q45: What does 'sizeof' return in C?
Q46: How do you declare a character array in C?
Q47: What does the function 'strcmp' do in C?
Q48: What will be the output of 'printf("%c", 'a' + 1);'?
Q49: How do you open a file for writing in C?
Q50: What does 'fclose' do in C?