Given below is the content of the tsconfig.json file that a developer has written for their TypeScript application.

{   
    "compilerOptions": {  
            "target": "es5",   
            "outDir": "Output",  
            "sourceMap": true,
        },   
    "files": [    
            "demo1.ts",	
            "demo2.ts"   
    ]
}

What will be the output when the developer runs the command ‘tsc’ on the terminal?

It will generate demo1.js, demo1.js.map, demo2.js and demo2.js.map in the ‘Output’ directory.

It will generate demo1.js and demo2.js in the ‘Output’ directory, and demo1.js.map and demo2.js.map in the current working directory.

It will throw error because no filename is mentioned in the command line.

It will generate demo1.js, demo2.js, demo1.js.map and demo2.js.map in the root directory.

Verified Answer
Correct Option - a

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