feat(curriculum): add English curriculum block 5.2 describing code-related concepts and terms (#54652)

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Naomi <nhcarrigan@gmail.com>
This commit is contained in:
miyaliu666
2024-05-09 04:20:25 +08:00
committed by GitHub
parent d40da2f2b4
commit 1b24cee57d
55 changed files with 2859 additions and 17 deletions
@@ -9,8 +9,216 @@
"superBlock": "a2-english-for-developers",
"challengeOrder": [
{
"id": "655c12384a3d2e8a0d5e3efd",
"title": "Dialogue: Placeholder"
"id": "6630b37556424464ba0f984e",
"title": "Dialogue 1: Asking about Data Types"
},
{
"id": "6630b49ade31b06586863453",
"title": "Task 1"
},
{
"id": "6630b56594405466378bbfbb",
"title": "Task 2"
},
{
"id": "6630b687daf7dd66a730a0be",
"title": "Task 3"
},
{
"id": "6630b88fdd1eb2675cba64ec",
"title": "Task 4"
},
{
"id": "6630bb08c02b626826c937ae",
"title": "Task 5"
},
{
"id": "6630bc7702367d68c7679dba",
"title": "Task 6"
},
{
"id": "6630bd815e1b146937422948",
"title": "Task 7"
},
{
"id": "6630bf29b2e38669e3c15823",
"title": "Task 8"
},
{
"id": "6630e609d81a446cd663c521",
"title": "Task 9"
},
{
"id": "6630e7b497466d6d8bb5b863",
"title": "Task 10"
},
{
"id": "6630e831b3a1a36de42fb705",
"title": "Task 11"
},
{
"id": "6630e965a9e9c46e8b5a3ee2",
"title": "Task 12"
},
{
"id": "663246e8f661af779398be0e",
"title": "Task 13"
},
{
"id": "6632497b37b28b78907c0a97",
"title": "Task 14"
},
{
"id": "66324d85e67a5c7a072a5b4d",
"title": "Task 15"
},
{
"id": "66324c110747c079691211a1",
"title": "Task 16"
},
{
"id": "66324f956a24867b039d95c4",
"title": "Task 17"
},
{
"id": "663253fdb77eab7c9f3bbd16",
"title": "Task 18"
},
{
"id": "66325225b08cff7be37ac2e7",
"title": "Task 19"
},
{
"id": "66325752419d337dc13ffd83",
"title": "Task 20"
},
{
"id": "6632fd7b0b9f8087ff8aa3ba",
"title": "Dialogue 2: Asking about Functions"
},
{
"id": "6632fe1b6548f7887488a767",
"title": "Task 21"
},
{
"id": "6633008b3377e5894cf71629",
"title": "Task 22"
},
{
"id": "663301c3812e2e89c08dcc31",
"title": "Task 23"
},
{
"id": "6633032bf786ff8a61b0c482",
"title": "Task 24"
},
{
"id": "66330444cf1ea28af44e980d",
"title": "Task 25"
},
{
"id": "663308af5363be8c4a5c68b9",
"title": "Task 26"
},
{
"id": "66330dac56ad868d51d5698c",
"title": "Task 27"
},
{
"id": "66330fc6d2e3c38e148c8789",
"title": "Task 28"
},
{
"id": "66331263a35e868f3dade3de",
"title": "Task 29"
},
{
"id": "66331384245d028fd8b1be23",
"title": "Task 30"
},
{
"id": "663315286b7cff907e92ae25",
"title": "Task 31"
},
{
"id": "663316fdcce39d9144ae40cd",
"title": "Task 32"
},
{
"id": "6633203e58595e93ef54ba3b",
"title": "Task 33"
},
{
"id": "6633261bb572f2953f5abd13",
"title": "Task 34"
},
{
"id": "66334fd916a3a697e1d2c631",
"title": "Dialogue 3: Getting Help with Variables"
},
{
"id": "663350023c7cb898358af702",
"title": "Task 35"
},
{
"id": "6633511c7b197798ad5fd703",
"title": "Task 36"
},
{
"id": "663352b4860f03995736b6cd",
"title": "Task 37"
},
{
"id": "663354f60aafd69a4c0138da",
"title": "Task 38"
},
{
"id": "66339d408258519c61151a64",
"title": "Task 39"
},
{
"id": "66339e21256f099cd722292f",
"title": "Task 40"
},
{
"id": "66339f1995bdea9d4aa28cd8",
"title": "Task 41"
},
{
"id": "6633a14f17a4669e1c980d91",
"title": "Task 42"
},
{
"id": "6633a2a86218659eb77fb9a1",
"title": "Task 43"
},
{
"id": "6633a45ce837ac9f95394eab",
"title": "Task 44"
},
{
"id": "6633a64567c725a05a94b68f",
"title": "Task 45"
},
{
"id": "6633a97f928771a163b59745",
"title": "Task 46"
},
{
"id": "6633aa9cf90591a1f63a431e",
"title": "Task 47"
},
{
"id": "6633abfc050e82a29a76dd42",
"title": "Task 48"
},
{
"id": "6633ad387b6914a3313339b3",
"title": "Task 49"
},
{
"id": "6633ae85f1fb7aa3ca13234d",
"title": "Task 50"
}
],
"helpCategory": "English"
@@ -0,0 +1,14 @@
---
id: 6630b37556424464ba0f984e
title: "Dialogue 1: Asking about Data Types"
challengeType: 21
dashedName: dialogue-1-asking-about-data-types
---
# --description--
Watch the video below to understand the context of the upcoming lessons.
# --assignment--
Watch the video
@@ -0,0 +1,47 @@
---
id: 6630b49ade31b06586863453
title: Task 1
challengeType: 22
dashedName: task-1
---
<!--
AUDIO REFERENCE:
Jake: Sarah, can you explain data types to me? I'm a bit confused.
-->
# --description--
The verb `explain` means to make something clear or easy to understand by describing or giving information about it. It is often used when someone is asking for or providing a detailed understanding of a subject, concept, or problem.
For instance, if someone says, `Can you explain how this works?`, they are asking for a clearer understanding of the process or concept.
# --fillInTheBlank--
## --sentence--
`Sarah, can you _ _ _ to me? I'm a bit confused.`
## --blanks--
`explain`
### --feedback--
This word is a verb that means to make something clear or easy to understand.
---
`data`
### --feedback--
This word refers to information processed or stored by a computer.
---
`types`
### --feedback--
It refers to categories of data in programming.
@@ -0,0 +1,53 @@
---
id: 6630b56594405466378bbfbb
title: Task 2
challengeType: 19
dashedName: task-2
---
<!--
AUDIO REFERENCE:
Jake: Sarah, can you explain data types to me? I'm a bit confused.
-->
# --description--
Please answer the question below.
# --question--
## --text--
What is Jake asking Sarah to do?
## --answers--
Ignore his question
### --feedback--
Jake explicitly asks for an explanation, so he is not asking to be ignored.
---
Solve a problem for him
### --feedback--
While Jake is seeking help, he specifically asks for an explanation, not a solution to a problem.
---
Explain a concept to him
---
Discuss plans for their next project
### --feedback--
Jake's request is about understanding a concept, not discussing plans for a project.
## --video-solution--
3
@@ -0,0 +1,59 @@
---
id: 6630b687daf7dd66a730a0be
title: Task 3
challengeType: 22
dashedName: task-3
---
<!--
AUDIO REFERENCE:
Sarah: Sure. Data types are fundamental in programming. You use them to tell the computer what kind of data you're working with.
-->
# --description--
The word `fundamental` implies something is basic or essential, much like the foundation of a house.
For example, `Understanding grammar is fundamental to learning a new language.` Here `fundamental` is used to emphasize that grammar is an essential or basic part of learning any new language.
The phrase `what kind of` is used to ask about the type or nature of something. It's a common way to specify or classify something more clearly.
For instance, when someone asks `what kind of music do you like?` they are asking about the genre of music.
# --fillInTheBlank--
## --sentence--
`Sure. Data types are _ in programming. You use them to tell the computer _ _ _ data you're working with.`
## --blanks--
`fundamental`
### --feedback--
This word means something basic, essential, or central to a system.
---
`what`
### --feedback--
This word starts a question or inquiry about the nature or identity of something.
---
`kind`
### --feedback--
This word refers to a type or category.
---
`of`
### --feedback--
This preposition is used to link the noun with what follows it, helping to specify the type or category being asked about.
@@ -0,0 +1,56 @@
---
id: 6630b88fdd1eb2675cba64ec
title: Task 4
challengeType: 19
dashedName: task-4
---
# --description--
Prepositions are words that link nouns, pronouns, or phrases to other words within a sentence and often indicate time, place, or relationship, like `with`, `for`, `about`. They can also appear at the end of a question or sentence, which is common in spoken English.
Examples:
When someone asks `who are you going with?` the preposition `with` is used at the end to inquire about the company one will have.
`What are you excited about?` In this question, `about` is used at the end to inquire regarding the subject or event that is causing excitement.
`Who are you waiting for?` Here, `for` is placed at the end of the question to ask about the person for whom someone is waiting.
# --question--
## --text--
Which sentence correctly uses a preposition at the end?
## --answers--
`What are you speaking of?`
### --feedback--
While `of` is a preposition, this sentence sounds a bit awkward or formal. It would be more natural to ask, `What are you talking about?`
---
`What are you looking for?`
---
`Where is it belong?`
### --feedback--
The correct sentence should be `Where does it belong?` without the preposition at the end, as `belong` does not typically require a preposition.
---
`Who do you want to meet with she?`
### --feedback--
The correct form should be `Who do you want to meet with?` `With she` is grammatically incorrect; it should be `with her`.
## --video-solution--
2
@@ -0,0 +1,47 @@
---
id: 6630bb08c02b626826c937ae
title: Task 5
challengeType: 22
dashedName: task-5
---
<!--
AUDIO REFERENCE:
Sarah: You use them to tell the computer what kind of data you're working with.
-->
# --description--
The phrase `work with` is used to describe using or dealing with something, such as tools, materials, people, or concepts, to accomplish a task or goal. It implies cooperation or interaction.
Examples:
`I work with computers every day.`
This example shows that the person regularly uses computers as part of their daily tasks.
`She works with a team to develop new software.`
In this sentence, `work with` indicates that the person collaborates or cooperates with other people (a team) to achieve something specific, in this case, developing software.
# --fillInTheBlank--
## --sentence--
`You use them to tell the computer what kind of data you're _ _.`
## --blanks--
`working`
### --feedback--
This word suggests an ongoing process or activity; it means actively using certain types of data in programming tasks.
---
`with`
### --feedback--
This preposition is commonly used to indicate involvement or association.
@@ -0,0 +1,53 @@
---
id: 6630bc7702367d68c7679dba
title: Task 6
challengeType: 19
dashedName: task-6
---
<!--
AUDIO REFERENCE:
Sarah: Sure. Data types are fundamental in programming. You use them to tell the computer what kind of data you're working with.
-->
# --description--
Please answer the question below.
# --question--
## --text--
What does Sarah imply about `data types` in her explanation?
## --answers--
They are essential for programming and help communicate data characteristics to the computer.
---
They are optional in computer programming.
### --feedback--
`Data types` are not optional; Sarah describes them as `fundamental`, meaning they are necessary.
---
They only apply to complex data.
### --feedback--
Sarah does not limit the use of `data types` to complex data; `data types` are used for all sorts of data in programming.
---
They reduce the speed of computers.
### --feedback--
Sarah's statement implies that `data types` are helpful and necessary, not that they reduce computer performance.
## --video-solution--
1
@@ -0,0 +1,65 @@
---
id: 6630bd815e1b146937422948
title: Task 7
challengeType: 22
dashedName: task-7
---
<!--
AUDIO REFERENCE:
Jake: Thanks. But I see many data types listed in the documentation. How do I know which one to choose?
-->
# --description--
The verb `choose` means to select or decide on one or more options from a set. It is often followed by `from` implying selecting from a specific group or list.
For example, `At the restaurant, you can choose from ten different desserts.` In this sentence, `choose from` is used to imply that the restaurant offers a variety of ten desserts, and you have the freedom to make a selection based on your preference.
`Which one to choose` is a common phrase used when someone needs to decide between multiple options and is unsure which is the best choice.
# --fillInTheBlank--
## --sentence--
`Thanks. But I see _ data types listed in the documentation. How do I know _ _ _ _?`
## --blanks--
`many`
### --feedback--
This word describes the quantity. Jake is indicating that there is a large number of data types available.
---
`which`
### --feedback--
It begins a question that helps specify one item from a group. It is used here to start narrowing down choices among data types.
---
`one`
### --feedback--
It refers to a single item or choice.
---
`to`
### --feedback--
This preposition is used here to link the decision-making process.
---
`choose`
### --feedback--
It means making a selection or decision from the available options.
@@ -0,0 +1,53 @@
---
id: 6630bf29b2e38669e3c15823
title: Task 8
challengeType: 19
dashedName: task-8
---
<!--
AUDIO REFERENCE:
Jake: Thanks. But I see many data types listed in the documentation. How do I know which one to choose?
-->
# --description--
Please answer the question below.
# --question--
## --text--
What problem is Jake facing?
## --answers--
He cannot access the documentation.
### --feedback--
Jake mentions seeing the data types in the documentation, so access is not the issue.
---
He is unsure how to document his code.
### --feedback--
The question Jake poses is about choosing data types, not about documenting code.
---
He is unsure which data type to select from the list.
---
He does not understand the concept of data types.
### --feedback--
Jake's understanding of data types isn't in question; rather, his challenge is in choosing the right one from those listed.
## --video-solution--
3
@@ -0,0 +1,47 @@
---
id: 6630e609d81a446cd663c521
title: Task 9
challengeType: 22
dashedName: task-9
---
<!--
AUDIO REFERENCE:
Sarah: Good question! You usually choose data types based on the kind of information you want to store.
-->
# --description--
The verb `to store` in programming refers to the act of keeping or saving data so that it can be used later. Choosing the right data types is critical because it influences how information is `stored` and used in a program.
Different data types are suited for different kinds of information, like text, numbers, or boolean values. For example, To `store` text, a programmer might use the data type `string`.
# --fillInTheBlank--
## --sentence--
`Good question! You usually choose data types _ _ the kind of information you want to _.`
## --blanks--
`based`
### --feedback--
This word is used to indicate the foundation or reason behind a decision. Here, it introduces the criteria for choosing data types.
---
`on`
### --feedback--
This preposition is commonly used to point out the basis or criteria for decisions. It links the decision-making process to the type of information.
---
`store`
### --feedback--
This verb means to save or keep information in a computing system.
@@ -0,0 +1,50 @@
---
id: 6630e7b497466d6d8bb5b863
title: Task 10
challengeType: 19
dashedName: task-10
---
# --description--
In programming, a `string` is a data type used for storing text. A `string` can contain letters, numbers, and symbols. It is often represented by enclosing the text in quotes.
For example, `"Hello, world!"` is a `string`.
# --question--
## --text--
What is a `string` in the context of programming?
## --answers--
A piece of text
---
A type of number
### --feedback--
While a `string` can contain numbers, it is primarily used for text, not just numeric values.
---
A programming tool
### --feedback--
A `string` is a type of data used in programming, specifically for text, rather than a tool.
---
A command to start a program
### --feedback--
`String` is a data type for text, not a command to execute programs.
## --video-solution--
1
@@ -0,0 +1,48 @@
---
id: 6630e831b3a1a36de42fb705
title: Task 11
challengeType: 19
dashedName: task-11
---
# --description--
`Whole numbers` are basic numerical data types in programming and mathematics. They are numbers without fractional or decimal parts, including all positive integers (like 1, 2, 3), negative numbers (like -4, -9) and zero (0).
# --question--
## --text--
What are `whole numbers` in the context of programming?
## --answers--
Numbers with decimal parts
### --feedback--
`Whole numbers` do not have decimal parts; they are integers like 0, 1, 2, etc.
---
Negative numbers
### --feedback--
`Whole numbers` include all positive integers, negative numbers and zero.
---
Numbers without fractions or decimals
---
Letters and symbols
### --feedback--
`Whole numbers` refer to standard numerical digits, not to letters or symbols.
## --video-solution--
3
@@ -0,0 +1,56 @@
---
id: 6630e965a9e9c46e8b5a3ee2
title: Task 12
challengeType: 19
dashedName: task-12
---
# --description--
In programming, `int` stands for "integer". It's a data type used to store whole numbers, which are numbers without fractional parts or decimals. Integers can be positive, negative, or zero.
Choosing the `int` data type is essential when dealing with whole numbers, like counts, indexes in arrays, or any scenario where fractional numbers are not needed.
Examples:
Counting items: `int itemCount = 5;`
Storing age: `int age = 30;`
# --question--
## --text--
What does the `int` data type represent in programming?
## --answers--
Decimal numbers
### --feedback--
`Int` is used for whole numbers, not for numbers with decimal parts.
---
Textual information
### --feedback--
`Int` represents whole numbers, not text. `String` is used for textual information.
---
Whole numbers
---
Images or graphics
### --feedback--
`Int` is for storing numerical values, not for images or graphics.
## --video-solution--
3
@@ -0,0 +1,53 @@
---
id: 663246e8f661af779398be0e
title: Task 13
challengeType: 22
dashedName: task-13
---
<!--
AUDIO REFERENCE:
Sarah: For example, if you're working with text, you'd use this data type, "string". If it's whole numbers, you'd choose "int".
-->
# --description--
Fill in the blanks in the dialogue below.
# --fillInTheBlank--
## --sentence--
`For example, if you're working with text, you'd use this data type, "_". If it's _ _, you'd choose "_".`
## --blanks--
`string`
### --feedback--
This is the data type used for storing text.
---
`whole`
### --feedback--
This word is used to specify a type of number; they are integers without fractions or decimals.
---
`numbers`
### --feedback--
It refers to symbols or values that people use to count, measure, or label things.
---
`int`
### --feedback--
It's short for "integer"; this data type is used in programming to store whole numbers.
@@ -0,0 +1,58 @@
---
id: 6632497b37b28b78907c0a97
title: Task 14
challengeType: 19
dashedName: task-14
---
# --description--
Demonstrative pronouns such as `this`, `that`, `these`, and `those` are used to point out specific things or people. `This` and `these` refer to objects that are near the speaker. `This` is used for singular items, and `these` for plural. `That` and `those` refer to objects farther away, with `that` used for singular and `those` for plural.
Examples:
`This is my book.` (Refers to a book close to the speaker)
`That is a car.` (Refers to a car that is farther away from the speaker)
`These are my friends.` (Refers to friends who are close to the speaker)
`Those are the mountains.` (Refers to mountains that are far from the speaker)
# --question--
## --text--
Which sentence uses a demonstrative pronoun correctly?
## --answers--
`This are my shoes.`
### --feedback--
`This` is singular but `my shoes` are plural. The correct word should be `these`.
---
`Those is a bird.`
### --feedback--
`Those` is plural but `a bird` is singular. The correct word should be `that`.
---
`That are the keys.`
### --feedback--
`That` is singular but `the keys` are plural. The correct word should be `those`.
---
`These are my glasses.`
## --video-solution--
4
@@ -0,0 +1,53 @@
---
id: 66324c110747c079691211a1
title: Task 16
challengeType: 19
dashedName: task-16
---
<!--
AUDIO REFERENCE:
Sarah: Good question! You usually choose data types based on the kind of information you want to store. For example, if you're working with text, you'd use this data type, "string". If it's whole numbers, you'd choose "int".
-->
# --description--
Please answer the question below.
# --question--
## --text--
According to Sarah, how should you choose the appropriate data type for your programming needs?
## --answers--
Based on the programming language's popularity
### --feedback--
Sarah mentions choosing data types based on the information to be stored, not the popularity of the programming language.
---
Based on the advice from other programmers
### --feedback--
While advice might be helpful, Sarah specifically states that the choice should be based on the type of information you are working with.
---
Based on the type of information you need to store
---
Based on the easiest data type to use
### --feedback--
Sarah focuses on the relevance of the data type to the information, not necessarily on the ease of use.
## --video-solution--
3
@@ -0,0 +1,53 @@
---
id: 66324d85e67a5c7a072a5b4d
title: Task 15
challengeType: 19
dashedName: task-15
---
<!--
AUDIO REFERENCE:
Sarah: For example, if you're working with text, you'd use this data type, "string." If it's whole numbers, you'd choose "int."
-->
# --description--
Please answer the question below.
# --question--
## --text--
What does Sarah mean by `this data type` when talking about working with text?
## --answers--
She is referring to any data type that can handle text.
### --feedback--
Sarah is specific about the data type, not general. She mentions `string`, which is specifically used for text.
---
She is referring to the data type `string`.
---
She is talking about a new data type she just invented.
### --feedback--
Sarah is explaining well-known data types, not introducing new ones.
---
She means the data type used for numbers.
### --feedback--
Sarah specifies `string` for text, not for numbers. For numbers, she mentions `int`.
## --video-solution--
2
@@ -0,0 +1,49 @@
---
id: 66324f956a24867b039d95c4
title: Task 17
challengeType: 22
dashedName: task-17
---
<!--
AUDIO REFERENCE:
Jake: Ah, I see. So, this means I should pick the data type that matches the information I want to work with.
-->
# --description--
The word `should` is a modal verb used to give advice or suggestions. It is followed by the base form of the verb. For example, in the sentence `You should try that restaurant`, `should` is followed by `try`, which is the base form of the verb.
The verb `pick` means to choose or select something from a range of options. In the context of programming, `picking a data type` means choosing the appropriate type of data to use, like an integer, string, or boolean, based on what is most suitable for the task at hand.
`Match` means to ensure that two things are suitable or fit well together. For instance, `This key matches the lock.` It indicates the key is suitable for the lock.
# --fillInTheBlank--
## --sentence--
`Ah, I see. So, this means I _ _ the data type that _ the information I want to work with.`
## --blanks--
`should`
### --feedback--
This modal verb is used to suggest a recommended action or decision.
---
`pick`
### --feedback--
This verb means to choose or select from a range of options.
---
`matches`
### --feedback--
This verb is used to describe the action of making sure two or more items go well together or are suitable for each other.
@@ -0,0 +1,62 @@
---
id: 66325225b08cff7be37ac2e7
title: Task 19
challengeType: 19
dashedName: task-19
---
# --description--
Relative pronouns like `who`, `whom`, `which`, and `that` are used to connect relative clauses to a noun or pronoun.
`Who` and `whom` refer to people. The difference is `who` is the subject of a verb, while `whom` is used as the object of a verb or preposition.
`Which` is used for specific things or animals, and `that` can be used for people, things, or animals in defining clauses.
Examples:
`The programmer who wrote this code is brilliant.` (`who` refers to the programmer)
`The artist whom we met at the gallery is internationally recognized.` (`whom` refers to the artist)
`The tool that you lent me was useful.` (`that` refers to the tool)
`The book, which I bought yesterday, is already a bestseller.` (`which` refers to the book)
# --question--
## --text--
Which sentence uses a relative pronoun correctly?
## --answers--
`The teacher which teaches us math is very kind.`
### --feedback--
`which` is typically used for things, not people. The correct pronoun here should be `who`.
---
`The car, that won the race, is very fast.`
### --feedback--
In this sentence, the use of `that` is correct grammatically, but the commas are unnecessary. It should be: `The car that won the race is very fast.`
---
`She is the one who made the cake.`
---
`The flowers whom are on the table smell lovely.`
### --feedback--
`Whom` is used for objects of verbs or prepositions when referring to people, not for things like flowers. The correct pronoun here should be `which` or `that`.
## --video-solution--
3
@@ -0,0 +1,43 @@
---
id: 663253fdb77eab7c9f3bbd16
title: Task 18
challengeType: 22
dashedName: task-18
---
<!--
AUDIO REFERENCE:
Jake: Ah, I see. So, this means I should pick the data type that matches the information I want to work with.
-->
# --description--
This task focuses on the relative pronoun `that`. It is used to introduce a clause providing more details about a noun.
A "clause" is a part of a sentence that contains at least a subject and a verb. It can express a complete idea or add extra information to the main sentence.
The pronoun `that` helps specify or define something more clearly, connecting it to a description or a necessary detail.
For examples, `She read the book that won the Pulitzer Prize last year.` In this sentence, `that won the Pulitzer Prize last year` is a relative clause introduced by `that`. The clause describes or specifies the book, helping to distinguish it from other books. Here, `that` acts as a relative pronoun connecting the clause to the noun `book`, and it describes which particular book she read.
# --fillInTheBlank--
## --sentence--
`Ah, I see. So, this means I should pick the data type _ matches the information I want to work _.`
## --blanks--
`that`
### --feedback--
This relative pronoun is used to introduce a clause, explaining which data type to choose.
---
`with`
### --feedback--
It is a preposition that describes being involved in a cooperative or collaborative action.
@@ -0,0 +1,53 @@
---
id: 66325752419d337dc13ffd83
title: Task 20
challengeType: 19
dashedName: task-20
---
<!--
AUDIO REFERENCE:
Jake: Ah, I see. So, this means I should pick the data type that matches the information I want to work with.
-->
# --description--
Please answer the question below.
# --question--
## --text--
What does Jake's statement show about his understanding of choosing data types?
## --answers--
He thinks choosing data types is not important.
### --feedback--
This is not right because Jake's words show he knows it's important to pick the right data types for the information.
---
He knows he should pick data types that fit the information he needs.
---
He is still confused about the different data types.
### --feedback--
Jake's words show that he understands he needs to pick data types that fit the information, which means he is not confused.
---
He believes all data types are the same.
### --feedback--
This is incorrect. Jake talks about picking the right data types for different kinds of information, which means he knows they are not all the same.
## --video-solution--
2
@@ -0,0 +1,14 @@
---
id: 6632fd7b0b9f8087ff8aa3ba
title: "Dialogue 2: Asking about Functions"
challengeType: 21
dashedName: dialogue-2-asking-about-functions
---
# --description--
Watch the video below to understand the context of the upcoming lessons.
# --assignment--
Watch the video
@@ -0,0 +1,45 @@
---
id: 6632fe1b6548f7887488a767
title: Task 21
challengeType: 22
dashedName: task-21
---
<!--
AUDIO REFERENCE:
Sarah: Functions are like small, reusable tasks that you can use in your code.
-->
# --description--
The term `reusable` refers to something that can be used more than once, especially in different situations or for various purposes. In programming, `reusable` often describes code that is designed to be used multiple times, either within the same program or in different programs, without needing to be rewritten.
# --fillInTheBlank--
## --sentence--
`_ are like small, _ tasks _ you can use in your code.`
## --blanks--
`Functions`
### --feedback--
This word refers to pieces of code designed to perform a specific task.
---
`reusable`
### --feedback--
It means code or functions that can be used many times in different situations, saving time and effort.
---
`that`
### --feedback--
it refers to a thing and introduces a defining clause about it.
@@ -0,0 +1,53 @@
---
id: 6633008b3377e5894cf71629
title: Task 22
challengeType: 19
dashedName: task-22
---
<!--
AUDIO REFERENCE:
Sarah: Functions are like small, reusable tasks that you can use in your code.
-->
# --description--
Please answer the question below.
# --question--
## --text--
How does Sarah describe functions in her explanation?
## --answers--
As small, reusable tasks that can be used multiple times in code
---
As large, complex operations that are difficult to manage
### --feedback--
This choice is incorrect. Sarah specifically mentions that functions are small and reusable, not large and complex.
---
As one-time use commands that are not saved
### --feedback--
This is not right. Sarah describes functions as reusable, meaning they can be used more than once.
---
As unnecessary parts of programming that should be avoided
### --feedback--
This is incorrect because Sarah highlights functions as beneficial and reusable, which contradicts them being unnecessary.
## --video-solution--
1
@@ -0,0 +1,51 @@
---
id: 663301c3812e2e89c08dcc31
title: Task 23
challengeType: 22
dashedName: task-23
---
<!--
AUDIO REFERENCE:
Tom: Thanks for explaining, Sarah.
-->
# --description--
The expression `thanks for` is used to show gratitude for specific actions or help received. The structure is commonly followed by an `-ing` form of a verb (a gerund) or a noun to specify what the thanks are for.
Examples:
`Thanks for helping me with my homework.`
`Thanks for the advice.`
# --fillInTheBlank--
## --sentence--
`_ _ _, Sarah.`
## --blanks--
`Thanks`
### --feedback--
This word is used to express gratitude. It's often used in social and professional settings to show appreciation.
---
`for`
### --feedback--
This preposition is used to indicate the reason for the gratitude.
---
`explaining`
### --feedback--
This is the gerund form of a verb meaning to make something clear or easy to understand by describing or giving information about it.
@@ -0,0 +1,48 @@
---
id: 6633032bf786ff8a61b0c482
title: Task 24
challengeType: 19
dashedName: task-24
---
# --description--
Please answer the question below.
# --question--
## --text--
Which sentence is using `thanks for` correctly?
## --answers--
`Thanks for help me with the project.`
### --feedback--
Remember, `thanks for` should be followed by a gerund or a noun. Here, `help` should be `helping`.
---
`Thanks for to assist in the task.`
### --feedback--
The phrase `thanks for` should not be followed by `to` + verb. It should be a gerund or a noun.
---
`Thanks for assisting with the task.`
---
`Thanks for assist with the task.`
### --feedback--
Remember, `thanks for` should be followed by a gerund or a noun. Here, `assist` should be `assisting`.
## --video-solution--
3
@@ -0,0 +1,53 @@
---
id: 66330444cf1ea28af44e980d
title: Task 25
challengeType: 22
dashedName: task-25
---
<!--
AUDIO REFERENCE:
Tom: I see many functions in our code, but I'm not sure what each of those does.
-->
# --description--
Direct questions are straightforward inquiries that clearly ask for specific information. They typically invert the subject and the verb, like in `Are you sure?` This form is commonly used in everyday conversations, especially when quick and clear answers are needed.
Indirect questions or statements, on the other hand, are more polite and less direct. They do not invert the subject and the verb and often begin with phrases like `I was wondering` or `Could you tell me`. For example, instead of asking `Where do you live?` you might say, `Could you tell me where you live?` This makes the question sound less abrupt and more polite, which is particularly useful in formal settings or when you're speaking with someone you don't know well.
Examples:
Direct question: `What time is it?` (inversion of verb `is` and subject `it`)
Indirect statement: `Please tell me what time it is.` (no inversion)
# --fillInTheBlank--
## --sentence--
`I see many functions in our code, but I'm not sure _ each of _ _.`
## --blanks--
`what`
### --feedback--
This `wh-` word is used to ask for specific information about the function or role of the items being discussed.
---
`those`
### --feedback--
This pronoun refers to a specific group of items previously mentioned, in this case, the functions in the code.
---
`does`
### --feedback--
This verb is used to inquire about the action or role of each individual item.
@@ -0,0 +1,53 @@
---
id: 663308af5363be8c4a5c68b9
title: Task 26
challengeType: 19
dashedName: task-26
---
<!--
AUDIO REFERENCE:
Tom: Thanks for explaining, Sarah. I see many functions in our code, but I'm not sure what each of those does.
-->
# --description--
Please answer the question below.
# --question--
## --text--
What is Tom unsure about in his statement?
## --answers--
He is unsure how to code.
### --feedback--
This is incorrect. Tom's uncertainty is about understanding the functions in the existing code, not about his ability to code in general.
---
He is unsure who wrote the code.
### --feedback--
Tom does not mention any uncertainty about who wrote the code; his concern is with understanding what the functions do.
---
He is unsure what the functions in the code do.
---
He is unsure why Sarah is explaining the functions.
### --feedback--
Tom thanked Sarah for her explanation, indicating he appreciates the clarification, not that he's unsure why she's explaining.
## --video-solution--
3
@@ -0,0 +1,31 @@
---
id: 66330dac56ad868d51d5698c
title: Task 27
challengeType: 22
dashedName: task-27
---
<!--
AUDIO REFERENCE:
Sarah: No problem, Tom. To understand them, you can look at their names and comments.
-->
# --description--
A `comment` is a note or explanation added to the code by the programmer. Comments are not executed as part of the program; instead, they help anyone reading the code understand its purpose, functionality, or any specific details. They're essential for making code readable and maintainable.
For example, `// This is a single-line comment in JavaScript.`
# --fillInTheBlank--
## --sentence--
`No problem, Tom. To understand them, you can look at their names and _.`
## --blanks--
`comments`
### --feedback--
It refers to text written in the code that explains or describes parts of it to help anyone who reads the code understand what it does or why certain choices were made.
@@ -0,0 +1,49 @@
---
id: 66330fc6d2e3c38e148c8789
title: Task 28
challengeType: 22
dashedName: task-28
---
<!--
AUDIO REFERENCE:
Sarah: Comments explain that function's purpose.
-->
# --description--
You've already learned about demonstrative pronouns like `this`, `that`, `these` and `those`. Remember to use them to refer to specific things or people, considering their proximity in time or space.
The genitive case, often indicated by an apostrophe and `s` (like `function's`), is used to show possession or belonging, typically for people or objects. It tells people that something belongs to or is a part of something else.
The word `purpose` refers to the reason why something is done or used, or why something exists. For example, `The purpose of a clock is to tell time.`
# --fillInTheBlank--
## --sentence--
`Comments explain _ _ _.`
## --blanks--
`that`
### --feedback--
This pronoun is used to point out a specific thing being discussed or referred to in the context.
---
`function's`
### --feedback--
This possessive form shows that something belongs to the function.
---
`purpose`
### --feedback--
It refers to the reason or goal behind something. In this context, it describes what the function is intended to do or achieve, as explained by the comments in the code.
@@ -0,0 +1,53 @@
---
id: 66331263a35e868f3dade3de
title: Task 29
challengeType: 19
dashedName: task-29
---
<!--
AUDIO REFERENCE:
Sarah: No problem, Tom. To understand them, you can look at their names and comments. Comments explain that function's purpose.
-->
# --description--
Please answer the question below.
# --question--
## --text--
How does Sarah suggest Tom should understand the functions?
## --answers--
By memorizing the code of each function
### --feedback--
This is incorrect. Sarah advises looking at the names and comments associated with the functions, not memorizing their code.
---
By looking at their names and comments
---
By asking other programmers
### --feedback--
Sarah does not mention consulting other programmers; she focuses on using the names and comments within the code itself.
---
By rewriting the functions
### --feedback--
Rewriting is not suggested by Sarah. She recommends understanding them through the existing names and comments in the code.
## --video-solution--
2
@@ -0,0 +1,54 @@
---
id: 66331384245d028fd8b1be23
title: Task 30
challengeType: 19
dashedName: task-30
---
<!--
AUDIO REFERENCE:
Sarah: No problem, Tom. To understand them, you can look at their names and comments. Comments explain that function's purpose.
Tom: Got it. So, that means I should read the function names and comments to know what those functions do.
-->
# --description--
Please answer the question below.
# --question--
## --text--
What does `that` refer to in Tom's statement?
## --answers--
That he should rewrite the functions
### --feedback--
This is incorrect. Tom's use of `that` does not imply rewriting but understanding the existing functions as explained by Sarah.
---
That he should read the function names and comments to understand what the functions do
---
That he should ignore the comments
### --feedback--
Incorrect. Tom acknowledges the importance of reading comments, not ignoring them, as they help explain the function's purpose.
---
That he needs to learn programming from scratch
### --feedback--
This is not suggested in any part of the conversation. Tom is discussing how to better understand functions, not learning programming from the beginning.
## --video-solution--
2
@@ -0,0 +1,37 @@
---
id: 663315286b7cff907e92ae25
title: Task 31
challengeType: 22
dashedName: task-31
---
<!--
AUDIO REFERENCE:
Tom: Got it. So, that means I should read the function names and comments to know what those functions do.
-->
# --description--
The modal verb `should` is used to express obligation, recommendation, or advice. Tom uses it to express that reading the function names and comments is a good idea to understand the functions better.
# --fillInTheBlank--
## --sentence--
`Got it. So, that means I _ _ the function names and comments to know what those functions do.`
## --blanks--
`should`
### --feedback--
It is used to suggest something advisable or recommendable.
---
`read`
### --feedback--
This verb describes the action Tom believes is necessary to gain understanding. It implies looking at and comprehending the text.
@@ -0,0 +1,53 @@
---
id: 663316fdcce39d9144ae40cd
title: Task 32
challengeType: 22
dashedName: task-32
---
<!--
AUDIO REFERENCE:
Tom: Got it. So, that means I should read the function names and comments to know what those functions do.
-->
# --description--
The word `what` can be used to introduce a clause. It typically introduces noun clauses, providing more information about a noun or acting as a part of a statement.
A noun clause is a clause that functions as a noun within a larger sentence. It typically includes a subject and a verb, and can act as the subject, object, or complement in a sentence.
For example, in the sentence `She doesn't know what to buy`, `what to buy` is a clause where `what` stands for the thing that she needs to decide on purchasing.
Another example is `Tell me what you heard.` `What you heard` is the clause, with `what` explaining the specific things that were heard, acting as the object of the verb `heard`.
`Those` as a demonstrative pronoun refers to specific items previously mentioned or understood from the context.
# --fillInTheBlank--
## --sentence--
`Got it. So, that means I should read the function names and comments to know _ _ functions _.`
## --blanks--
`what`
### --feedback--
This word introduces a clause, leading to information that explains the activities or responsibilities of these functions.
---
`those`
### --feedback--
This pronoun refers back to a specific group of functions previously discussed or understood from the context.
---
`do`
### --feedback--
This verb completes the indirect statement, indicating the actions performed by the functions.
@@ -0,0 +1,48 @@
---
id: 6633203e58595e93ef54ba3b
title: Task 33
challengeType: 19
dashedName: task-33
---
# --description--
Please answer the question below.
# --question--
## --text--
Which sentence uses `what` correctly?
## --answers--
`She knows what does he like.`
### --feedback--
This is incorrect. The correct structure should be `She knows what he likes`, without the auxiliary verb `does` in the clause.
---
`What she is watching is very interesting?`
### --feedback--
This sentence incorrectly ends with a question mark as it is not a question but a statement.
---
`I don't understand what you mean.`
---
`Tell me what is your name.`
### --feedback--
This is incorrect. The correct question form is `What is your name?` or `Tell me what your name is.`
## --video-solution--
3
@@ -0,0 +1,53 @@
---
id: 6633261bb572f2953f5abd13
title: Task 34
challengeType: 19
dashedName: task-34
---
<!--
AUDIO REFERENCE:
Tom: Got it. So, that means I should read the function names and comments to know what those functions do.
-->
# --description--
Please answer the question below.
# --question--
## --text--
What is Tom likely to do next?
## --answers--
He will write new functions.
### --feedback--
This is incorrect. Tom's focus is on understanding existing functions, not creating new ones.
---
He will delete unnecessary comments.
### --feedback--
Tom did not mention removing anything; he is interested in reading and understanding the comments to gain clarity.
---
He will ask Sarah for further explanations.
### --feedback--
While possible, there's no indication in Tom's statement that he needs more help from Sarah at this moment.
---
He will review the function names and comments in the code.
## --video-solution--
4
@@ -0,0 +1,14 @@
---
id: 66334fd916a3a697e1d2c631
title: "Dialogue 3: Getting Help with Variables"
challengeType: 21
dashedName: dialogue-3-getting-help-with-variables
---
# --description--
Watch the video below to understand the context of the upcoming lessons.
# --assignment--
Watch the video
@@ -0,0 +1,37 @@
---
id: 663350023c7cb898358af702
title: Task 35
challengeType: 22
dashedName: task-35
---
<!--
AUDIO REFERENCE:
Tom: Hey, Sophia, I'm working on a project that uses many variables. I'm not sure how to manage them all.
-->
# --description--
`That` can be used as a relative pronoun to connect parts of a sentence, referring to nouns mentioned earlier. It's often used to give more information about something or to define it more clearly.
# --fillInTheBlank--
## --sentence--
`Hey, Sophia, I'm working on a project _ uses many _. I'm not sure how to manage them all.`
## --blanks--
`that`
### --feedback--
This word connects the project to what it uses, serving as a bridge between `project` and the information that follows.
---
`variables`
### --feedback--
It is like a box where you can store information that can change; it is used to keep track of data that might change as the program runs.
@@ -0,0 +1,53 @@
---
id: 6633511c7b197798ad5fd703
title: Task 36
challengeType: 19
dashedName: task-36
---
<!--
AUDIO REFERENCE:
Tom: Hey, Sophia, I'm working on a project that uses many variables. I'm not sure how to manage them all.
-->
# --description--
Please answer the question below.
# --question--
## --text--
What is Tom working on, and what problem is he experiencing?
## --answers--
He is working on a software that uses many variables but can't decide which programming language to use.
### --feedback--
This option isn't correct. Tom's problem is not about choosing a programming language, but about managing many variables.
---
He is working on a project and is unsure how to manage variables in the project.
---
He is developing a new application that involves many variables and is struggling with too much data.
### --feedback--
While it mentions variables and a struggle, Tom specifically said his challenge is managing the variables, not handling too much data.
---
He is creating a database that includes many variables but is unsure about the structure.
### --feedback--
This option isn't accurate because Tom mentioned he is working on a project, not specifically a database, and his issue is with managing the variables.
## --video-solution--
2
@@ -0,0 +1,51 @@
---
id: 663352b4860f03995736b6cd
title: Task 37
challengeType: 22
dashedName: task-37
---
<!--
AUDIO REFERENCE:
Sophia: Variables help you store information in your code, like names, numbers, and more.
-->
# --description--
`Store information` means to keep or save data in a specific location, usually in a variable. Variables are like containers in your code that hold information, such as numbers, text, or other types of data. You can think of them as named storage spots where you can access the `stored information` later in your code.
For example, `int age = 30;` Here, the variable `age` stores the number 30.
The word `like` is used as a preposition to give examples or to compare similar things.
For instance, if you say, `I love fruits like apples and oranges.` You are using `like` to give examples of the type of fruits you love, suggesting that there might be more fruits on that list.
# --fillInTheBlank--
## --sentence--
`Variables help you _ _ in your code, _ names, numbers, and more.`
## --blanks--
`store`
### --feedback--
This word means to keep or save something for future use. In the context, it refers to keeping data in a variable.
---
`information`
### --feedback--
It refers to data or details that are kept in the computer. In this sentence, it means the data saved in variables.
---
`like`
### --feedback--
It is used to give examples of what can be stored in variables.
@@ -0,0 +1,59 @@
---
id: 663354f60aafd69a4c0138da
title: Task 38
challengeType: 22
dashedName: task-38
---
<!--
AUDIO REFERENCE:
Sophia: You can use the equals symbol to assign values to them.
-->
# --description--
The `equals symbol` (`=`) is commonly used for assignment. It's used to assign a value to a variable. The variable name is written on the left of the equals symbol, and the value you want to store in the variable is on the right.
For example, `name = "Sophia";` assigns the string `"Sophia"` to the variable `name`.
To `assign a value` in programming means to give a specific value to a variable. The `equals symbol` (`=`) is commonly used for this purpose. When you assign a value to a variable, you are telling the program to remember that value for use later.
For example, `age = 25` assigns the value `25` to the variable `age`.
# --fillInTheBlank--
## --sentence--
`You can use the _ _ to _ _ to them.`
## --blanks--
`equals`
### --feedback--
It refers to the `=` sign in programming, used for setting a variable to a specific value.
---
`symbol`
### --feedback--
It refers to a graphical sign or character used to represent an operation or process in programming.
---
`assign`
### --feedback--
It means to give a particular value to a variable. It's like telling the computer "this variable holds this data".
---
`values`
### --feedback--
They are the actual data or information you want to store in a variable, like a number, text, or other types of data.
@@ -0,0 +1,53 @@
---
id: 66339d408258519c61151a64
title: Task 39
challengeType: 19
dashedName: task-39
---
<!--
AUDIO REFERENCE:
Sophia: Variables help you store information in your code, like names, numbers, and more. You can use the equals symbol to assign values to them.
-->
# --description--
Please answer the question below.
# --question--
## --text--
How do variables work in programming?
## --answers--
Variables organize code and are accessed through specific keywords.
### --feedback--
Variables store information, not just organize code, and the method mentioned doesn't specifically involve using the equals symbol.
---
Variables track changes in values using mathematical symbols.
### --feedback--
This isn't right because it incorrectly suggests that variables track changes by themselves and emphasizes mathematical symbols, not assignment.
---
Variables control program flow and use commands to modify data.
### --feedback--
This option is incorrect as it misrepresents variables as controlling program flow, which is not their primary function.
---
Variables store information and use the equals symbol to assign values.
## --video-solution--
4
@@ -0,0 +1,50 @@
---
id: 66339e21256f099cd722292f
title: Task 40
challengeType: 19
dashedName: task-40
---
# --description--
A `constant` in programming is similar to a variable, but once it is assigned a value, that value cannot be changed. `Constants` are used when you have values that you know will not need to be modified throughout the program. They are often written in uppercase letters to distinguish them from variables.
For example, `const PI = 3.14;` In many programming languages, `const` is used to declare a constant. Here, `PI` is a `constant` with assigned value `3.14`.
# --question--
## --text--
What is a `constant` in programming?
## --answers--
A value that changes over time
### --feedback--
A `constant` is a value that does not change once it's set, unlike a variable.
---
A type of programming language
### --feedback--
A `constant` is a concept within programming languages, not a language itself.
---
A value that does not change once set
---
A part of the computer hardware
### --feedback--
A `constant` is a coding concept, not a physical component of computers.
## --video-solution--
3
@@ -0,0 +1,59 @@
---
id: 66339f1995bdea9d4aa28cd8
title: Task 41
challengeType: 22
dashedName: task-41
---
<!--
AUDIO REFERENCE:
Tom: Thanks, Sophia. I'm also using many constants in my project. But what's the difference between variables and constants?
-->
# --description--
The word `difference` refers to the way in which two or more things are not the same. It highlights the distinct characteristics or qualities between items or concepts.
For example, if you look at an apple and an orange, the `difference` includes their color, taste, and texture.
The preposition `between` is often used in the phrase `difference between` to compare two things or discuss the contrasts that exist when comparing two things.
For instance, `He explained the difference between Java and Python.`
# --fillInTheBlank--
## --sentence--
`Thanks, Sophia. I'm also using many _ in my project. But _ the _ _ variables and constants?`
## --blanks--
`constants`
### --feedback--
It refer to fixed values in programming that do not change throughout the execution of the program, unlike variables.
---
`what's`
### --feedback--
It is a contraction commonly used in questions to inquire about something, in this case, asking for an explanation or clarification.
---
`difference`
### --feedback--
It means two or more things which you are comparing are not the same. It's used to highlight distinctions.
---
`between`
### --feedback--
It is used to refer to two things being compared.
@@ -0,0 +1,53 @@
---
id: 6633a14f17a4669e1c980d91
title: Task 42
challengeType: 19
dashedName: task-42
---
<!--
AUDIO REFERENCE:
Tom: Thanks, Sophia. I'm also using many constants in my project. But what's the difference between variables and constants?
-->
# --description--
Please answer the question below.
# --question--
## --text--
What does Tom want to know?
## --answers--
How to define constants in his project
### --feedback--
This option isn't correct. Tom is asking about the distinction between two concepts, not how to define constants.
---
Why he should use constants instead of variables
### --feedback--
This isn't correct because Tom's question is about understanding the differences, not the reasons for using one over the other.
---
The difference between variables and constants
---
Which is better to use in his project: variables or constants
### --feedback--
This option is misleading. Tom is looking for clarification on the differences, not advice on which is better to use.
## --video-solution--
3
@@ -0,0 +1,57 @@
---
id: 6633a2a86218659eb77fb9a1
title: Task 43
challengeType: 22
dashedName: task-43
---
<!--
AUDIO REFERENCE:
Sophia: Great question, Tom. Variables can change their values, but constants stay the same.
-->
# --description--
The modal verb `can` is used to indicate possibility or ability. For example, in the sentence `You can see the stars at night`, `can` shows that it is possible to see the stars during nighttime.
`Change` means to make or become different. In everyday life, you might `change` your clothes after work, indicating you switch from work clothes to casual ones.
`Stay the same` means to remain unchanged or constant. For example, `The rules of the game stay the same every year.` This means the rules do not alter from one year to the next.
# --fillInTheBlank--
## --sentence--
`Great question, Tom. Variables can _ their values, but constants _ _ _.`
## --blanks--
`change`
### --feedback--
It describes how the values of variables can be altered or modified during the execution of a program.
---
`stay`
### --feedback--
It is used here as part of the phrase meaning to remain in the same state or condition.
---
`the`
### --feedback--
It is used as part of the phrase indicating that the state being referred to is specific and defined.
---
`same`
### --feedback--
It completes the phrase emphasizing that something does not vary or alter from its original state.
@@ -0,0 +1,54 @@
---
id: 6633a45ce837ac9f95394eab
title: Task 44
challengeType: 19
dashedName: task-44
---
<!--
AUDIO REFERENCE:
Sophia: Great question, Tom. Variables can change their values, but constants stay the same.
-->
# --description--
Please answer the question below.
# --question--
## --text--
What is the difference between variables and constants according to Sophia?
## --answers--
Variables' values can be different, but constants remain unchanged.
---
Variables and constants are both used to store values permanently.
### --feedback--
This option isn't correct because constants are permanent, but variables can change.
---
Constants can change their values just like variables.
### --feedback--
This isn't accurate. Constants do not change their values—they stay the same, unlike variables.
---
Variables are used less frequently than constants in programming.
### --feedback--
The frequency of use isn't discussed, and Sophia's statement focuses on usage rather than their functional difference.
## --video-solution--
1
@@ -0,0 +1,69 @@
---
id: 6633a64567c725a05a94b68f
title: Task 45
challengeType: 22
dashedName: task-45
---
<!--
AUDIO REFERENCE:
Sophia: Think of variables as containers you can fill and empty, and constants as locked boxes that keep the same contents.
-->
# --description--
In this task, you'll explore the metaphorical use of terms to understand programming concepts. Metaphors are a powerful way to visualize and explain complex ideas by relating them to everyday objects or actions.
`Container` is used metaphorically to describe variables as things that can hold and store different data, much like how a `container` can hold different items.
The actions `fill and empty` describe how you can add or remove data from variables, similar to how you might `fill` a water bottle or pour the water out.
`Locked boxes` describes constants as secure, unchangeable `containers`, emphasizing they can't be changed once set.
The phrase `keep the same contents` highlights that the data in constants does not change, like a box that is locked and always holds the same things inside.
# --fillInTheBlank--
## --sentence--
`Think of variables as _ you can _ and _, and constants as _ boxes that keep the same _ .`
## --blanks--
`containers`
### --feedback--
It metaphorically represent variables, emphasizing their ability to hold various types of data that can be changed over time.
---
`fill`
### --feedback--
It describes adding data to variables.
---
`empty`
### --feedback--
It is the process of removing data from variables.
---
`locked`
### --feedback--
It emphasizes that constants are secure and cannot be changed once they are set, similar to a box with a lock.
---
`contents`
### --feedback--
It refers to the data held within constants, which remains the same throughout the program.
@@ -0,0 +1,53 @@
---
id: 6633a97f928771a163b59745
title: Task 46
challengeType: 19
dashedName: task-46
---
<!--
AUDIO REFERENCE:
Sophia: Think of variables as containers you can fill and empty, and constants as locked boxes that keep the same contents.
-->
# --description--
Please answer the question below.
# --question--
## --text--
Which sentence accurately describes the difference between variables and constants as explained by Sophia?
## --answers--
Variables are flexible storage units, while constants are secure storage units that cannot be altered.
### --feedback--
This option, while somewhat accurate, doesn't fully capture the metaphor of filling and emptying versus locked boxes that Sophia used.
---
Variables can store multiple types of data at once, whereas constants can only store one type.
### --feedback--
This statement is misleading because it focuses on the types of data rather than how the data can be altered or remains fixed, which is the main point of Sophias explanation.
---
Variables act as containers that can be filled and emptied, while constants act as locked boxes that keep unchanged contents.
---
Variables are always changing, and constants are never used more than once.
### --feedback--
This option is incorrect as it suggests constants are never used more than once, which is not true. They are used repeatedly but their values do not change.
## --video-solution--
3
@@ -0,0 +1,50 @@
---
id: 6633aa9cf90591a1f63a431e
title: Task 47
challengeType: 19
dashedName: task-47
---
# --description--
The connector `so` is used to introduce a result or effect related to what has been said. It often shows a cause-and-effect relationship between two parts of a sentence.
For example, `It was raining, so we canceled the picnic.` This shows that the picnic was canceled because of the rain.
# --question--
## --text--
Which sentence is using `so` correctly?
## --answers--
`I was hungry so I am eating.`
### --feedback--
This sentence almost uses `so` correctly, but the tense in the second part should match the first. It would be correct to say: `I was hungry, so I ate.`
---
`She is late to work, so she misses the meeting.`
### --feedback--
The use of `so` suggests a consequence, but the tenses are mismatched. It should be: `She is late to work, so she will miss the meeting.`
---
`It started raining, so we took shelter.`
---
`He likes to read books, so he buys a lamp.`
### --feedback--
This sentence does not correctly use `so` because buying a lamp is not a direct result of liking to read books. A better use might be: `He likes to read at night, so he bought a lamp.`
## --video-solution--
3
@@ -0,0 +1,54 @@
---
id: 6633abfc050e82a29a76dd42
title: Task 48
challengeType: 19
dashedName: task-48
---
# --description--
`Can` is used to show that something is possible or someone is capable of doing something, while `can't` is a contraction of `cannot`, indicating that something is impossible or someone is incapable of doing something. Both words should be followed by the base form of verbs.
Examples:
`I can swim.` (showing ability)
`I can't swim.` (showing inability or lack of ability)
# --question--
## --text--
Which sentence is using `can` or `can't` correctly?
## --answers--
`I can to play the guitar.`
### --feedback--
This sentence is incorrect because `to` should not be used with `can`. The correct sentence would be: `I can play the guitar.`
---
`She can't see without her glasses.`
---
`We can goes to the park tomorrow.`
### --feedback--
The modal `can` is followed by a base form of the verb, so `goes` should be `go`.
---
`He can driving at night.`
### --feedback--
`Can` should be followed by the base form of the verb without `ing`. The correct sentence should be: `He can drive at night.`
## --video-solution--
2
@@ -0,0 +1,63 @@
---
id: 6633ad387b6914a3313339b3
title: Task 49
challengeType: 22
dashedName: task-49
---
<!--
AUDIO REFERENCE:
Tom: I see. So, that means I can change the values in these variables, but I can't touch the values in these constants.
-->
# --description--
`Touch` often means to come into physical contact with something. It can also be used metaphorically in contexts like programming, where it means to alter or affect something.
`These` is used to refer to specific items that are close to the speaker or are being actively discussed.
# --fillInTheBlank--
## --sentence--
`I see. _, that means I _ change the values in _ variables, but I _ _ the values in these constants.`
## --blanks--
`So`
### --feedback--
It is used here to introduce a conclusion or result based on what was previously stated, linking it logically.
---
`can`
### --feedback--
It expresses the ability to do something. In this context, it means Tom has the ability to modify the variables.
---
`these`
### --feedback--
It is used to specify which variables Tom is talking about, pointing to a particular group of variables that are close in context.
---
`can't`
### --feedback--
It indicates an inability to perform an action. Here, it emphasizes that Tom is not able to alter the constants.
---
`touch`
### --feedback--
In the context, it means to alter or affect. Tom is saying he is not allowed to change the constants.
@@ -0,0 +1,53 @@
---
id: 6633ae85f1fb7aa3ca13234d
title: Task 50
challengeType: 19
dashedName: task-50
---
<!--
AUDIO REFERENCE:
Tom: I see. So, that means I can change the values in these variables, but I can't touch the values in these constants.
-->
# --description--
Please answer the question below.
# --question--
## --text--
Based on Tom's explanation, which scenario best illustrates the difference between variables and constants in a practical situation?
## --answers--
Variables are like the volume of a radio, which you can adjust anytime, whereas constants are like a sealed CD, whose songs cannot be altered.
---
Variables and constants both need regular updates to stay effective.
### --feedback--
This option is incorrect because constants do not change or need updates; they remain the same, unlike variables which can be updated.
---
You can pause or play music on a radio, just as you can switch variables and constants on and off.
### --feedback--
This isn't right because constants, unlike variables, cannot be 'switched off' or altered; they are permanent once set.
---
Tom can only use constants during certain times of the day, while variables can be used anytime.
### --feedback--
This statement is misleading as it suggests that the use of constants is time-restricted, which isn't true. Constants, like variables, do not have usage restrictions based on time but are defined by their unchangeable nature.
## --video-solution--
1
@@ -1,15 +0,0 @@
---
id: 655c12384a3d2e8a0d5e3efd
title: "Dialogue: Placeholder"
challengeType: 21
videoId: nLDychdBwUg
dashedName: dialogue-placeholder
---
# --description--
Watch the video above to understand the context of the upcoming lessons.
# --assignment--
Watch the video