WASHINGTON STATE MIDDLE SCHOOL COMPUTER SCIENCE COMPETITION

Similar documents
WASHINGTON STATE MIDDLE SCHOOL COMPUTER SCIENCE COMPETITION

In this project you ll learn how to create a football game in which you have to score as many goals as you can in 30 seconds.

Step 1. CoderDojo Milltown Exercise 1 Pong Page 1 of 13

Start - All Programs - Class Software - Scratch - Scratch move move move Sound play drum move move move play drum Control forever forever forever

3. Select a colour and then use the Rectangle drawing tool to draw a rectangle like the one below.

Table Football. Introduction. Scratch. Let s make a world cup football game in Scratch! Activity Checklist. Test your Project.

Start a new Scratch project. Delete the cat by right-clicking it and selecting Delete.

The Final Fight STAGE. * Download file Scratch Stage 9. Chapter Objective. The Game

Penalty Kick in Ipanema

SCRATCH CHALLENGE #3

Get it here. Page 1 of 7 Date:Jan 8, 2014

_GCPS_01_RD_All_Domains (_GCPS_01_RD_All_Domains) What Is An Emu?

at the total points scored by each player during the season. Sanjeet scored twice as Equation:

Felix and Herbert. Level. Introduction:

Felix and Herbert. Level

Boat Race. Introduction. Scratch. You are going to learn how to make a game, in which you ll use the mouse to navigate a boat to a desert island.

Scratch Hands-on Assignments CS4HS - Summer 2017

Supporting maths at home: Years 1 and 2

tta Dori-Mic and the

5th Grade Decimal Concepts

5th Grade. Slide 1 / 192. Slide 2 / 192. Slide 3 / 192. Decimal Concepts. Table of Contents

Boat Race. Introduction. Scratch

You are going to learn how to make a game, in which you ll use the mouse to navigate a boat to a desert island.

A Home for Bats. Name three places where bats live. How do some bats make tents? PROSODY

7-8U GAMES AND ACTIVITIES SPRING 2018

Indiana Academic 22 nd Annual M.A.T.H. Bowl. Invitational January 22 Feb. 3, Begin Practice Round

Indiana Academic 22 nd Annual M.A.T.H. Bowl

8th Grade. Data.

FAST BREAK BASKETBALL GAMES. Create a rectangular boundary with the cones.

Jump Rope Counting Rhymes

Third Grade Pre/Post Test

DSG Learning Program Data Collection. Session 1 Sight Words - Pets Match Pic Match Word Select Pic Select Word Name Word

Sport NGIN has two applications, which can be used to score games.

1. First start a new scratch project and remove the default sprite.

Sing and Spell. Lyrics & Handmotions

3rd Grade. Hour and Half Hour. Slide 1 / 87 Slide 2 / 87. Slide 3 / 87. Slide 4 / 87. Slide 6 / 87. Slide 5 / 87. Time, Volume & Mass

Math A Regents Exam 0806 Page 1

January 2011 Condor Corner Frank Paynter

A B

USA Wrestling A GUIDE FOR PAIRING USING TRACKWRESTLING COMPUTER OPERATIONS. Line Bracketing Pairing 2017 Edition

How To Use My Tennis Page On TennisLink

CHEMICAL ENGINEERING LABORATORY CHEG 239W. Control of a Steam-Heated Mixing Tank with a Pneumatic Process Controller

First Edition. Teaching Scratch. at primary school. Thomas Arts

Motion Commotion. KindergarTen-second. Matter and Energy TEKS. Vocabulary

3rd Grade. Hour and Half Hour. Slide 1 / 87 Slide 2 / 87. Slide 3 / 87. Slide 4 / 87. Slide 6 / 87. Slide 5 / 87. Time, Volume & Mass

Finn McCool and the Great Fish

LEVEL 1 PICTURE DICTIONARY. Unit 1 INTRODUCTION UNIT 1 MY BIRTHDAY. Macmillan Publishers Limited 2008 Here Comes Super Bus. Jack. Sarah.

Wilbur in the damaged flyer after his unsuccessful trial on December 14, His hand still grips the wooden control lever.

ExcelDerby User's Manual

WiiMaze Design Document March 13, 2008

Exactly Ed. 1 Read. Listen and sing.

Write a hypothesis for your experiment (which factor increases cricket chirping) in the If then format.

Activity 8: Cave Surfing Game

Impulse Lab Write Up. K leigh Olsen. 6th hour

