Acknowledging AI use and licensing of generated code

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Acknowledging AI use and licensing of generated code

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which comment correctly acknowledges that AI helped write a function?
A # Written entirely by me
B # AI-generated: ChatGPT, prompt: 'write a function to average marks'
2. You used an AI tool to generate part of your SAC solution. What should you do?
A Say nothing because the code works
B Say that AI helped, following your school and VCAA authentication rules
3. Why can AI-generated code be a copyright or licensing risk?
A It may closely copy code that is covered by a licence
B AI code is always free of any licence
4. Who is responsible for the final code in your submitted program, including the parts AI wrote?
A You are
B The AI tool is
5. Which acknowledgement is more useful?
A # AI-generated: Copilot, prompt: 'validate an age between 0 and 120'
B # Got some help from a tool

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1# AI-generated: ChatGPT, prompt: sort a list AThe student assumes AI output is safe and free to use. They must check it does not copy licensed work and they remain responsible for the final code.
2# Source: MIT licence, checked by Sam BThe student says they wrote this themselves when it was generated by AI. AI help must be acknowledged, for example # AI-generated: ChatGPT.
3Acknowledge the AI tool in the code so a teacher or VCAA assessor can see which part it helped write CA comment recording the licence of reused code and that the student checked it before using it
4Record the prompt you gave the AI tool so your use of it can be authenticated D# AI-generated: Copilot, reviewed by me
5def total(a, b): return a + b # written by me E# Prompt: write a function to average marks
6# AI wrote it, so it is safe to use import shop_code FA comment that acknowledges AI helped write the code, naming the tool and the prompt used

Definitions

# AI-generated: ChatGPT

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
_ AI-generated: ChatGPT
2.
# ____________: ChatGPT
3.
# AI-generated: ChatGPT # ______: sort a list of marks
4.
# Checked: not copied from ________ work
5.
# I am ___________ for the final code

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A # AI-generated: ChatGPT
B # Prompt: sort a list of marks
C # Licence checked: not needed
D marks = [72, 88, 65]
E marks.sort()
Question 2
A AI-generated: Copilot
B # Prompt: write grade()
C def grade(mark):
D return mark >= 50
Question 3
A # AI-generated: ChatGPT
B # I wrote all of this myself
C def check(pw):
D return len(pw) >= 8
Question 4
A # AI-generated: Gemini
B # Prompt: area of a circle
C # Gemini is responsible for it
D def area(r):
E return 3.14 * r * r
Question 5
A # AI-generated: ChatGPT
B # Prompt: double a number
C def double(n):
D return n + 2

Answer Key

Acknowledging AI use and licensing of generated code
Section A: Quick Questions
Q1
B — # AI-generated: ChatGPT, prompt: 'write a function to average marks'
Q2
B — Say that AI helped, following your school and VCAA authentication rules
Q3
A — It may closely copy code that is covered by a licence
Q4
A — You are
Q5
A — # AI-generated: Copilot, prompt: 'validate an age between 0 and 120'
Section B: Match the Pairs
Q1
# AI-generated: ChatGPT, prompt: sort a list → A comment that acknowledges AI helped write the code, naming the tool and the prompt used
Q2
# Source: MIT licence, checked by Sam → A comment recording the licence of reused code and that the student checked it before using it
Q3
Acknowledge the AI tool in the code so a teacher or VCAA assessor can see which part it helped write → # AI-generated: Copilot, reviewed by me
Q4
Record the prompt you gave the AI tool so your use of it can be authenticated → # Prompt: write a function to average marks
Q5
def total(a, b): return a + b # written by me → The student says they wrote this themselves when it was generated by AI. AI help must be acknowledged, for example # AI-generated: ChatGPT.
Q6
# AI wrote it, so it is safe to use import shop_code → The student assumes AI output is safe and free to use. They must check it does not copy licensed work and they remain responsible for the final code.
Section C: Definitions
Q1
# AI-generated: ChatGPT — A comment that acknowledges AI helped write the code. Name the tool and prompt, and check the output is not copied licensed work. You stay responsible for the final code.
Section D: Fill in the Blanks
Q1
# AI-generated: ChatGPT
Q2
# AI-generated: ChatGPT
Q3
# AI-generated: ChatGPT # Prompt: sort a list of marks
Q4
# Checked: not copied from licensed work
Q5
# I am responsible for the final code
Section E: Spot the Error
Q1
C — Generated code can copy licensed work, so you must check the licence. The line should say the check was done, for example '# Licence checked: yes'.
Q2
A — The acknowledgement must be a comment. Without the # at the start Python tries to run it and gives a syntax error. It should be '# AI-generated: Copilot'.
Q3
B — This contradicts line 1. An acknowledgement should record the prompt that was used, for example '# Prompt: make a login check', not claim the work is all your own.
Q4
C — You stay responsible for the final code, even when AI helped write it. The comment should say that you checked and tested it, for example '# Checked and tested by me'.
Q5
D — The prompt asked for a function that doubles a number, but n + 2 does not do that. You are responsible for checking AI code matches the requirement. It should be 'return n * 2'.