Search Header Logo
Programming Constructs

Programming Constructs

Assessment

Presentation

Computers

7th - 12th Grade

Practice Problem

Medium

Created by

Jane Sampson

Used 8+ times

FREE Resource

8 Slides • 7 Questions

1

Programming Constructs & Techniques

Unit 4

Slide image

2

Remote lessons Tuesday 5/1/21

  • Cover content first

  • Tasks undertaken

  • Check back in for q/a

3

Constructs & Techniques

  • These are the building blocks used to create programs

  • Many constructs are common across languages

  • This is why your knowledge can be transferred between languages

4

Multiple Choice

Python, Visual Basic and Scratch are examples of high level programming languages

1

True

2

False

5

Constructs you need to know

  • Command words - the programmer cannot use them in variable names etc

  • Identifiers - when the programmer names things they are creating identifiers such as variables and constants

  • Two things needed to declare a constant or variable: a name and a data type

6

Multiple Choice

The value of a variable cannot change while the program is running

1

True

2

False

7

More constructs

  • Data types - character, string, integer, real or float, Boolean

  • Statements - putting constructs together such assignment, input and output


8

Multiple Choice

Which of the following is an example of a real data type?

1

1

2

Yes/No

3

1.0

4

&

9

Statements

  • The core aspect of many programming languages

  • They define the basic actions that can be performed, and often combine more than one language construct

  • Most statements are case sensitive and some require punctuation marks to mark the end of the statement

10

Multiple Select

Which of the following is not a user input?

1

Text from a keyboard

2

Clicks from a mouse

3

Taps from a finger

4

Seeing a message on screen

11

Control structures

  • Sequence: One action after another, none missed, none repeated

  • Selection: Actions chosen based on a supplied condition which is evaluated to true or false

  • Iteration - Actions repeated a number of times, typically until a condition is no longer true

12

Multiple Choice

Iteration that happens a set number of times is known as count-controlled iteration

1

True

2

False

13

Multiple Select

Iteration that repeats until a condition is met is condition-controlled iteration

1

False

2

True

14

OneNote tasks you need to do

  • 4.16 Identifiers

  • 4.17 Declaring data types in variables

  • 4.18 Statements

  • 4.19 Control structures

15

Fill in the Blanks

Type answer...

Programming Constructs & Techniques

Unit 4

Slide image

Show answer

Auto Play

Slide 1 / 15

SLIDE