Challenge - 5 Problems
Sequential Step Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of this sequential step execution code?
Consider the following Python code simulating sequential steps in an AI agent. What will be printed after running it?
Agentic AI
steps = ['load data', 'preprocess', 'train model', 'evaluate'] results = [] for step in steps: results.append(f"Completed: {step}") print(results[-1])
Attempts:
2 left
💡 Hint
Look at the last item appended to the results list.
✗ Incorrect
The loop appends a message for each step. The last step is 'evaluate', so the last printed message is 'Completed: evaluate'.
❓ Model Choice
intermediate2:00remaining
Which model architecture best fits a sequential step execution task?
You want to design an AI agent that processes tasks step-by-step in order. Which model type is best suited for this?
Attempts:
2 left
💡 Hint
Think about models that handle sequences and remember past steps.
✗ Incorrect
RNNs are designed to process sequences step-by-step, keeping track of previous information, making them ideal for sequential tasks.
❓ Hyperparameter
advanced2:00remaining
Which hyperparameter controls how much past information is kept in a sequential model?
In a recurrent neural network, which hyperparameter affects how much the model remembers from previous steps?
Attempts:
2 left
💡 Hint
This parameter determines the memory capacity of the model's internal state.
✗ Incorrect
The hidden state size controls how much information the model can store and use from previous steps in the sequence.
❓ Metrics
advanced2:00remaining
Which metric best evaluates step-by-step prediction accuracy in sequential tasks?
You have a model predicting the next step in a sequence. Which metric best measures how often the model predicts the correct next step?
Attempts:
2 left
💡 Hint
Think about a metric that counts correct predictions out of total predictions.
✗ Incorrect
Accuracy measures the proportion of correct predictions, which is suitable for step-by-step classification tasks.
🔧 Debug
expert2:00remaining
Why does this sequential step execution code raise an error?
Examine the code below. Why does it raise an error when run?
Agentic AI
steps = ['step1', 'step2', 'step3'] results = [] for i in range(len(steps)+1): results.append(steps[i]) print(results)
Attempts:
2 left
💡 Hint
Check the range used in the loop compared to the list length.
✗ Incorrect
The loop runs one step too many, causing an IndexError when accessing steps[i] with i equal to the list length.