# Pseudo Code in mc exam

**URL:** <https://forum.code.org/t/pseudo-code-in-mc-exam/7242>\
**Category:** AP Prep\
**Tags:** csp-unit-pt-prep\
**Created:** [April 25, 2017, 8:35pm UTC](https://forum.code.org/t/pseudo-code-in-mc-exam/7242 "2017-04-25T20:35:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yesicatrujillo](https://avatars.discourse-cdn.com/v4/letter/y/90ced4/32.png) [@yesicatrujillo](https://forum.code.org/u/yesicatrujillo)\
**Post date:** [April 25, 2017, 8:35pm UTC](https://forum.code.org/t/pseudo-code-in-mc-exam/7242/1 "2017-04-25T20:35:39Z")

</div>

I thought I had seen a document with annotations on the pseudecode that will be used during the exam but I can no longer find it. Does anyone know where it is?

Thanks.

---

<div class="post-metadata">

**Author:** ![anmrobnott](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/anmrobnott/32/505_2.png) [@anmrobnott](https://forum.code.org/u/anmrobnott)\
**Post date:** [April 26, 2017, 2:08pm UTC](https://forum.code.org/t/pseudo-code-in-mc-exam/7242/2 "2017-04-26T14:08:29Z")

</div>

@yesicatrujillo

I think what you are looking for is in the ‘purple’ book starting on page 114.

> **[ap-computer-science-principles-course-and-exam-description.pdf](https://secure-media.collegeboard.org/digitalServices/pdf/ap/ap-computer-science-principles-course-and-exam-description.pdf)**
>
> 2.05 MB

Andrea

---

<div class="post-metadata">

**Author:** ![carmichaelc](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/carmichaelc/32/921_2.png) [@carmichaelc](https://forum.code.org/u/carmichaelc)\
**Post date:** [May 4, 2017, 1:29pm UTC](https://forum.code.org/t/pseudo-code-in-mc-exam/7242/3 "2017-05-04T13:29:15Z")

</div>

Doe this answer seem right?  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex016/uploads/codeorgforum/original/2X/7/7cb172063e17169a08eee91dca881d628de6f300.jpg)

---

<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 4, 2017, 2:03pm UTC](https://forum.code.org/t/pseudo-code-in-mc-exam/7242/4 "2017-05-04T14:03:45Z")

</div>

I think it would be the second one since the user will provide input after “What is your name?” and hit the enter key. That would output “Hello Karel” on a new line.

---

<div class="post-metadata">

**Author:** ![carmichaelc](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/carmichaelc/32/921_2.png) [@carmichaelc](https://forum.code.org/u/carmichaelc)\
**Post date:** [May 4, 2017, 2:29pm UTC](https://forum.code.org/t/pseudo-code-in-mc-exam/7242/5 "2017-05-04T14:29:41Z")

</div>

We thought A; based on using console.log( ); but the correct answer here is C. So we wondered if pseudocode caused it to be C. We looked through the reference list and it only has a sample of display used once. I think this question is probably just wrong.

---

<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 4, 2017, 3:09pm UTC](https://forum.code.org/t/pseudo-code-in-mc-exam/7242/6 "2017-05-04T15:09:05Z")

</div>

It is confusing but based on the documentation for DISPLAY, “displays the value of expression followed by a space”, first choice would be eliminated. If we disregard, what the user is doing third choice would be correct.

---

<div class="post-metadata">

**Author:** ![carmichaelc](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/carmichaelc/32/921_2.png) [@carmichaelc](https://forum.code.org/u/carmichaelc)\
**Post date:** [May 4, 2017, 7:16pm UTC](https://forum.code.org/t/pseudo-code-in-mc-exam/7242/7 "2017-05-04T19:16:33Z")

</div>

Thank you! I see that now with your help.

---

<div class="post-metadata">

**Author:** ![anmrobnott](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/anmrobnott/32/505_2.png) [@anmrobnott](https://forum.code.org/u/anmrobnott)\
**Post date:** [May 5, 2017, 1:10pm UTC](https://forum.code.org/t/pseudo-code-in-mc-exam/7242/8 "2017-05-05T13:10:07Z")

</div>

@carmichaelc

The reference sheet says that the DISPLAY command displays the value of the expression followed by a space.

If a line return was implied as part of the DISPLAY command, the printout would have been:  
What is your name?  
Hello  
Karel

None of the answer choices seem to consider how the input of the name effects the display.

Andrea
