# Create Create Performance Task: Same code sample for algorithm and abstraction?

**URL:** <https://forum.code.org/t/create-create-performance-task-same-code-sample-for-algorithm-and-abstraction/15679>\
**Category:** AP Prep\
**Tags:** csp-unit-pt-prep\
**Created:** [April 19, 2018, 5:06pm UTC](https://forum.code.org/t/create-create-performance-task-same-code-sample-for-algorithm-and-abstraction/15679 "2018-04-19T17:06:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![almanm](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@almanm](https://forum.code.org/u/almanm)\
**Post date:** [April 19, 2018, 5:06pm UTC](https://forum.code.org/t/create-create-performance-task-same-code-sample-for-algorithm-and-abstraction/15679/1 "2018-04-19T17:06:38Z")

</div>

Can a student use the same code sample for both their example of algorithm and abstraction for the written response? I would think that as long as the code reflects both, satisfies the requirements of the scoring guide, and that the student clearly articulates which parts of the code relate to algorithm and abstraction, respectively, then they should be ok. Is this a safe assumption? Thoughts? Thanks.  
–Matt

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [April 19, 2018, 5:23pm UTC](https://forum.code.org/t/create-create-performance-task-same-code-sample-for-algorithm-and-abstraction/15679/2 "2018-04-19T17:23:22Z")

</div>

Yes. That should be okay.
