Search⌘ K
AI Features

Quiz: Functions and Scope

Test your understanding of Dart functions, optional parameters, recursion, higher-order methods, closures, and lexical scope.

We'll cover the following...
Technical Quiz
1.

What is the fundamental difference between the map and forEach methods?

A.

map modifies the original list; forEach leaves the original list untouched.

B.

map captures returned values into a new list; forEach discards returned values.

C.

map only works on strings; forEach works exclusively on numerical data.

D.

map executes synchronously; forEach executes asynchronously in the background.


1 / 8
...