Información

Fecha de entrega 31/12/9999 23:59:59
Tiempo límite de envío Sin límite de envío

Inicia sesión

Pyttern-Visualizer (Task B)

Be sure that you completed "Pyttern-Visualizer (Task A)" and "Pyttern-Visualizer (Task B)" before this task.

-- Task B --

You are now teaching an advanced Python class. You assigned your students to implement a Vehicle hierarchy — a base Vehicle class and a subclass (e.g., Car, Truck, Bus). You have received 12 student submissions.

You are given 5 pattern files. Your task is to build a compound pattern named ProperInheritance that combines these patterns to enforce the following rule:

Proper inheritance means: The code has a parent class and a child class that inherits from it, AND the child class calls super().__init__(), AND the __init__ method does NOT return a value, AND the code has at least one method that either returns a value directly OR has an early return inside a conditional block.

Once you have built the compound pattern, upload all 12 student code files and analyze the results.


Pregunta 1: Matched Submissions

Which student submissions matched the full compound pattern?

Pregunta 2: Not-Matched Submissions

Which student submissions did not match the compound pattern?

Pregunta 3: Not-Validated Submissions

Were there any submissions that could not be validated? If so, which one?

Pregunta 4: Validation Error Detail

For the file that has a validation error, what is the exact problem? Name the file and explain briefly.

Pregunta 5: Total Match Count

How many files matched the compound pattern in total?

Pregunta 6: Filter: has_parent_child AND has_super_init (the number of files)

How many files matched both has_parent_child and has_super_init?

Pregunta 7: Filter: parent_child but not super_init

Which submissions matched has_parent_child but did not match has_super_init?

Pregunta 8: Match Results

Please upload the match results as a CSV file


Tamaño máximo de archivo: 1.0 MiB
Extensiones permitidas: .csv