Topic 1 Computational Thinking and Topic 6 Problem Solving Flashcards
1.1 (9-12 & 14), 1.2 (18-23), 1.3 (24-28), 1.4 (35), 1.8 (105)
Define a “syntax error”
This is a category of error.
An error in the use of the programming language.
e.g a missing ‘:’ or a misspelled keyword
Define a runtime error.
This is a category of error.
An error which causes a program to crash.
e.g ‘divide by sero’ and ‘index out of range’
Define a logic error.
An eror which causes incorrect or unwanted behaviour(s).
e.g using the wrong arithmetic operator or mixing up variable names.
What is syntax?
The rules that govern how the pieces of a programming language can be put together to make meaningful instructions
Similar to grammar and punctuation in english.
What is IDE?
It is a package that helps programmers to develop program code.
What is a reserved word?
Any keyword in the programming language that programmers aren’t allowed to change.
^ So use for variables etc.
What is a comment?
A way for programmers to annotate code so their logic is clear to the reader. Comments aren’t executed.
What is a literal?
Values in code, such as numbers or characteristics inside quotes. They can’t be changed during execution.
What is a variable?
A name associated with containers which programmers use to hold data. Their contents can be changed during execution.
What is a program?
An algorithm which has been converted into program code to be executed.
What is program code?
The implementation of an algorithm in a human-readable form that can be translated into a form to execute on a computer.
Define ‘debugging’.
The process by which a programmer finds and corrects errors in code.
What does IDE stand for?
Integrated Development Environment.
What is carriage return?
The character generated inside the computer when a user presses the Enter key on the keyboard.
What is a console?
The place where the output from a program is displayed.
This could be directly on a device or in a window of another app, such as IDE.
What is a high level language?
A programming language resembling human language.
What is a low level language?
A programming language that is closer to machine code than human language and requires a detailed knowledge of a particular CPU’s architecture to write.
What is a type error?
An error that occurs when an operation is attempted that is invalid for that type of data.
What is a name error?
An error that occurs when a name is used that is not known about (often a misspelt variable name.)
What is a zero division error?
An error that occurs when you attempt to divide a number by zero.
Define ‘keyboard interrupt’.
When a program is interrupted by the keyboard when pressing control+c
Who was the creator of boolean?
George Boole.