My answer was close because it contained a stribng varible and Boolean variable, which are in the correct answer. My answer was wrong because the names of the variables were not meaningful. C is the correct answer because it uses a string variable and a Boolean variable, the Boolean variable is important because it tells us if the statement is true or false (absent or not.) The named also used for the variable works well because they are appropriate and easy to read.

I chose C because I narrowed it down to two answers (C and D) and I went with C. I knew it was one of those because the 7th line tells us a = 21, the 6th lines tells us b = 40, and the thrid line tells us c = 30. I said d = 40 because I could not figure out where else it was said, so I went with line 4. I now understand my mistake because I added c and d (30+40) and then divided by 2 so I got 35, which made me confused. I realized I had to do d divided by 2 and then add c (40/2=20+30) to get an answer of 50.

The first part of the answer I selected was wrong, but the second part of it was correct. If I were to have ran the code I would have got "onno", which is not noon. C is the correct answer because it uses the word "on". The second line is basically reversing the word, so you would get "no" and then add the original word back ("on") to the end, which would give you the word "noon".