Which of the following commands would you choose?

You have developed two console applications. The first, DisplayFile.exe, accepts the name of a text file as a command-line argument and displays the file’s contents. The second, ToUpper.exe, accepts text from users and converts the text to uppercase letters. You need to combine both commands so that contents of a given file (sample.txt) can be displayed in uppercase letters. Which of the following commands would you choose?
A. ToUpper | DisplayFile Sample.txt
B. DisplayFile Sample.txt | ToUpper
C. ToUpper > DisplayFile Sample.txt
D. DisplayFile Sample.txt > ToUpper

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.