Navigation Menu
Home Blog Latest Notices
100% Free

ECAT - Practice Test - Computer Science - Getting started with C - Quiz 3

Practice 10 high yield MCQs on Computer Science from Chapter Getting started with C for Practice Test. After submission, get instant results with correct answers and detailed explanations. This is Quiz 3 of the series.

21. Which of these is a loop construct in C?



22. The do-while loop in C:



23. What is the output: int i; for(i=0; i<3; i++) { printf("%d", i); }



24. Which function is used to clear the screen?



25. What is the escape sequence for newline?



26. What is the escape sequence for tab?



27. The return 0; in main() is used to:



28. What does the #include directive do?



29. Which of these is a valid way to define an integer variable and initialize it to 5?



30. What is the output: int x = 5, y = 2; printf("%d", x%y);



← Back to Quiz Sets
Instructions: Select one answer per question. After submitting, you will see your score, correct answers, and explanations.

Medical Colleges in Pakistan

Explore medical institutions city‑wise – public & private.

Browse All Medical Colleges →