Section 1 - Instruction

Previously, you learned about iterative prompting to improve quality and prompt chaining to manage complexity. Let's practice deciding which technique to use in software development scenarios and how to apply them effectively.

Remember, iteration perfects a single coding task, while chaining connects multiple development steps.

Engagement Message

Ready to sharpen your development prompting skills?

Section 2 - Practice

Type

Sort Into Boxes

Practice Question

Sort these software development scenarios based on the best prompting technique to use.

Labels

  • First Box Label: Use Iterative Prompting
  • Second Box Label: Use Prompt Chaining

First Box Items

  • Optimize SQL query
  • Debug a function
  • Refactor code style

Second Box Items

  • Build REST API
  • Create app docs
  • Deploy full stack
Section 3 - Practice

Type

Multiple Choice

Practice Question

You asked an AI to "write a Python function to sort data" and it produced basic, inefficient code. What is the best next step using iterative prompting?

A. Start a new chat and ask the same question again. B. Edit the prompt to specify the data type, performance requirements, and error handling needs. C. Ask the AI to "make it better." D. Give up and write it yourself.

Suggested Answers

  • A
  • B - Correct
  • C
  • D
Section 4 - Practice

Type

Fill In The Blanks

Markdown With Blanks

Fill in the blanks to complete the analogy.

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal