/15 C Basics MCQs Test your fundamentals with quick and interactive C basics MCQs. 1 / 15 What is the correct syntax to start the main function? start main() void main[] main() int main() 2 / 15 Which symbol is used for block opening? ( { [ < 3 / 15 Which of the following is a correct comment in C? # comment // comment comment ** comment 4 / 15 Which of the following is NOT a keyword in C? if main return for 5 / 15 Which function is used to print output in C? output() print() printf() display() 6 / 15 What is the default return type of main() in C (modern standard)? void int float char 7 / 15 The process of converting C code into machine code is called: execution compilation debugging mapping 8 / 15 C language was developed by: James Gosling Bjarne Stroustrup Dennis Ritchie Guido van Rossum 9 / 15 Which operator is used for assignment? == = := => 10 / 15 Which symbol is used to end a statement in C? . ; : ! 11 / 15 A C program always starts execution from: printf() first line of code main() compiler 12 / 15 Which header file is used for printf() and scanf()? stdfile.h stdmain.h stdio.h iostream.h 13 / 15 What is the correct way to declare a variable in C? int = x; int x; x int; declare x as int; 14 / 15 Which of the following is the correct file extension for a C program? .cp .c .cpp .cx 15 / 15 Which of the following is a valid C identifier? 1value value_1 value 1 value-1 Your score is 0% Restart quiz