Search test library by skills or roles
⌘ K

Adaface Sample Flutter Questions

Here are some sample Flutter questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Analyzing StreamBuilder
StreamBuilder
ListView
Solve
Consider the below code:
 image
Analyze the given pseudocode and determine what will be displayed on the screen after the second emission of Stream (after 2 seconds).
A: CircularProgressIndicator will be displayed.
            B: A ListView with 3 ListTile widgets, each displaying one item from the list ['Item1', 'Item2', 'Item3'].
            C: Text widget with 'No Items Available' will be displayed.
            D: A ListView with 0 ListTile widgets.
            E: The code will throw an error.

Medium

Handling Push Notifications
Push Notifications
Application State
Solve
In a Flutter application, you are using the firebase_messaging package to handle incoming FCM (Firebase Cloud Messaging) push notifications. Consider the pseudocode below:
 image
In the _handleNotification method, the application is supposed to navigate to a details page if the action key in the notification data is equal to 'navigate'. However, this might not work as expected if the app is in the background or terminated state when the notification is received and the user clicked on it.
            
            How would you modify the _handleNotification method or handle the onMessage event to ensure that the navigation occurs when the user taps on the notification to open the app, no matter what state the app is in when the notification is received?
A: Use _firebaseMessaging.onMessageOpenedApp to handle navigation when the user taps the notification to open the app.
            B: Use _firebaseMessaging.onLaunch to handle the navigation when the user taps the notification.
            C: Check the message.messageType and navigate only if it is 'opened'.
            D: Use _firebaseMessaging.onBackgroundMessage for handling navigation when the app is in the background.
            E: Use a GlobalKey<NavigatorState> to handle navigation in _handleNotification.

Medium

Sliders
Widgets
Solve
Dinance is a crypto finance mobile app. The app is built using Flutter and uses Sliders at multiple places. Review the following two snippets of Sliders used in the app. How will the Sliders be displayed?
 image
A: Slider X is displayed as a continuous slider with values {0.0, 0.25, 0.5, 0.75, 1.0}
            B: Slider X is displayed as a discrete slider with values {0.0, 0.25, 0.5, 0.75, 1.0}
            C: Slider X is displayed as a discrete slider with values {0.0, 0.33, 0.67, 1.0}
            D: Slider X is displayed as a discrete Slider with the values {0.0, 1.0, 2.0, 3.0, 4.0}
            
            E: Slider Y is displayed as a discrete Slider with the thumb rightmost
            F: Slider Y is displayed as a continuous Slider with thumb leftmost
            G: Slider Y is displayed as a discrete Slider with values {0.0, 0.25, 0.5, 0.75, 1.0} with thumb left most
            H: Slider Y is displayed as a continuous Slider with thumb rightmost

Medium

Stateless and Stateful Widgets
Stateless Widgets
Stateful Widgets
Lifecycle Methods
Solve
Consider the following pseudocode:
 image
Review the pseudocode. What will be the output in the console when the application starts, the user clicks the 'Navigate' button to navigate to AnotherScreen and then navigates back to the ParentWidget?
 image

Medium

Vertical Wrap
UI Layout
Solve
Review the following Flutter code:
 image
The code produces the following UI:
 image
What will the UI look like if we add following properties to Wrap widget (after line 29):
            
            textDirection: TextDirection.rtl
            direction: Axis.vertical
 image
🧐 Question🔧 Skill

Medium

Analyzing StreamBuilder
StreamBuilder
ListView

3 mins

Flutter
Solve

Medium

Handling Push Notifications
Push Notifications
Application State

2 mins

Flutter
Solve

Medium

Sliders
Widgets

4 mins

Flutter
Solve

Medium

Stateless and Stateful Widgets
Stateless Widgets
Stateful Widgets
Lifecycle Methods

2 mins

Flutter
Solve

Medium

Vertical Wrap
UI Layout

3 mins

Flutter
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Analyzing StreamBuilder
StreamBuilder
ListView
Flutter
Medium3 mins
Solve
Handling Push Notifications
Push Notifications
Application State
Flutter
Medium2 mins
Solve
Sliders
Widgets
Flutter
Medium4 mins
Solve
Stateless and Stateful Widgets
Stateless Widgets
Stateful Widgets
Lifecycle Methods
Flutter
Medium2 mins
Solve
Vertical Wrap
UI Layout
Flutter
Medium3 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1500+ companies in 80+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️