Flutter is an open-source UI toolkit by Google for building natively compiled applications for mobile, web, and desktop from a single codebase using the Dart language.
Click to reveal answer
beginner
What is React Native?
React Native is an open-source framework by Facebook that allows developers to build mobile apps using JavaScript and React, sharing code across iOS and Android.
Click to reveal answer
intermediate
How does Flutter render UI compared to React Native?
Flutter uses its own rendering engine to draw widgets directly on the screen, while React Native uses native UI components of the platform through a bridge.
Click to reveal answer
intermediate
Which language does Flutter use and why is it beneficial?
Flutter uses Dart, which is easy to learn, supports ahead-of-time compilation for fast startup, and just-in-time compilation for hot reload during development.
Click to reveal answer
intermediate
What is a key advantage of React Native's approach to UI?
React Native uses native UI components, so apps often feel more like native apps and can reuse existing native code or libraries easily.
Click to reveal answer
Which language is used by Flutter for app development?
ADart
BJavaScript
CJava
DSwift
✗ Incorrect
Flutter uses Dart language for building apps.
How does React Native render UI components?
ADraws UI with its own engine
BUses native platform UI components
CUses HTML and CSS
DUses canvas drawing
✗ Incorrect
React Native uses native UI components of the platform.
Which framework provides hot reload for faster development?
ABoth Flutter and React Native
BFlutter only
CReact Native only
DNeither
✗ Incorrect
Both Flutter and React Native support hot reload to speed up development.
What is a benefit of Flutter's own rendering engine?
ARuns only on Android
BUses native UI components
CBetter control over UI appearance
DRequires less memory
✗ Incorrect
Flutter's engine allows consistent UI across platforms with full control.
React Native apps are primarily written in which language?
AC#
BDart
CKotlin
DJavaScript
✗ Incorrect
React Native apps use JavaScript with React.
Explain the main differences between Flutter and React Native in how they build and render mobile app UIs.
Think about how each framework draws the app interface and the programming languages they use.
You got /4 concepts.
List advantages of using Flutter over React Native for mobile app development.
Consider performance, UI control, and development speed.
You got /4 concepts.
Practice
(1/5)
1. Which programming language does Flutter primarily use for app development?
easy
A. Kotlin
B. JavaScript
C. Swift
D. Dart
Solution
Step 1: Identify Flutter's language
Flutter uses Dart as its main programming language for building apps.
Step 2: Compare with other options
JavaScript is used by React Native, Kotlin and Swift are for native Android and iOS development respectively.
Final Answer:
Dart -> Option D
Quick Check:
Flutter = Dart [OK]
Hint: Flutter always uses Dart language for coding apps [OK]
Common Mistakes:
Confusing Flutter's Dart with React Native's JavaScript
Thinking Flutter uses native languages like Kotlin or Swift
2. Which of the following is the correct way to create a simple button in React Native?
easy
A. alert('Hello')}>Click me
B. ElevatedButton(onPressed: () => print('Hello'), child: Text('Click me'))
C. alert('Hello')} />
D. Button('Click me', onPress: () => alert('Hello'))
Solution
Step 1: Recognize React Native button syntax
React Native uses JSX syntax with <Button> component and props like title and onPress.
Step 2: Eliminate other options
ElevatedButton(onPressed: () => print('Hello'), child: Text('Click me')) is Flutter syntax, C is HTML, D is invalid syntax.
Final Answer:
<Button title='Click me' onPress={() => alert('Hello')} /> -> Option C