Gravity: How fast do objects fall? Teacher Version (Grade level: 4 7)

In my left hand I hold 15 Argentine pesos. In my right, I hold 100 Chilean

Global Information System of Fencing Competitions (Standard SEMI 1.0) Introduction

GCSE style questions arranged by topic

July Week 21. 2nd Grade. It takes the earth exactly 365 days, 6 hours, 9. revolution around the sun. Tuesday? How much did he spend?

Appendix A: The Placement Test

Assignment. To New Heights! Variance in Subjective and Random Samples. Use the table to answer Questions 2 through 7.

Cloud real-time single-elimination tournament chart system

The Fantastic Food Chain and Food Web Extravaganza

OrbBasic 2: Student Guide

SPEED, VELOCITY, ACCELERATION, & NEWTON STUDY GUIDE - Answer Sheet 1) The acceleration of an object would increase if there was an increase in the

Soccer-Related Gamesfor Very Young Children

ISBN Item Type Price Grade level

Summer Session 2014 Match Results Entry and Verification Instruction Manual

Super Simple Songs One Lyrics and Actions

Smiley Face Math Grade 3, Worksheet I

Gabe represents his mystery number with the variable f.

ROUND TOSS-UP: What is the square root of one million? (1000) (10 points) BONUS: How many zeros are at the end of ?

TRACKS Lesson Plan. Physical Activity Get Active Grades 5 8 Girls Club

11 TH ANNUAL MATHLETES IN ACTION

DRIBBLING EXERCISES. You can make it more fun for the young ones by adding noises when they copy the animal, e.g. road runner meep meep.

U5 PRACTICE PLANS, COORDINATOR S DOCUMENT

Friction. Experiment 1 A Soleful Experiment

Robot Soccer Challenge

Push & Pull You can see the forces push and pull at work with this door. We can push the door to close it, or pull the handle to open it.

The ICC Duckworth-Lewis-Stern calculator. DLS Edition 2016

Boyle s Law: Pressure-Volume Relationship in Gases. PRELAB QUESTIONS (Answer on your own notebook paper)

AG85. and five cents. Which names this money amount in terms of dollars? Mark all that apply. is equivalent to. True False

CHANGES IN FORCE AND MOTION

TECH WEEK INFORMATION

GPS Curriculum 2016 Vacation Programs Technical Training Program u11 - u12

Time, Speed, and Distance: Student Guide

How Do Ships Float? Contact the National Museum of the United States Navy for Field Trip and School Visit Opportunities!

Fantasy Baseball Filename: baseball

SCW Web Portal Instructions

Mathacle PSet Algebra Word Problems ( ) Level Number Name: Date:

Name: measurement. Class: Date: 58 minutes. Time: 58 marks. Marks: Comments: Page 1 of 41

Am I the only one? VMWorld

New User. This is the sign-in screen for the registration system. If this is the first time entering the system, click on NEW USER.

The MRL Furnaces USED FOR THIS MANUAL COVERS

Boyne Area 4H Youth Soccer. Grades 1 & 2. Practice Lesson Plan Manual

GLOBAL PREMIER SOCCER GPS JUNIORS CURRICULUM 2015 U4 & U5 MODULE 1

2 times 2 is. Come in and shut the door. 2 times 5 is. Look at my gallant men. 2 times 8 is. There are lions to be seen.

Algebra A/B MAT 035. Review for Final Exam

North Hunterdon Regional Reading Olympics Guidelines, Responsibilities, Procedures

Indian Valley Boys & Girls Club

Transcription:

WASHINGTON STATE MIDDLE SCHOOL COMPUTER SCIENCE COMPETITION May 14, 2016 Individual Challenge Grades 7-8 30 Minutes

Computing for All Individual Challenge - 7th/8th grade May 14, 30, 2016 2015 Please read these directions carefully before beginning. Breaking any of the rules is grounds for disqualification. Do not turn this page and begin working the test until the start of the test is announced. Once time starts, you will have 30 minutes to complete this test. There is no talking allowed at any time. If you have a question about the test, please raise your hand. If you put a smiley face next to your answer for question 14, you get bonus points! No electronic devices of any kind (calculators, phones, computers, etc.) are allowed during the test. Write all of your answers on the answer sheet provided. Write as clearly as possible. If we can t read your answers, you will not receive points. Questions within each section are increasing in di worth more points. culty, and harder questions are For all Scratch questions, assume that the script shown is the only script in the game. Do not feel bad if you don t finish the test - it is designed to be too long to finish in 30 minutes!

Section 1: Scratch Questions S1. (1 pt) What happens after the green flag is clicked? a) Nothing b) The sprite glides to the middle of the screen c) The sprite glides to the bottom left edge of the screen d) The sprite glides back and forth forever S2. (1 pt) What happens after the green flag is clicked? a) Nothing b) The sprite moves 10 steps to the right one time c) The sprite moves right forever d) The sprite moves right until it reaches the edge of the screen S3. (1 pt) When will the sprite wear the running cat costume? a) For the whole game b) When it receives the bonus message c) When it receives the bonus message and it s touching the mouse d) Not enough information Computing for All Individual Challenge 7 8, Page 3 of 15 May 14, 2016

S4. (2 pts) What happens after the green flag is clicked? a) The sound pop plays b) The sound meow plays c) The drum plays for 0.25 beats d) Nothing S5. (2 pts) What value is stored in Apples after this code runs? a) Apples = 0 b) Apples = 4 c) Apples = 8 d) Apples = 10 S6. (3 pts) What values are stored in Apples and Pears after this code runs? a) Apples = 0, Pears = 10 b) Apples = 5, Pears = 5 c) Apples = 10, Pears = 5 d) Apples = 15, Pears = 5 Computing for All Individual Challenge 7 8, Page 4 of 15 May 14, 2016

S7. (3 pts) How many clones will exist after 6 seconds? a) 0 b) 1 c) 3 d) 7 S8. (4 pts) How many clones will exist after 20 seconds? a) 0 b) 2 c) 6 d) 7 S9. (4 pts) What does the program above do? a) Add item zebra to a list zoo animals b) Remove all items called zebra from the list zoo animals c) Remove one item called zebra from the list zoo animals d) Make a list of zoo animals Computing for All Individual Challenge 7 8, Page 5 of 15 May 14, 2016

S10. (4 pts) Which of the above will simulate gravity in a game? The sprite should jump up when the space key is pressed and then fall back down until it hits the gray ground. The sprite should not be able to double jump (jump when it is still in the air). a) Only 1 b) Only 2 c) 1 and 2 d) 2 and 3 e) 1, 2, and 3 Section 2: Pseudocode Questions Whengreenbuttonispushed: Robotwakesup Whenredbuttonispushed: Robotsleeps P1. (1 pt) What happens when Taylor pushes the green button? a) The robot wakes up b) The robot falls asleep c) The robot wakes up and then falls asleep d) Nothing Computing for All Individual Challenge 7 8, Page 6 of 15 May 14, 2016

IfEduardotakesthetrainANDthebustowork: Hespends$10 ElseifEduardotakesthetrainORthebustowork: Hespends$5 Else Hespends$1 P2. (1 pt) Eduardo takes the bus to work. How much does he spend? a) $10 b) $5 c) $1 d) $0 P3. (1 pt) Eduardo takes a hang glider to work. How much does he spend? a) $10 b) $5 c) $1 d) $0 P4. (1 pt) Eduardo takes the bus and the train to work. How much does he spend? a) $16 b) $15 c) $10 d) $5 set LIVES to0 repeat3times: change LIVES by4 divide LIVES by2 P5. (2 pts) What value is stored in LIVES after this code runs? a) 0 b) 2 c) 4 d) 6 Computing for All Individual Challenge 7 8, Page 7 of 15 May 14, 2016

setjto1 setkto7 whilejislessthank: ifkisodd: SetJtoJ*3 ChangeKby1 else: ChangeKby 2 P6. (3 pts) What values are stored in J and K after the code above runs? a) J = 3, K = 2 b) J = 2, K = 3 c) J = 9, K = 9 d) J = 27, K = 4 A function takes some number as an input and gives you back, or returns, some other number, called an output. We can write this process as FunctionName( input ) = output. For example, if MysteryFun adds 2 to every input, we would have MysteryFun (3) = 3 + 2 = 5. Yadu has a function called MysteryFun, but can t remember what it does. He tries 0, 2, and 8 as inputs and gets the following outputs: MysteryFun(0)=0 MysteryFun(2)=4 MysteryFun(8)=64 P7. (2 pts) What will Yadu see if he types MysteryFun (6)? a) 3 b) 6 c) 9 d) 36 P8. (2 pts) What will Yadu see if he types MysteryFun ( 2)? a) Does not exist b) 2 c) 2 d) 4 P9. (2 pts) Yadu gets 9 as an output from MysteryFun. What could have been the input? a) 0 b) 3 c) 9 d) 81 Computing for All Individual Challenge 7 8, Page 8 of 15 May 14, 2016

