Task 1 · Using Generative AI
up to +60 XP
Stop 1c · Task 1 · 4 min

Using Generative AI

Prompt an AI model for code snippets, then review and refine what it gives you

Learning objectives:
  • Use a generative AI model to produce short code snippets for specific parts of your solution
  • Write precise prompts that cover the requirements
  • Review the generated code and plan refinements
  • Work legally and ethically with AI

What the activity is

The specification says that in Task 1 Activity C you use a generative AI model to create short snippets of code for specific areas of functionality: one function or process that you would then fit into your larger solution. You must not ask it to build the whole solution. You need to show the prompts you entered and review how well the output meets the needs of that functionality. Pearson does not set which model to use; a natural language model such as ChatGPT or Google Gemini fits the task.

Where this comes from: the task names and Gen AI activity are from the Digital Software Development specification. The activity split and marks are from a DSD marking grid (not an official Pearson paper), so check the wording of your own brief.

How it is marked (DSD grid, 12 marks)

StrandMarksWhat gets credit
Problem solving3How well your use of AI covers the task requirements
Use of prompts3Prompts precise enough for a model to produce consistently correct code
Output review6A thorough review of the positives and negatives of the code and the refinements needed

Task 1 also has a separate quality of communication strand (6 marks) across your work: use suitable techniques, formats and technical language for the audience.

Step 1: pick the right functionality

Choose small, well-defined pieces from your own design, for example:

Each one should link to a functional requirement from your proposal.

Step 2: write precise prompts

A strong prompt states:

Weak promptStrong prompt
"Write a booking system""Write a Python 3.10 function is_slot_free(bookings, date, time) where bookings is a list of dictionaries with keys date (YYYY-MM-DD string) and time (HH:MM string). Return True if no booking has the same date and time, otherwise False. Use snake_case, add comments, and do not use global variables."

Record each prompt, the model used, the date, and the output in full. If you refine your prompt, keep every version so the marker can see how it improved.

Step 3: review the output

Test the code before you judge it. For each snippet, cover:

A good review reads like a code review from a senior developer: evidence from testing, specific line-level points, and clear next steps.

Legal and ethical use of AI

Quick check · 6 questions

Check what stuck.

+10 XP each
Question 1

Question 1 of 6

What should you ask the generative AI model to create in Activity C?

Question 2

Question 2 of 6

What must you be able to show about your use of AI?

Question 3

Question 3 of 6

Which makes a prompt stronger?

Question 4

Question 4 of 6

Which strand has the most marks in Activity C on the DSD grid?

Question 5

Question 5 of 6

Which is good practice when reviewing AI-generated code?

Question 6

Question 6 of 6

Which is an ethical way to use AI?