Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

2/20/2018 Go Go Rayquaza

Go Go Rayquaza

One part of an all-green solution to the APT pikcachu problem is


shown below

What is the purpose of the variable found?

It indicates where a valid pre x occurs in word

It indicates whether a valid pre x begins word

It indicates whether "NO" or "YES" should be returned

A student suggests removing line 9 and using an else statement


to assign False to found as shown below. Which best categorizes
this approach?

https://docs.google.com/forms/d/e/1FAIpQLScyQVacfvuhlteOMy_gOeypJQESGu6En5olHYQaKZdme_BWyg/formResponse 1/2
2/20/2018 Go Go Rayquaza

It will get all green just as the rst solution got all green

Whenever False should be returned, this code does return False, but it
misses some cases where True should be returned

This code will never get green for an input that can be made, i.e., when True
should be returned

NEXT

Never submit passwords through Google Forms.

This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Additional Terms

 Forms

https://docs.google.com/forms/d/e/1FAIpQLScyQVacfvuhlteOMy_gOeypJQESGu6En5olHYQaKZdme_BWyg/formResponse 2/2

You might also like