All fields

“Dart Collections & Generics” in Information Technology

24 questions across 1 technology.

Information Technology

24 questions in 1 technology

#QuestionTechnologyTopicLevel
1What are generics in Dart, and how does declaring a collection like List<String> let the Dart compiler catch type related mistakes before your code even runs? Flutter › Dart Collections & GenericsFlutterDart Collections & GenericsBeginner
2How do commonly used higher order collection methods, such as map, where, and reduce, let you transform and filter Dart collections in a clean, declarative style? Flutter › Dart Collections & GenericsFlutterDart Collections & GenericsIntermediate
3What are unmodifiable and immutable collections in Dart, and why might you deliberately choose to use one instead of a regular mutable collection in certain parts of your code? Flutter › Dart Collections & GenericsFlutterDart Collections & GenericsIntermediate
4What are the three main built in collection types in Dart, List, Set, and Map, and what makes each one uniquely suited for a different kind of data storage need? Flutter › Dart Collections & GenericsFlutterDart Collections & GenericsBeginner
5How do you create a custom generic class in Dart, and why would a generic class be preferable to writing several nearly identical, separate classes each hardcoded for a different specific type? Flutter › Dart Collections & GenericsFlutterDart Collections & GenericsIntermediate
6What are the performance and memory tradeoffs between using a List, a LinkedHashMap, and a HashSet in Dart when working with a genuinely very large collection of data? Flutter › Dart Collections & GenericsFlutterDart Collections & GenericsAdvanced
7How do bounded type parameters, using the extends keyword within a generic class definition, let you constrain a generic type to only accept types that satisfy a specific requirement? Flutter › Dart Collections & GenericsFlutterDart Collections & GenericsAdvanced
8What are the basic variable declaration keywords in Dart, specifically var, final, and const, and how do they differ from each other? Flutter › Dart Language Basics & SyntaxFlutterDart Language Basics & SyntaxBeginner
9What is null safety in Dart, and how does it help prevent a common category of runtime error known as a null reference exception? Flutter › Dart Null SafetyFlutterDart Null SafetyBeginner
10What are named parameters and positional parameters in Dart functions, and how does using curly braces to declare parameters as named improve the readability of a function call with many arguments? Flutter › Dart Language Basics & SyntaxFlutterDart Language Basics & SyntaxIntermediate
11What are extension methods in Dart, and how do they let you add new useful functionality directly onto an existing class, including classes you did not originally write yourself, such as Dart's own built in String class? Flutter › Dart Language Basics & SyntaxFlutterDart Language Basics & SyntaxIntermediate
12How does Dart's late keyword let you declare a non nullable variable that will genuinely be initialized before it is ever actually first used, even though it cannot be given an initial value immediately at the exact point of its declaration? Flutter › Dart Null SafetyFlutterDart Null SafetyIntermediate
13How does pattern matching, introduced through Dart's more modern switch expressions and destructuring, let you write more concise and expressive code when handling different possible shapes of data? Flutter › Dart Language Basics & SyntaxFlutterDart Language Basics & SyntaxAdvanced
14What are Dart records, and how do they let you group together several distinct values of potentially different types without needing to first define an entirely separate dedicated class? Flutter › Dart Language Basics & SyntaxFlutterDart Language Basics & SyntaxAdvanced
15What do the null aware operators, specifically the null coalescing operator and the null aware access operator, actually do, and how do they let you write more concise code when working with nullable values? Flutter › Dart Null SafetyFlutterDart Null SafetyIntermediate
16What is JSON serialization and deserialization, and how do Dart's own built in jsonEncode and jsonDecode functions let you convert genuinely freely between a Dart object and its own corresponding JSON text representation? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationBeginner
17How do you properly store a genuinely fully custom Dart object, rather than simply a basic primitive type, within Hive using a generated TypeAdapter? Flutter › Hive & NoSQL Local StorageFlutterHive & NoSQL Local StorageIntermediate
18How do you properly handle deserializing a genuinely nested JSON structure, such as an order object that itself contains an embedded nested list of individual line item objects, into a properly correctly structured set of nested Dart model classes? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationIntermediate
19How do you actually properly pass genuinely complex data types, such as a Map or a List, between Dart and native code through a platform channel, and what specific limitations genuinely exist regarding exactly what data can actually genuinely be sent? Flutter › Platform Channels (Native Android & iOS Integration)FlutterPlatform Channels (Native Android & iOS Integration)Intermediate
20What is a Hive box, and how does it function as the basic fundamental storage unit specifically used for actually storing and retrieving your own particular data? Flutter › Hive & NoSQL Local StorageFlutterHive & NoSQL Local StorageBeginner
21How do provider dependencies and provider composition work in Riverpod, letting one provider genuinely and cleanly depend on the current value of a completely separate other provider? Flutter › Flutter Riverpod Code Generation & ProvidersFlutterFlutter Riverpod Code Generation & ProvidersIntermediate
22How does properly using TextInputFormatter genuinely help restrict or automatically format exactly what a user can actually type into a specific given text field, such as automatically formatting a phone number or restricting input to only numeric digits? Flutter › Forms & Input Validation in FlutterFlutterForms & Input Validation in FlutterIntermediate
23How does StateNotifierProvider let you properly manage genuinely more complex state that requires several genuinely separate distinct methods for updating it, compared to the considerably simpler StateProvider? Flutter › State Management with RiverpodFlutterState Management with RiverpodIntermediate
24How do you properly write parameterized tests that run the exact same test logic against several genuinely different sets of input data, avoiding needing to duplicate that exact same test method several genuinely separate times? Flutter › Unit Testing in FlutterFlutterUnit Testing in FlutterAdvanced