Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 94 - 2632_CodeMind
P. 94

    c.                     loop is often used for actions that need to happen repeatedly without stopping.

                         d.                     statement is used to come out of a loop early when the specific condition is
                             met.

                         e.                     help to organise code, make it reusable, and improve readability.

                     3.  Write 'T' for true and 'F' for false.

                         a.  Argument is the actual value passed to a function when it's called.
                         b.  The continue statement stops the loop from its execution.
                         c.   Jump statements in programming are used to change the flow of control by
                             skipping, starting again or exiting certain parts of the code.

                         d.   The Add block is used to concatenate (combine) two or more pieces of
                             text (strings) together into a single string.
                         e.  The for loop allows for actions and tasks that repeat until certain conditions are met.

                     4.   Short answer type questions.

                         a.  What is the purpose of using loops in programming?

                         b.  Explain how the break statement works within a loop.

                     5.  Long answer type questions.

                         a.  What are the benefits of using functions in programming?

                         b.  Explain the concept of parameters and arguments in the context of a function.

                         c.  Describe the process of creating a function in MakeCode Arcade.

                                                                                           Advanced MakeCode Arcade    93

| 89 90 91 92 93 94 95 96 97 98 99 |