Input / Output - Point Out Correct Statements :: Discussion


2.Which of the statements is correct about the program?
A.The code writes a text to a file
B.The code writes a text to a file in reverse order
C.The code reads a text files and display its content in reverse order
D.None of above
Answer:  Option  C
Explanation:

This program reads the file INPUT.TXT and store it in the string str after reversing the string using strrev function.

Tutorial Link:
Published by:Michael Daani

Comments are not available

Post your comments here:

Optional

Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers