Choose exam board for KS4 Computer Science (GCSE)
Choose exam board for KS4 English
Choose exam board for KS4 French
Choose exam board for KS4 Geography
Choose exam board for KS4 German
Choose exam board for KS4 History
Choose tier for KS4 Maths
Choose exam board for KS4 Music
Choose exam board for KS4 Physical education (GCSE)
Choose exam board for KS4 Religious education (GCSE)
Choose exam board for KS4 Spanish

      Loading...

      Building a quiz program
      • Key Stage 1
      • Year 2
      • Computing
      This is a programme that is a quiz questions programme. So I'm going to be following my design for this, first step is to go and get my first background. I'm going to choose the farm, add it in. Next, I'm going to go and get my Sprites using the menu on the left. I'm going to choose the snake. My second Sprite is the pig. So I'm going to use a movement block here just to make the pig look the other way. I'm going to use move left just once, just so that the Sprite can face the other direction. Right, let's look at page two, add a new page, add the background for the page. Let's get the beach for this one. There we go. And let's add the sprites. So they're up in the left menu there again. I'm going to add the bat because my second question is all about flying and dog for this one. So let's put the dog in and the bat. I think I'm gonna turn the dog around like I did on the other page. Yeah, we're gonna use the move left block, that looks better to put the dog in position. So just that facing each other. All right, I think we're ready to add the coding for this. So let's start on, well, they all need these blocks. Let's start on the snake first. Going to use the start on tap and then my design says my next block is the say block. It's a purple one, I need to change the text, tap on the text, and then use my keyboard to type in my no, because the player's going to select the snake. They're going to be wrong. So the snake will say no and then hide and end the programme there. But the pig will be the correct answer. So when I look at the pig's blocks now, I'm going to add the same start and tap and the same say block, but the word is going to be different. I'm gonna backspace this out. I'm going to put yes in here 'cause the pig will be the correct answer for which animal is taller. And if you get the answer right, it takes you to the next page. So I'm using the change page block there. Let's do the coding for page two. So let's start on the bat. Yeah, so the bat will have start on tap. The bat's going to be the correct answer. The question for the second page, will be who can fly? So it will be the bat, I need to use say. And the answer is going to be yes. That's what the Sprite will say when you tap on it. Then I'm going to use the go to page one 'cause the programme will repeat. It will go back to the first page if I get it right. For the dog, gonna use start on tap, I'm going to use the say block and the dog is going to say no 'cause the dog is the wrong answer for this one. And then the dog is going to hide and the programme will end. So I need to end block here. Let's test this all out. Going to make this full screen. The question for the first page is, which animal is taller? So if I tap on the snake, the answer will be wrong. Let's test that, okay, the snake said no and hid. That's good, so the pig should be the right answer. If I tap on the pig, it should say yes and go to the next page. There we go. Page two's question is, which animal can fly? So the dog will be the wrong answer. If I tap on the dog, it should say no and hide. That's great, and then if I tap on the bat, it should say yes and take me back to the beginning. This programme is all finished.
      Building a quiz program
      • Key Stage 1
      • Year 2
      • Computing
      This is a programme that is a quiz questions programme. So I'm going to be following my design for this, first step is to go and get my first background. I'm going to choose the farm, add it in. Next, I'm going to go and get my Sprites using the menu on the left. I'm going to choose the snake. My second Sprite is the pig. So I'm going to use a movement block here just to make the pig look the other way. I'm going to use move left just once, just so that the Sprite can face the other direction. Right, let's look at page two, add a new page, add the background for the page. Let's get the beach for this one. There we go. And let's add the sprites. So they're up in the left menu there again. I'm going to add the bat because my second question is all about flying and dog for this one. So let's put the dog in and the bat. I think I'm gonna turn the dog around like I did on the other page. Yeah, we're gonna use the move left block, that looks better to put the dog in position. So just that facing each other. All right, I think we're ready to add the coding for this. So let's start on, well, they all need these blocks. Let's start on the snake first. Going to use the start on tap and then my design says my next block is the say block. It's a purple one, I need to change the text, tap on the text, and then use my keyboard to type in my no, because the player's going to select the snake. They're going to be wrong. So the snake will say no and then hide and end the programme there. But the pig will be the correct answer. So when I look at the pig's blocks now, I'm going to add the same start and tap and the same say block, but the word is going to be different. I'm gonna backspace this out. I'm going to put yes in here 'cause the pig will be the correct answer for which animal is taller. And if you get the answer right, it takes you to the next page. So I'm using the change page block there. Let's do the coding for page two. So let's start on the bat. Yeah, so the bat will have start on tap. The bat's going to be the correct answer. The question for the second page, will be who can fly? So it will be the bat, I need to use say. And the answer is going to be yes. That's what the Sprite will say when you tap on it. Then I'm going to use the go to page one 'cause the programme will repeat. It will go back to the first page if I get it right. For the dog, gonna use start on tap, I'm going to use the say block and the dog is going to say no 'cause the dog is the wrong answer for this one. And then the dog is going to hide and the programme will end. So I need to end block here. Let's test this all out. Going to make this full screen. The question for the first page is, which animal is taller? So if I tap on the snake, the answer will be wrong. Let's test that, okay, the snake said no and hid. That's good, so the pig should be the right answer. If I tap on the pig, it should say yes and go to the next page. There we go. Page two's question is, which animal can fly? So the dog will be the wrong answer. If I tap on the dog, it should say no and hide. That's great, and then if I tap on the bat, it should say yes and take me back to the beginning. This programme is all finished.
      Y2 L5 Quiz question demo © Scratch is a project of the Scratch Foundation. It is available for free at https://scratch.org. OR ScratchJr is a project of the Scratch Foundation. It is available for free at https://scratchjr.org. OR Scratch Foundation under CC BY-SA 2.0. Y2 L5 Task B video feedback v2 © Scratch is a project of the Scratch Foundation. It is available for free at https://scratch.org. OR ScratchJr is a project of the Scratch Foundation. It is available for free at https://scratchjr.org. OR Scratch Foundation under CC BY-SA 2.0.