MockQuestions

OutSystems Mock Interview

Question 18 of 28 for our OutSystems Mock Interview

OutSystems was updated by on January 7th, 2020. Learn more here.

Question 18 of 28

If hired here at OutSystems to develop iOS and Android software, when would you use a fragment rather than an activity?

In the development of apps for both iOS and Android, using code to create an activity versus a fragment is a highly debated topic to this day. For this question, your interviewer is looking to hear that you understand what the differences between the two are and when you feel that using a fragment is the proper direction to go. Make sure to speak to the high level overview of what an activity does to an app versus fragments.

Next Question

How to Answer: If hired here at OutSystems to develop iOS and Android software, when would you use a fragment rather than an activity?

Advice and answer examples written specifically for an OutSystems job interview.

  • 18. If hired here at OutSystems to develop iOS and Android software, when would you use a fragment rather than an activity?

      How to Answer

      In the development of apps for both iOS and Android, using code to create an activity versus a fragment is a highly debated topic to this day. For this question, your interviewer is looking to hear that you understand what the differences between the two are and when you feel that using a fragment is the proper direction to go. Make sure to speak to the high level overview of what an activity does to an app versus fragments.

      Written by Ryan Brunner on January 7th, 2020

      1st Answer Example

      "As a best practice in my development of Android apps in the past, activities are really the complete screen that a user experiences as part of the app. Fragments are really small sub activities that take place within the activity. Because fragments within an app have their own life cycle and receive their own input events within the app, there are specific times where fragments make the most sense to use in development. In my experience, I always use fragments when the app is working with UI components that are going to be uses across multiple activities within the app. As well, fragments have also served very well when using swipe views within the app."

      Written by Ryan Brunner on January 7th, 2020

      2nd Answer Example

      "In the past year, I honestly don't recall designing a new app that ran solely on an activity alone. The fragments are almost necessary today to bring life to an app. I use retained fragments to persist across activity restarts within the app and this helps make a user friendly experience for our end users."