Assume that a TypeScript application has two files – demo1.ts and demo2.ts in the root folder. The given below is the content of tsconfig.json file of that application.

{
  "compilerOptions": {
    "target": "es5",
    "outDir": "Output",
  }
}

What will be the output when the developer enters the command ‘tsc’ on the command line?

Since the "files" field is not added in the tsconfig.json file, it will throw error.

It will not throw any error, but since the "files" field is not added in the file, it will neither transpile any file nor generate any output files.

It will transpile all the files present in the folder and generate the output files in the ‘Output’ folder.

It will transpile all the files present in the folder and generate the output files in the root folder.

Verified Answer
Correct Option - c

To get all Infosys Certified TypeScript Professional Exam questions Join Telegram Group https://bit.ly/infy_premium_group

Telegram

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in

Updated on Tue, 1 Jul 2025