Programming basics

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:15 PM on 4/23/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

7 Terms

1
New cards

Features that make code understandable

  • Indentation

  • White space

  • Comments

  • Meaningful variable names

  • Capitalised keywords

2
New cards

Importance of good practice

  • Makes code easier to understand, describes purpose of sections of code and of identifiers

  • Makes code easier to debug/test and maintain

3
New cards

Constants

  • Used for values that are only entered once

  • Avoids input error or accidental change of value

  • Easier to maintain program when constant has to change (change once, automatically update)

  • Makes program easier to understand

4
New cards

Library routines + benefit during development

  • More complex functions can be used in code through use of a program library

  • Tried and tested free from errors

  • Perform functions programmers may not be able to program themself

  • Readily available and speed up development time

5
New cards

Use of library routines

  • Used for tasks that are performed/repeated in several places within the code

  • When part of an algorithm performs a specific task

  • Reduces complexity of program

  • Easier testing/debugging

6
New cards

Selection constructs

  • IF statement

  • CASE statement

    • Consists of clauses that are checked in sequence

    • If a value satisfies the first clause, other clauses will never be tested

    • The “otherwise” clause may never be performed if all possible values are addressed via the other previous clauses

7
New cards

Iterative constructs

  • WHILE pre conditional loop - used when number of iterations is not known

  • REPEAT post conditional loop - used when number of iterations is not known

  • FOR count-controlled loop - used for known number of iterations