Quick Test on PrintfBy Sanjay Adhikari / March 3, 2019 Here is a quick test before starting new chapter on C ? Please note that each output answer option is at the end markes as ***************** which also part of printf() command ← BackThank you for your response. ✨ Name(required) Email(required) Website Message Submit Δ This is the basic test of printf command for beginners 1. What output you expect from following code ? /******************************************/ printf(“test0 \r\n”); printf(“test12 \r”); printf(“test3 \n”); printf(“test4 \n”); printf(“test5 \t”); printf(“test6 \r\n”); printf(“test78 \r”); printf(“***********************\r\n”); Select one of the answer from : test0 test32 test4 test5 test6 *********************** test0 test12 test3 test4 test5 test6 test78 *********************** test12 test3 test4 test78 test6 *********************** None of the above 2. You might have noticed that printf without \n doesn’t appear in the output. What should be the command to make sure output appears on the console ? printf(force_out);; printf(flush); fflush(stdout); printf(stdout); 3. What should be output of following ? printf(“%-+5.3f \n”, 20.1356); //Left justify ,sign,width printf(“%-+5.3f \n”, -20.1356); printf(“%-#5.3e \n”, 20.1356); printf(“%-5.3f \n”, -20.1356); printf(“%-#10.2x \n”, 144);//left justify printf(“%010x \n”, 144); //right justify with leading zeros printf(“%-010x \n”, 144); //left justify printf(“***********************\r\n”); Select one of the answer from : 20.136 -20.136 2.014e+01 -20.136 0x90 0000000090 90 *********************** +20.136 -20.136 2.014e+01 -20.136 0x90 0000000090 90 *********************** +20.136 -20.136 2.014e+01 -20.136 0x90 90 90 *********************** None of the above Loading … Question 1 of 3 Related