Programming Flashcards
(39 cards)
What are the five data types
Integer, real/float, string, character and Boolean
What is integer
Integer is a whole number
What is a real/float?
A real is a decimal number
What is character?
A character is a single letter or number
What is a string?
A piece of text
What is a Boolean?
TRUE or FALSE
What is a sequence?
This is a set of instructions that follow on one from another
What is a selection ?
A decision within a computer program when the program decides to move on based on the results of an event.
What is iteration?
The repetition of a block of statements within a computer program.
What is a variable ?
Data that changes
What is a constant ?
Data that remains the same
What is an array?
One method of storing data in an organised structure
What is a constant declaration ?
A value that increases or decreases at a constant rate each time
What is an assignment?
The instruction that is carried out in order to get the variable value
Python examples of input ?
Text, click button
Python examples of output?
Sound, image
Python example of reading from a file ?
Asking the program to select and output an output from the list
Python example of writing to a file ?
Editing the file like adding items or removing items
What are some types of low level languages?
Machine language, assembly language and mnemonics
What are some types of high level language?
Source / machine code
What is the job of interpreter ?
It turns high level language into low level language, assembly language and Binary language
What is the job of compiler?
It turns high level language into lower level language
What is the job of assembler?
It turns computer instructions into binary
What is an identifier ?
A name given to a part of a program, such as a variable, constant, function, procedure or module.