✦ New Age Learning
Home › Learn › Class 5 › Computer & AI › Thinking Like a Programmer

Class 5 Computer & AI Chapter 4: Thinking Like a Programmer — practice questions with answers

Free practice for Class 5 Computer & AI, Chapter 4: Thinking Like a Programmer. Try the solved questions below, then take a free test with instant marking and explanations.

25 questions8 easy, 12 medium, 5 hardNCERT · CBSE · State boards

Sample questions with solutions

Q1. A set of step-by-step instructions to finish a task is called an ______.
Show answer
Answer: algorithm
Why: An algorithm is a clear list of steps in the right order, like a recipe. [NAL syllabus, Unit 4]
Q2. Which is the correct ORDER of steps to brush your teeth?
  1. Wet brush → put paste → brush → rinse
  2. Rinse → brush → put paste → wet brush
  3. Brush → put paste → wet brush → rinse
  4. Put paste → rinse → brush → wet brush
Show answer
Answer: A. Wet brush → put paste → brush → rinse
Why: In an algorithm the order of steps matters; doing them out of order gives a wrong result. [NAL syllabus, Unit 4]
Q3. What is a ‘loop’ in programming?
  1. Repeating a set of instructions
  2. Stopping the program
  3. A kind of mouse
  4. A spelling mistake
Show answer
Answer: A. Repeating a set of instructions
Why: A loop repeats steps, for example ‘repeat 4 times: move and turn’. [NAL syllabus, Unit 4]
Q4. A sprite follows: repeat 5 times [move 10 steps]. How many steps does it move in all?
Show answer
Answer: 50 (± 0)
Why: The move is repeated 5 times: 5 × 10 = 50 steps. [NAL syllabus, Unit 4]
Q5. Finding and fixing mistakes in a program is called ______.
Show answer
Answer: debugging
Why: A mistake in code is called a bug; fixing it is debugging. [NAL syllabus, Unit 4]
Q6. In Scratch, what do we call the characters that move on the stage?
  1. Sprites
  2. Folders
  3. Viruses
  4. Monitors
Show answer
Answer: A. Sprites
Why: Scratch characters are called sprites; we give them instructions with blocks. [NAL syllabus, Unit 4]

Practise all 25 questions free

Timed test, marked instantly, with the correct answer and explanation for every question and a chapter-wise report.

Start the free test

Frequently asked questions

How many practice questions are there for Class 5 Computer & AI Chapter 4: Thinking Like a Programmer?

25 questions (8 easy, 12 medium, 5 hard). A few are solved on this page; the free test shows the answer and explanation for every question after you submit.

Is this chapter from the NCERT book?

Yes — it follows the NCERT Class 5 Computer & AI syllabus, used by CBSE and many state boards.

← Staying Safe OnlineWhat is Artificial Intelligence? →