Typescript Quiz Preparation Part 3

Welcome to your Typescript Quiz Preparation Part 3

Name
Email
Which of the following correctly defines a Person object with properties firstName (string) and lastName (string)?

How do you define a nested object person with properties name (string) and address (object with properties street and city) in TypeScript?

How do you define an object literal car with properties make (string) and year (number) in TypeScript?

What is the advantage of structural typing in TypeScript?

What is structural typing in TypeScript?

How do you access the street property of the address object within the person object in TypeScript?

How do you access the name property of an object person in TypeScript?

How do you define an object type with properties name (string) and age (number) in TypeScript?

How do you declare an object type Car with properties make (string) and model (string)?

What is the purpose of using type aliases in TypeScript?

This Post Has 13 Comments

  1. aqsa saeed

    ..

  2. Iqra naz

    Thank you sir for your kind effort for us

  3. farry

    helpful for anual quiz preparation

  4. Shabana

    Great efforts to you sir for beginners

  5. Shabana

    Thanks for the kind efforts 👍🏿

  6. Sahil

    Thank YoU Sir

  7. Rahat Bano

    Thank you sir for your kind efforts

  8. Ahmed

    I think the options are very similar and confusing like if I select option A but Option B and C also has same meanings I think that’s the point where you need to improve your quizzes . BTW you have done a fabulous job. Love and Respect for you . Thanks for your efforts

  9. Shahrozhussain

    Bohat Shukriya Sir 👌

  10. sadiq memon

    Thank you sir for making this helpful quiz

  11. Muhammad Zain

    Thanks, Ninja Learners

  12. Muhammad Zain

    Thanks, Ninja Learners!!!

Leave a Reply