Which of the following commands would you choose?

Correct Answer for the following Question is given below

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?

Question:

Which of the following commands would you choose?

Options:

ToUpper | DisplayFile Sample.txt

DisplayFile Sample.txt | ToUpper

ToUpper > DisplayFile Sample.txt

DisplayFile Sample.txt > ToUpper

Correct Answer

The Correct Answer for this Question is

DisplayFile Sample.txt | ToUpper

Explanation

The Question – Which of the following commands would you choose? has been answered correctly and answers for the question is DisplayFile Sample.txt | ToUpper

More about these Exams

These Exam Questions and the order of these questions keep changing. but the answers are obviously same. so if you don’t find a question after another we suggest you search it in the search box and we are sure you’ll find it. you can bookmark this site for Quick access in future.

We hope you found it helpful don’t forget to leave a comment if you feel a need to correct or ask we’re always here to help.

you can find more here at mnccertified

Feel free to contact via comment or email.

Happy Learning

Cheers, Team MNCcertified

Leave a Comment