You're offline — cached pages and worlds still work
Drishti Innovations logo
Drishti Innovations
Syllabus /School /Class 6 /cs /Programming Basics

Programming Basics

Programming Basics — notes and practice.

What you'll learn

  • How a computer works using the Input-Process-Output model
  • The difference between system software and application software
  • What algorithms are and how to draw flowcharts
  • How to get started with Scratch — sprites, costumes, blocks, and simple programs

Key concepts

1. What is a Computer?

A computer is an electronic device that accepts data, processes it according to instructions, and produces useful output. Every computer operation follows the IPO cycle:

INPUT  →  PROCESS  →  OUTPUT
StageDefinitionExamples
InputData or instructions given to the computerTyping on keyboard, clicking mouse, scanning a barcode, microphone
ProcessThe CPU executes instructions on the input dataCalculations, sorting, searching, comparing
OutputThe result produced after processingText on screen, printed document, sound from speakers

Real-world IPO examples:

TaskInputProcessOutput
Typing a documentKeys pressed on keyboardCPU stores & formats charactersText displayed on screen
Playing musicClick "Play" buttonCPU decodes audio fileSound from speakers
Taking a photoCamera button pressedSensor captures light dataImage saved to memory
Calculator: 5 + 3Numbers 5 and 3, operator +CPU adds the valuesAnswer 8 on screen

Main hardware components:

ComponentRole
CPU (Central Processing Unit)The "brain" — carries out all processing
RAM (Random Access Memory)Temporary memory while programs are running
Storage (HDD/SSD)Permanent memory for files and programs
Input devicesKeyboard, mouse, scanner, microphone
Output devicesMonitor, printer, speakers

2. Types of Software

Software is a set of instructions that tells the hardware what to do. There are two main categories:

System Software

Controls and manages the hardware so that other programs can run.

TypeExamplesRole
Operating SystemWindows 11, macOS, Linux, AndroidManages hardware, memory, files, and user interface
Device DriversPrinter driver, graphics driverAllows OS to communicate with specific hardware
Utility ProgramsAntivirus, Disk Cleaner, Backup toolsMaintains and optimises the computer

Application Software

Programs designed for specific tasks that users carry out.

CategoryExamples
Word processingMicrosoft Word, Google Docs
SpreadsheetMicrosoft Excel, Google Sheets
Web browserChrome, Firefox, Safari
EducationalKhan Academy, Scratch, Duolingo
Media playerVLC, Windows Media Player
GamesMinecraft, Roblox

System vs Application Software — comparison:

FeatureSystem SoftwareApplication Software
PurposeManages hardware and resourcesPerforms user tasks
RunsFirst, when computer startsAfter system software is running
ExamplesWindows, LinuxMS Word, Chrome
User interactionMostly backgroundDirect user interaction

3. Algorithms and Flowcharts

What is an Algorithm?

An algorithm is a step-by-step set of instructions to solve a problem or complete a task. Think of it as a recipe for a computer.

Properties of a good algorithm:

PropertyMeaning
InputHas clearly defined inputs (can be zero or more)
OutputProduces at least one output
DefinitenessEach step is clear and unambiguous
FinitenessMust end after a fixed number of steps
EffectivenessEach step is simple enough to be carried out

Example — Algorithm to find if a number is even or odd:

Step 1: Start
Step 2: Input a number N
Step 3: Divide N by 2 and find the remainder
Step 4: If remainder = 0, print "Even"
Step 5: Else print "Odd"
Step 6: Stop

Flowchart Symbols

A flowchart is a visual diagram of an algorithm using standard shapes:

ShapeSymbol nameUsed for
OvalTerminalStart / Stop
ParallelogramInput/OutputRead data / Display result
RectangleProcessCalculation or action
DiamondDecisionYes/No question
ArrowFlow lineDirection of flow

Flowchart example — Even or Odd:

[START]
   ↓
[INPUT N]
   ↓
[N mod 2 = 0?] → YES → [Print "Even"] → [STOP]
       ↓ NO
[Print "Odd"]
       ↓
[STOP]

4. Scratch Basics

Scratch (scratch.mit.edu) is a visual programming language designed for beginners. Instead of typing code, you snap together colourful blocks.

Key Scratch concepts:

TermWhat it isExample
StageThe area where the program runsThe big screen/canvas
SpriteA character or object on the stageCat, ball, rocket
CostumeDifferent looks of a spriteWalking animation frames
BackdropThe background image of the stageForest, classroom, space
BlockA single programming instruction"move 10 steps"
ScriptA connected stack of blocksA complete set of instructions

Scratch block categories and colours:

CategoryColourExamples
MotionBluemove 10 steps, turn 15 degrees, go to x: y:
LooksPurplesay "Hello!", switch costume, change size
SoundPinkplay sound, set volume
EventsYellowwhen green flag clicked, when key pressed
ControlOrangewait 1 second, repeat 10, if-then-else
SensingCyantouching mouse pointer?, ask and wait
OperatorsGreen+ - × ÷, and/or/not
VariablesDark orangeset [score] to 0, change [score] by 1

Simple Scratch program — Make a sprite greet you:

[When Green Flag clicked]        ← Events block
[Say "Hello! I am a cat!" for 2 seconds]  ← Looks block
[Move 50 steps]                  ← Motion block
[Play sound "Meow"]              ← Sound block

Simple Scratch program — Make a sprite move in a circle:

[When Green Flag clicked]
[Repeat 36]
    [Move 10 steps]
    [Turn 10 degrees]

Try it: Open Scratch at scratch.mit.edu, drag these blocks together, and click the green flag to see your sprite move!


Quick check

  1. A student types their name and the computer displays a greeting. Identify the Input, Process, and Output in this scenario.

  2. Is an antivirus program system software or application software? Explain your answer.

  3. List any four properties a valid algorithm must have.

  4. In a flowchart, what shape is used for a decision (yes/no question)?

  5. In Scratch, what is the difference between a Sprite and a Costume?


Open the Practice tab for graded questions on Programming Basics.

0 topics • Notes • Practice • AI explanations available

For generative engines & students

Every topic page delivers structured HTML (headings, lists, tables, takeaways) in the first response. Perfect for citations in AI overviews and fast scanning by students and parents.