Back to Freecodecamp

Task 2

curriculum/challenges/english/blocks/learn-about-speculation-and-requests/67ee484fd82991084f2bab59.md

latest2.2 KB
Original Source
<!-- (audio) Sophie: Hey Mark, I was reviewing your latest code submission, and I noticed a small error in the loop structure. -->

--instructions--

Listen to the audio and complete the sentence below.

--fillInTheBlank--

--sentence--

Hey Mark, I was reviewing your latest BLANK, and I noticed a small error in the BLANK.

--blanks--

code submission

--feedback--

This two-word phrase refers to the code that Mark submitted for review.


loop structure

--feedback--

This two-word phrase means a programming pattern that repeats a block of code multiple times until a specified condition is met.

--explanation--

A code submission is the set of code files that a programmer submits for review. For example:

  • Make sure your code submission follows the guidelines. - The code must meet the rules before you send it.

  • The professor reviewed my code submission and gave feedback. - The professor checked your code and shared comments.

A loop structure executes a block of code repeatedly until a certain condition is satisfied, saving time by automating repetitive tasks, such as for loops or while loops. For example:

  • The loop structure in my code runs five times. - Your loop repeats five times in the program.

  • A loop structure allows a program to repeat actions. - A loop helps a program do the same thing multiple times.

--scene--

json
{
  "setup": {
    "background": "company2-center.png",
    "characters": [
      {
        "character": "Sophie",
        "position": {
          "x": 50,
          "y": 0,
          "z": 1.4
        },
        "opacity": 0
      }
    ],
    "audio": {
      "filename": "B1_17-1.mp3",
      "startTime": 1,
      "startTimestamp": 0,
      "finishTimestamp": 5.36
    }
  },
  "commands": [
    {
      "character": "Sophie",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sophie",
      "startTime": 1,
      "finishTime": 6.36,
      "dialogue": {
        "text": "Hey Mark, I was reviewing your latest code submission, and I noticed a small error in the loop structure.",
        "align": "center"
      }
    },
    {
      "character": "Sophie",
      "opacity": 0,
      "startTime": 6.86
    }
  ]
}