Posts

Showing posts with the label C programming quiz

C Programming Quiz online on input and output

Image
Following quiz provides Multiple Choice Questions (MCQs) related to C Programming input and output . You will have to read all the given answers and click over the correct answer. You are given 3 to 4 options , you have to click on option  until you are right.
1.What is difference between getch() and getche()?
getch() do not take'e'

TRY AGAIN
getch() do not show input data in screen but getche() show input data in screen

perfect
getch() is used for all media but getche() is not.

Try again 2.scanf("%3f%4f",&x,&y);
Input is: 5.93 , 65.87
5.93 is stored in x and 65.87 is stored in y

Try again
5.9 is stored in x and 65.8 is stored in y

Try again
5.9 is stored in x and 3.00 is stored in y

WOW , you are write 3.What is use of escape character '\b'?
It backs the program

Try again
It moves the control to first position

Try again
It moves the cursor one position back

WOW , you are write 4.What is use of escape character '\r'?
Moves the cursor to the beginning …