programming Flashcards
to learn more about programming
What is programming ?
programming is writing computer code to create a program, to solve a problem.
What is a program?
Sequences of instructions for a computer.
Define algorithms
a series of step by step instructions.
What is a pseudo code?
A method of writing up a set of instructions using the plain English language.
What is a flow chart?
A diagram that shows a process, made up of boxes representing steps, decision, inputs and outputs.
What is a programming language?
A language used by a programmer to write a piece of software.
What is a statement?
The smallest element of a programming language which expresses an action to be carried out.
Also it is a keyword in a programming language.
Define instruction
A single action that can be performed by a computer p.
What is a machine code?
A programming language that a computer understands
What does the statement ‘print’ do?
The ‘print’ statement outputs a message on the screen.
What does the statement ‘while’ do?
The ‘while’ statement implements a loop.
What does the statement ‘def’ do?
The ‘def’ statement creates a function or a procedure.
What do the statements ‘if’ and ‘else’ do?
Implement selection
How many statements are there in this line of code: print(“If I am 17, I can drive a car”)?
There is one statement - ‘print’ - in the line of code print(“If I am 17, I can drive a car”).