Infosys Certified TypeScript Developer
Practice with real exam-pattern questions for Infosys Certified TypeScript Developer. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.
Full question bank for this exam + 1,357+ others. Cancel anytime.
Join Premium10 Infosys Certified TypeScript Developer practice questions with answers
Real Lex exam-pattern multiple-choice questions for the Infosys Certified TypeScript Developer certification. Each question includes the correct answer. The full question bank is available to Premium members.
- Question 1
Mr.Joe was learning TypeScript technology. Can you help him to recognize the object-oriented term that is supported by TypeScript but not by JavaScript?
- ✓
classes
Correct - B
interface
- C
JavaScript will not support object-oriented programming
- D
TypeScript will not support object-oriented programming
- ✓
- Question 2
Mr. Joe was designing a TypeScript application for a ABC company which consists of parameters empName and empNo. Can you select the datatype which would help him to implement this requirement?
- ✓
number
Correct - B
string
- C
boolean
- D
void
- ✓
- Question 3
What will be the output of the below-given TypeScript code?
var num1:number=5; function ab():void{ var num1:number=3; console.log(num1); } console.log(num1); ab(); console.log(num1);- ✓
5 3 5
Correct - B
5 3 3
- C
3 3 3
- D
5 5 5
- ✓
- Question 4
Predict the output of the following code.
Line 1: function getStatusData() { Line 2: var tempCounter = 10; Line 3: console.log(tempCounter); Line 4: } Line 5: console.log(tempCounter >= 10 ? 'Active' : 'Inactive');- ✓
Error in Line 3
Correct - B
Inactive
- C
Active
- D
Error in Line 5
- ✓
- Question 5
Select the TypeScript datatype which is similar to ‘Any’ datatype but that can be used for safer alternative requirement when developer is unknown about the type usage.
- ✓
never
Correct - B
similar
- C
unknown
- D
read-only
- ✓
- Question 6
Can you predict the invalid TypeScript invalid data type from the below-given options?
- ✓
null
Correct - B
never
- C
constructor
- D
unknown
- ✓
- Question 7
Sam, a TypeScript developer is working on creating a registration portal for his college event. He has created a user object as shown below. When he used it to write the logic for further processing, he found that there are redundant code.
Modify the given TypeScript code to remove the redundancy.
let userObj : {userName : string, uid : number | string}; function registerUser(user : {userName : string, uid : number | string}){ user.userName = userObj.userName; user.uid = userObj.uid; }- ✓
No modification required
Correct - B
let userObj : {userName : string, uid : number | string}; function registerUser(user : {userName : string, uid : number | string}){ user.userName = userObj.userName; user.uid = userObj.uid; } //end of the option - C
type NumOrString = number | string; let userObj : {userName : string, uid : NumOrString} function registeruser(user : NumOrString){ user.username = userObj.username; user.uid = userObj.uid; } //end of the option - D
type NumOrString = number | string; type UserObj = {userName : string, uid : NumOrString}; let userObj : UserObj = {"Samuel", 231}; function registeruser(user : UserObj){ user.username = userObj.username; user.uid = userObj.uid; } //end of the option
- ✓
- Question 8
What is the output of the following TypeScript code?
type Point = [number, number?, number]; let point : Point = [10, 20]; console.log(point);- ✓
[10,30]
Correct - B
[10,20,30]
- C
Compilation error: Type '[number, number]' is not assignable to type 'Point'. Source provides no match for the required element at position 2 in the target.
- D
Compilation error: Required parameter cannot follow optional parameter
- ✓
- Question 9
Predict the output of the following code.
Line 1: let details : [number, string] ; Line 2: details = ["Tom", 1002] ; Line 3: details.push("Sam") ; Line 4: console.log(details);- ✓
Compilation error at Line 3
Correct - B
Code will execute and output - [“Tom”, 1002, “Sam”]
- C
Compilation error at Line 2
- D
Code will execute and output - [1002, “Tom”, “Sam”]
- ✓
- Question 10
Which of the following options represents the advantages of using TypeScript Type aliasing feature?
- ✓
You can create an alias for the existing data type in a TypeScript application
Correct - B
Aliasing the types can help eradicate redundancy in the TyepScript code
- C
Both the options are correct
- D
None of the options are correct
- ✓
More in UI
Pay once. Clear every cert this year.
One subscription, full Telegram channel access, every PDF posted during your membership.
- Full access to all 1,357+ certifications
- Monthly updated question banks
- Telegram private channel access
- Cancel anytime
- Everything in Monthly
- Save ₹2,100 vs monthly billing
- Priority answer key requests
- Best for increasing DQ score fast
- Everything in Quarterly
- Lifetime channel access — no renewals
- All future certifications included
- Priority response from admin team
Common questions, straight answers.
A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.
Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.
We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.
Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.
Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.