0
0
Agentic AIml~20 mins

Sequential step execution in Agentic AI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Sequential Step Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2: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])
ACompleted: train model
BCompleted: evaluate
CCompleted: preprocess
DCompleted: load data
Attempts:
2 left
💡 Hint
Look at the last item appended to the results list.
Model Choice
intermediate
2: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?
AConvolutional Neural Network (CNN)
BAutoencoder
CFeedforward Neural Network
DRecurrent Neural Network (RNN)
Attempts:
2 left
💡 Hint
Think about models that handle sequences and remember past steps.
Hyperparameter
advanced
2: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?
AHidden state size
BBatch size
CLearning rate
DDropout rate
Attempts:
2 left
💡 Hint
This parameter determines the memory capacity of the model's internal state.
Metrics
advanced
2: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?
AAccuracy
BF1 Score
CMean Squared Error (MSE)
DPerplexity
Attempts:
2 left
💡 Hint
Think about a metric that counts correct predictions out of total predictions.
🔧 Debug
expert
2: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)
AValueError because range argument is invalid
BTypeError because steps is not iterable
CIndexError because the loop tries to access an index outside the list range
DSyntaxError due to missing colon in for loop
Attempts:
2 left
💡 Hint
Check the range used in the loop compared to the list length.