CS1 2nd Quarter Exam

From WLCS

Directions: This portion of the exam is open-book, open-note, and CLOSED-person. You may use and test your code in Python. Copy and paste your answer in the spaces below. Print out your answers. Be sure to put your name on your answer sheet. Place your exam in the Period 1 tray.

7. Prompt the user for his/her age and store it in a variable named age. Check if the age is less than 18, and if it is, then print out "You are a minor." If the age is equal to or greater than 18, then print "You are an adult."



8. Write a loop that prints "OMG LOL ROFL!!!1" 100 times



9. Write the set of loops that will print out the following:

WWWWWWWWWW
LLLLLLLLLLLLLLLLLLLL
WWWWWWWWWW