اردو

Home / Practice / Programming basics / Worksheet

Practise online

Programming basics

Class 10 · Computer Science · 6 questions

Name: ____________________   Date: ____________

  1. A step by step set of instructions to solve a problem is an:

    • A Network
    • B Output
    • C Algorithm
    • D Browser
  2. In a flowchart, a diamond shape represents a:

    • A Input
    • B Process
    • C Decision
    • D Start
  3. Which of these is a loop structure?

    • A if
    • B for
    • C print
    • D end
  4. An error in the logic or syntax of a program is called a:

    • A Bit
    • B Byte
    • C Bug
    • D Browser
  5. A variable is a:

    • A Output device
    • B Named storage location
    • C Type of cable
    • D Menu
  6. In Python, the output of print(2 + 3) is:

    • A Error
    • B 2+3
    • C 23
    • D 5

Answer key

1. C, 2. C, 3. B, 4. C, 5. B, 6. D

  1. An algorithm lists steps in order.

  2. A diamond shows a yes or no decision.

  3. A for loop repeats a block.

  4. Errors in code are called bugs.

  5. A variable holds a value in memory.

  6. The expression is evaluated first, giving 5.