Use the examples of helper_method to answer the following questions. helper_method( hi bye 1)= hibye helper_method( zig zag 2)= zigzagzigzag helper_method(. [][] 4)=.[][].[][].[][].[][] P10. (3 pts) What does helper_method( a b 3) equal? a) ababab b) ababab c) ababab d) aaabbb P11. (3 pts) The pseudocode for helper_method contains an error! Which two lines should be swapped to make it correct? 1 S1=firstinput 2 S2=secondinput 3 N=thirdinput 4 RESULT= 5 repeatntimes: 6 adds1toresult 7 add toresult 8 adds2toresult 9 returnresult a) 1 and 2 b) 3 and 4 c) 6 and 7 d) 7 and 8 set COUNT to1 repeat3times: add1to COUNT repeat COUNT times: printtheletterq printaspace P12. (4 pts) What will the program above print? a) QQ Q Q b) Q QQ QQQ c) QQ QQQ QQQQ d) QQQ QQQ QQQ QQQ QQQ QQQ QQQ QQQ QQQ Computing for All Individual Challenge 7 8, Page 9 of 15 May 14, 2016

An array is a data structure which stores items, or values, in a certain order. To save an array called a1 containing apple, pear, and banana, we would write the following: Arraya1=[ apple, pear, banana ] We can find a value by using the name of the array and the value s position to get that value back. You are probably used to counting starting with 1, but here we start with 0! For example: a1[0] > apple a1[1] > pear a1[2] > banana Arraya2=[3,7,8,5,7,9] P13. (2 pts) How could you get 7 from the array above? a) a2[7] b) a7[1] c) a2[1] d) A2[4] P14. (2 pts) What will a2[5] return? a) 5 b) 7 c) 8 d) 9 fun_1(input)=input 1 fun_2(input)=inputx2 F(input_1,input_2)=fun_1(input_1)+fun_2(input_2)+1 P15. (4 pts) What is F(6,5)? a) 11 b) 12 c) 16 d) 17 Computing for All Individual Challenge 7 8, Page 10 of 15 May 14, 2016

A directed graph is a data structure that keeps track of steps in a process, and which steps depend on each other. For example, if Nathan has a recipe to make cookies: Nathan s Cookie Recipe 1. Preheat oven to 325 F. 2. Measure ingredients. 3. Mix ingredients together. 4. Bake dough at 325 F for 6 minutes. 5. Eat cookies! These steps don t all need to happen in the order shown. On the right is the graph of the recipe. The ways the arrows point show which steps have to happen before others for example, I can t bake the cookies if haven t preheated the oven, or they will just stay cookie dough! P16. (3 pts) Based on the graph above, what does Nathan have to do before he mixes the ingredients? a) Measure b) Preheat c) Preheat and measure d) Eat the cookies d) 1, 2, and 3 P17. (3 pts) The graph on the left shows Benedict s bedtime routine. What does he have to do before he reads a book? a) Put on pajamas b) Put on pajamas or brush his teeth c) Take a bath, put on pajamas and brush his teeth d) Nothing P18. (4 pts) After he reads a funny book, Benedict turns off the lamp and goes to sleep. But when he reads a book about monsters, he gets scared, so he turns on his night light before turning off the lamp. Where would you draw arrows to complete the graph? a) Only 1 and 3 b) Only 1 and 2 c) Only 2 and 3 Computing for All Individual Challenge 7 8, Page 11 of 15 May 14, 2016

