Computer Science LearnITWithMrC ⛯ Year 7 Year 8 Year 9 GCSE
Responsive image

D1 - Procedural Programming

Overview
Flight Path
Learning Objectives
0 results forGuest
IDSkill_name
 4.1 I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of: statements
 4.1 I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of: blocks
 4.1 I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of: procedures
 4.1 I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of: functions/sub-routines
 4.1 I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of: control structures:sequence
 4.1 I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of control structures: selection(conditions)
 4.1 I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of control structures: iteration
 4.1 I can Interpret, debug and use code written using procedural paradigms

🏁 Learning Objective 83 :- I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of: statements


Statement

break

Simple Statements

Examples of simple statements would include

  • an assignment: x:= x + 5
  • a return : return x
  • Exercise

  • Explain what a statement is in terms of a procedural language and give an example in python.
  • Extension questions:

    1. What is an expression in a procedural language and how does it realate to a statement?
    2. What is the difference between a 'simple statement' and a 'compound statement'?

    🏁 Learning Objective 84 :- I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of: blocks


    Code Blocks

    In computing, a block or code block is a syntactic structure of code where one or more declarations and statements are grouped together.

    The function of blocks in programming is to enable groups of statements to be treated as if they were one statement, and to narrow the lexical scope of variables, procedures and functions are declared in a block so that they do not conflict with variables having the same name used elsewhere in a program that have different purposes.

    In Python indentation is the method of creating a code block

    break

    Exercise

  • Explain what a code block is in terms of a procedural language and give an example in python.
  • Extension questions:

    1. What happens if the indentation in a code block is incorrect give an example?
    2. Explain how a compound statement can also be a code block?

    🏁 Learning Objective 85 :- I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of: procedures



    🏁 Learning Objective 86 :- I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of: functions/sub-routines



    🏁 Learning Objective 87 :- I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of: control structures:sequence



    🏁 Learning Objective 88 :- I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of control structures: selection(conditions)



    🏁 Learning Objective 89 :- I can Interpret, analyse and evaluate code written using procedural programming paradigms in terms of control structures: iteration



    🏁 Learning Objective 90 :- I can Interpret, debug and use code written using procedural paradigms



    Challenge - Roll the dice

    Your challenge is to make a programme in python that rolls a dice and diplays it on the screen like the image below.


    Roll the dice Part 1 - creating a dice() function


    Roll the dice Part 2 - Making a GUI window


    Roll the dice Part 3 - Adding your function and a text box


    Roll the dice Part 4 - Making improvements


    For more tips click here

    0 results forGuest
    Recent Comments

    Teacher Date: 2025-10-26


    Guest