اردو

Home / Practice / Class 10 / Computer Science / Programming basics

Programming basics

6 Class 10 Computer Science questions with answers and explanations.

Printable worksheet with answer key

All questions with answers
  1. A step by step set of instructions to solve a problem is an:

    • 1 Network
    • 2 Output
    • 3 Algorithm
    • 4 Browser
    Show answer

    Correct answer: Algorithm

    An algorithm lists steps in order.

    Report a mistake

  2. In a flowchart, a diamond shape represents a:

    • 1 Input
    • 2 Process
    • 3 Decision
    • 4 Start
    Show answer

    Correct answer: Decision

    A diamond shows a yes or no decision.

    Report a mistake

  3. Which of these is a loop structure?

    • 1 if
    • 2 for
    • 3 print
    • 4 end
    Show answer

    Correct answer: for

    A for loop repeats a block.

    Report a mistake

  4. An error in the logic or syntax of a program is called a:

    • 1 Bit
    • 2 Byte
    • 3 Bug
    • 4 Browser
    Show answer

    Correct answer: Bug

    Errors in code are called bugs.

    Report a mistake

  5. A variable is a:

    • 1 Output device
    • 2 Named storage location
    • 3 Type of cable
    • 4 Menu
    Show answer

    Correct answer: Named storage location

    A variable holds a value in memory.

    Report a mistake

  6. In Python, the output of print(2 + 3) is:

    • 1 Error
    • 2 2+3
    • 3 23
    • 4 5
    Show answer

    Correct answer: 5

    The expression is evaluated first, giving 5.

    Report a mistake

More Computer Science topics