A map is a data structure that uses keywords to keep track of information related to those keywords. Here is an example of a map of people and their friends: (Rayid:{Matt,Renata,Joe,Demond,Amarria} Renata:{Rayid,Joe} Matt:{Demond,Joe,Bridgit} Joe:{Rayid,Renata,Matt} Demond:{Rayid,Matt} Amarria:{Rayid} Bridgit:{Matt}) From this map, we know that Rayid is friends with Matt, Renata, Joe, Demond, and Amarria. To get from Rayid to Bridgit takes two steps, because Rayid is friends with Matt, and Matt is friends with Bridgit. P19. (3 pts) Who is friends with Renata? a) Amarria b) Rayid c) Demond d) Bridgit P20. (4 pts) What is the smallest number of steps to get from Bridgit to Amarria? Section 3: Logic Questions L1. (1 pt) Andrea loves dogs. Everyone who loves dogs wears purple shoes at school. Andrea is at school. What color are Andrea s shoes? a) pink b) blue c) green d) purple L2. (1 pt) Martín always goes to the fishmonger on Sundays. Martín always watches wrestling on Thursdays. Virinchi does what Martín does on Martín s birthday. Today is Martín s birthday. Today is Thursday. What is Virinchi doing today? a) going to the fishmonger b) watching wrestling c) eating birthday cake d) not enough information L3. (1 pt) Shiraz is a soccer player. James is silly. Only soccer players are silly. Computing for All Individual Challenge 7 8, Page 12 of 15 May 14, 2016

All soccer players like cupcakes. Who likes cupcakes? a) Only Shiraz b) Only James c) Both Shiraz and James d) Not enough information L4. (2 pts) Yusuf goes outside if the sun is shining and he is not hungry. Otherwise, he stays inside. Yusuf plays chess if he has at least $400 in his bank account. Otherwise, he plays checkers. The sun is shining, Yusuf is hungry, and he has $450 in his bank account. What does Yusuf do? a) Yusuf plays chess outside. b) Yusuf plays chess inside. c) Yusuf plays checkers outside. d) Yusuf plays checkers inside. L5. (3 pts) 97 baseball teams participate in an annual state tournament. The champion is chosen for this tournament by the following scheme: the 97 teams are divided into pairs, and the two teams of each pair play against each other. The loser of each pair is eliminated, and the remaining teams are paired up again. How many games must be played to determine a champion? a) 49 b) 93 c) 97 d) 194 Eamon keeps forgetting things, but luckily, he has a computer. Computers are really good at remembering things, but he wants to use the right data structure for each job. He has three data structures to choose from: Stack It is very fast to put data into a stack, but to retrieve something you have to remove everything on top of it, so it is slow to get data out. Set Sets keep track of values, without any order. It is very fast to tell whether a certain value is in a set. Map Maps keep track of keywords and any information you want to remember that goes along with those keywords. L6. (2 pts) Which data structure should Eamon use to store all of the websites he has visited? He goes to new sites all the time, but he almost never goes back to the same website twice. a) Stack a) Set b) Map L7. (2 pts) Eamon likes to write letters to his friends, but has a hard time remembering all of their addresses. Which data structure should Eamon use to store his friends and their addresses? Computing for All Individual Challenge 7 8, Page 13 of 15 May 14, 2016

a) Stack b) Set c) Map L8. (2 pts) Which data structure should Eamon use to store gluten free foods? He will need to know quickly whether or not a food is gluten free. a) Stack b) Set c) Map L9. (3 pts) Pascale s piggybank contains 2 quarters, 3 dimes, 1 nickel, and 4 pennies. She takes out one coin at random. What are the chances the coin is a dime or a nickel? a) 1/10 b) 3/10 c) 4/10 d) 1/2 L10. (4 pts) Pascale puts the first coin back in the piggybank and draws two more. What are the chances the coins add up to 35 cents or more? (Quarters are 25 cents, dimes are 10 cents, nickels are 5 cents, and pennies are 1 cent). a) 1/2 b) 6/10 c) 14/90 d) 35/90 L11. (4 pts) Sasha has 8 marbles and an old fashioned scale. The marbles are all identical, except that one is heavier than the rest. What is the minimum number of steps Sasha could take to identify the heavier marble? a) 2 b) 3 c) 4 d) 8 Computing for All Individual Challenge 7 8, Page 14 of 15 May 14, 2016

BONUS Questions B1. (1 pt.) What is the Internet? a) The World Wide Web b) A network of networks c) A network protocol d) A physical connection between computers B2.(1 pt.) What is Cloud Computing? a) Computing while traveling in a plane b) Using remote computers for computing and processing data c) A type of computer program d) Computing on the go B3. (1 pt.) Who was Alan Turing? a) A medical doctor b) A rock star c) A pioneering computer scientist d) A character in a movie B4 (1 pt.) Who was the first computer programmer? a) Bill Gates b) Steve Jobs c) Ada Lovelace d) Mark Zuckerberg B5. (1 pt. ) How many bits are there in a Byte? a) 4 b) 8 c) 16 d) There is no relationship between a bit and a byte Computing for All Individual Challenge 7 8, Page 15 of 15 May 14, 2016