mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-11 07:00:41 -04:00
fix(curriculum): adjust wrong feedback pattern for comprehension questions (#64216)
This commit is contained in:
@@ -199,10 +199,6 @@ Think about how abstraction simplifies interaction with complex systems.
|
||||
|
||||
To hide complex logic and only show essential features
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about how abstraction simplifies interaction with complex systems.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
4
|
||||
@@ -223,10 +219,6 @@ The ABC module enforces method implementation in child classes.
|
||||
|
||||
By using decorators and inheritance to define abstract methods that subclasses must implement.
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ABC module enforces method implementation in child classes.
|
||||
|
||||
---
|
||||
|
||||
By automatically hiding all methods with double underscores.
|
||||
@@ -263,10 +255,6 @@ Think about how the interface is what you directly interact with, while the comp
|
||||
|
||||
The Interface is the steering wheel, brakes, and accelerator, and the complex system is the engine, transmission, and braking physics.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about how the interface is what you directly interact with, while the complex system is how it works.
|
||||
|
||||
---
|
||||
|
||||
The interface is the car manual, and the complex system is the dashboard controls.
|
||||
|
||||
@@ -98,10 +98,6 @@ Calling the form's `requestSubmit()` method.
|
||||
|
||||
Double-clicking anywhere within the form.
|
||||
|
||||
### --feedback--
|
||||
|
||||
The lesson mentions three specific ways to submit a form.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
4
|
||||
|
||||
@@ -150,10 +150,6 @@ Think about how a child class can reuse and extend attributes and methods from a
|
||||
|
||||
To allow a child class to reuse and extend attributes/methods from a parent class.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about how a child class can reuse and extend attributes and methods from a parent class.
|
||||
|
||||
---
|
||||
|
||||
To make all methods in a class private.
|
||||
@@ -198,10 +194,6 @@ Think about the style of inheritance that allows a child to inherit from several
|
||||
|
||||
A child class inheriting from multiple parent classes.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about the style of inheritance that allows a child to inherit from several classes.
|
||||
|
||||
---
|
||||
|
||||
A class that cannot inherit at all.
|
||||
@@ -246,10 +238,6 @@ The syntax involves parentheses in the class definition.
|
||||
|
||||
By passing the Parent class as an argument to the Child class.
|
||||
|
||||
### --feedback--
|
||||
|
||||
The syntax involves parentheses in the class definition.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
4
|
||||
|
||||
@@ -158,10 +158,6 @@ Think about how the word “polymorphism” means “many forms” of the same a
|
||||
|
||||
When different classes can use the same method name but implement it differently.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about how the word “polymorphism” means “many forms” of the same action.
|
||||
|
||||
---
|
||||
|
||||
When a method must be unique across all classes.
|
||||
@@ -190,10 +186,6 @@ In inheritance-based polymorphism, what must a child class do to provide its own
|
||||
|
||||
Override the method by redefining it with the same name.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about how a child class redefines the method while keeping the same signature.
|
||||
|
||||
---
|
||||
|
||||
Declare the method as `@static`.
|
||||
@@ -246,10 +238,6 @@ Look out for how polymorphism lets you call the same method on different child c
|
||||
|
||||
It allows calling the same method name on different child objects, with each executing its own version.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Look out for how polymorphism lets you call the same method on different child classes.
|
||||
|
||||
---
|
||||
|
||||
It merges all child methods into the parent class.
|
||||
|
||||
@@ -147,10 +147,6 @@ Focus on how Python handles attributes that start with `_` vs `__`.
|
||||
|
||||
A single underscore is just a convention, while a double underscore triggers name mangling.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Focus on how Python handles attributes that start with `_` vs `__`.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
4
|
||||
@@ -179,10 +175,6 @@ Think about how Python internally renames double underscore attributes.
|
||||
|
||||
A process in which Python changes `__attribute` into `_ClassName__attribute` to avoid accidental overriding in subclasses.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about how Python internally renames double underscore attributes.
|
||||
|
||||
---
|
||||
|
||||
A process in which Python encrypts private data to make it inaccessible from outside the class.
|
||||
@@ -211,10 +203,6 @@ Think about what `print(c.__dict__)` shows when both classes use the same attrib
|
||||
|
||||
The child class completely overrides the parent class attribute, and the parent's data is lost.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about what `print(c.__dict__)` shows when both classes use the same attribute name without `__`.
|
||||
|
||||
---
|
||||
|
||||
The parent class attributes become read-only and cannot be changed by the child class.
|
||||
|
||||
@@ -169,10 +169,6 @@ What are the four key principles of Object-Oriented Programming (OOP)?
|
||||
|
||||
Encapsulation, Inheritance, Polymorphism, Abstraction
|
||||
|
||||
### --feedback--
|
||||
|
||||
Look out for the principles that define how data and behavior are organized in OOP.
|
||||
|
||||
---
|
||||
|
||||
Variables, Functions, Loops, Conditionals
|
||||
@@ -217,10 +213,6 @@ Think about how encapsulation exists to protect an object's internal state.
|
||||
|
||||
Because it violates encapsulation, allowing uncontrolled data access.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about how encapsulation exists to protect an object's internal state.
|
||||
|
||||
---
|
||||
|
||||
Because private properties are slower to access than public ones.
|
||||
@@ -265,10 +257,6 @@ Look out for the symbols used to prefix the name of a private attribute or metho
|
||||
|
||||
Prefix with a double underscore
|
||||
|
||||
### --feedback--
|
||||
|
||||
Look out for the symbols used to prefix the name of a private attribute or method.
|
||||
|
||||
---
|
||||
|
||||
Use the private keyword
|
||||
|
||||
@@ -163,10 +163,6 @@ Think about methods that allow validation or computation when reading and writin
|
||||
|
||||
Properties
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about methods that allow validation or computation when reading and writing data.
|
||||
|
||||
---
|
||||
|
||||
Direct attribute access.
|
||||
@@ -187,10 +183,6 @@ What ties getters and setters together so you can execute logic while maintainin
|
||||
|
||||
Properties
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about a feature that lets you use methods like attributes with simple dot syntax.
|
||||
|
||||
---
|
||||
|
||||
Decorators
|
||||
@@ -251,10 +243,6 @@ Think about decorators that allow method calls to use simple dot notation withou
|
||||
|
||||
`@property` and `@<property_name>.setter`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about decorators that allow method calls to use simple dot notation without parentheses.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
4
|
||||
|
||||
@@ -69,10 +69,6 @@ Which of the following is NOT a type of performance testing?
|
||||
|
||||
CPU testing
|
||||
|
||||
### --feedback--
|
||||
|
||||
One of these options refers to the "brain" of a computer and is not a type of performance testing.
|
||||
|
||||
---
|
||||
|
||||
Load testing
|
||||
|
||||
@@ -74,22 +74,30 @@ Which of the following is not a web-safe font?
|
||||
|
||||
`Arial`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about the most common fonts used on the web.
|
||||
|
||||
---
|
||||
|
||||
`Verdana`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about the most common fonts used on the web.
|
||||
|
||||
---
|
||||
|
||||
`Georgia`
|
||||
|
||||
---
|
||||
|
||||
`Dancing Script`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about the most common fonts used on the web.
|
||||
|
||||
---
|
||||
|
||||
`Dancing Script`
|
||||
|
||||
## --video-solution--
|
||||
|
||||
4
|
||||
|
||||
@@ -109,10 +109,6 @@ Which of the following is NOT a valid value for the `type` attribute inside butt
|
||||
|
||||
`src`
|
||||
|
||||
### --feedback--
|
||||
|
||||
One of these options is the name of an attribute and not a valid value.
|
||||
|
||||
---
|
||||
|
||||
`button`
|
||||
|
||||
@@ -234,10 +234,6 @@ Functional pseudo-classes use parentheses and accept arguments inside them.
|
||||
|
||||
`:first-child`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Functional pseudo-classes use parentheses and accept arguments inside them.
|
||||
|
||||
---
|
||||
|
||||
`:has()`
|
||||
|
||||
Reference in New Issue
Block a user