Lesson T2.1.1

T2.1.1 Solving problems with two or more programming languages Quiz: KS3 Computing, Unit 2

20 questions

In partnership with Revision Ninja

Lesson T2.1.1, Solving problems with two or more programming languages: 20 multiple choice questions for the KS3 Computing (National Curriculum), Unit 2: Programming, written with Revision Ninja.

Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.

Host this setFree Play

The 20 questions

  1. What is a block-based programming language?

    • A language that only runs inside a web browser's address bar
    • A language that stores code as pictures of the program output
    • A language where code is written as typed text with strict punctuation
    • A language where code is built by joining visual blocks that snap together
  2. Why might a beginner start with a block-based language?

    • It is always faster than every text-based language
    • It avoids typing errors and makes the logic easy to see
    • It stops the programmer from ever needing variables
    • It is the only language that computers can understand
  3. Why might a programmer use a text-based language for a large app?

    • It means the code can never contain any errors once it has been saved
    • It makes the program run on any device without testing it on each one first
    • It gives finer control and suits large programs that need careful structure
    • It removes the need for any programming knowledge by writing code in plain English
  4. A pupil builds a quiz game in Scratch and then rewrites part of it in Python. What is this an example of?

    • Writing code without any structure or plan
    • Removing all the logic from the original program
    • Using two programming languages to solve parts of a problem
    • Converting a program into a spreadsheet
  5. Which language is an example of a block-based language?

    • Java
    • Scratch
    • C
    • Python
  6. Which is a text-based programming language?

    • A flowchart on paper
    • Blockly-style drag and drop
    • Scratch
    • Python
  7. A program needs to read sensor data quickly and also show a simple display. Why might two languages be used?

    • Two languages are needed so that no testing is required
    • Each language can be chosen for the part of the task it handles best
    • Only one language can ever be used for any task
    • Two languages always make the program run twice as fast
  8. In a block-based language, what does a block usually represent?

    • A picture that is shown on screen while the program is running
    • A complete computer with its own memory, processor and storage device
    • A single instruction or a control structure such as a loop
    • The name of the programmer who wrote the code and the date it was written
  9. A pupil wants a sprite to move 10 steps and repeat ten times. Which is the right block idea?

    • A single move block with 100 steps and no repeat
    • A broadcast block sent to every sprite once
    • A repeat block containing a move block of 10 steps
    • A say block with the number 10 inside it
  10. Why is it useful to know two languages for a computing project?

    • It makes every program run without errors, whatever language is chosen
    • It means you only need one language for every project you ever start
    • Each language suits different tasks, so you can pick the better tool
    • It removes the need to plan the project at all, since code can be rewritten
  11. Which feature is typical of a text-based language but less common in block languages?

    • Dragging shapes to build a program
    • Typing exact syntax, such as brackets and semicolons
    • Showing the program as coloured building bricks
    • Joining pieces together with snap points
  12. What is the main advantage of a text-based language over a block-based one for experts?

    • It only runs on one type of computer, which limits where programs can be used
    • It is more concise and gives precise control over every detail
    • It needs no testing at all before use, so it is quicker to write
    • It cannot contain loops or decisions, so programs are limited in what they do
  13. A pupil's Scratch program works, but the team wants a faster version. What might they do?

    • Turn off the computer and try again later
    • Add more sprites without changing the logic
    • Delete the program and start with no plan
    • Rewrite the slow part in a text-based language
  14. What is the purpose of a programming language?

    • To connect computers to the internet automatically
    • To give precise instructions that a computer can follow
    • To print documents on a printer
    • To store photographs in a database
  15. Which example best shows a problem solved with two languages?

    • A spreadsheet that only uses a single formula copied down a column
    • A game in Scratch that sends data to a Python script for scoring
    • A poster designed in a word processor and printed in full colour
    • A video recorded on a phone camera and then edited in a separate app
  16. Why might a programmer choose a block language for teaching sequence and loops?

    • It shows the structure clearly without syntax errors getting in the way
    • It is the only way to teach loops to pupils who are learning to code
    • It removes the need for any logic at all, so pupils just drag blocks together
    • It forces pupils to memorise binary numbers before they write any code
  17. A program is written in a text language. What must be correct for it to run?

    • The code must use only capital letters so the computer can read it
    • The spelling and punctuation must follow the language's rules
    • The code must be shorter than ten lines before the computer will accept it
    • The program must be printed on coloured paper before it can be run
  18. Which is a benefit of using a block language in a classroom?

    • Pupils can build working programs quickly and see the results
    • Pupils never need to learn about variables or loops
    • Pupils never make any logical mistakes at all
    • Pupils can skip planning their programs entirely
  19. A pupil uses Python to calculate scores and Scratch to show animations. What is the best description?

    • Writing a single text document with no code
    • Using a database without any programs
    • Solving a problem with two programming languages
    • Creating a printed poster for the classroom wall
  20. Which description fits a text-based programming language?

    • Code is drawn as a flowchart with arrows only
    • Code is recorded as a sound clip that the computer plays
    • Code is typed as words and symbols that must follow exact rules
    • Code is built by dragging coloured blocks together

All KS3 Computing quizzes