# Create Task--Algorithm question

**URL:** <https://forum.code.org/t/create-task-algorithm-question/32736>\
**Category:** AP Prep\
**Created:** [May 28, 2020, 4:02pm UTC](https://forum.code.org/t/create-task-algorithm-question/32736 "2020-05-28T16:02:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![herekr](https://avatars.discourse-cdn.com/v4/letter/h/46a35a/32.png) [@herekr](https://forum.code.org/u/herekr)\
**Post date:** [May 28, 2020, 4:02pm UTC](https://forum.code.org/t/create-task-algorithm-question/32736/1 "2020-05-28T16:02:57Z")

</div>

After looking at some submissions on the AP Digital Portfolio, I noticed that a few of my students displayed the code for a valid algorithm in response 2C, but did not include the code for the 2 child algorithms that were called within the parent algorithm. So, the code that was cut/pasted looked like:

function (parentAlgorithm) {  
…  
childAlgorithm1();  
…  
childAlgorithm2();  
…  
}

Obviously, I wanted my kids to show the code for the child1 and child2 functions. And yes, a grader could upload the entire code to look at what the 2 child algorithms were. However, would the student still earn credit on Row 6? (Let’s assume at least one of the included algorithms does use mathematical or logical concepts for this scenario).

---

<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:** [May 28, 2020, 7:20pm UTC](https://forum.code.org/t/create-task-algorithm-question/32736/2 "2020-05-28T19:20:49Z")

</div>

When I did the CSP Reading two years ago, we were told to look through the code pdf if the code was not copied into the responses. It was okay for students to just box the parent algorithm. As long as it had calls to the children algorithms and we could find the children algorithms in the code file, it was good.

---

<div class="post-metadata">

**Author:** ![herekr](https://avatars.discourse-cdn.com/v4/letter/h/46a35a/32.png) [@herekr](https://forum.code.org/u/herekr)\
**Post date:** [May 28, 2020, 7:54pm UTC](https://forum.code.org/t/create-task-algorithm-question/32736/3 "2020-05-28T19:54:58Z")

</div>

Thank you–I was hoping that was the case!
