Questions I dont understand from smart revise Flashcards
What is lexical analysis
Breaks source code into tokens by removing whitespace, tabs and comments as they are not needed. This form is best suited for the syntax analyser
What is a base class in OOP
A base class is the highest class and does not inherit from any other class
Thinking logically
Identifying the points at which a decision is needed, determine the conditions of those decisions and determine the next steps depending on the outcome of the decisions.
e.g. flowchart
Order of compilation
Lexical analysis - Syntax analysis - Code generation - Optimisation
What does non pre-emptive mean
Able to interrupt a job during its running state and move it into a ready state.
e.g. First come first serve
What is encapsulation in OOP
Attributes of a class cannot be accessed by other classes if they are declared private
What is a super class in OOP
A class from which another class is derived, this super class can inherit attributes, methods and aids specialisation
What is a virtual machine
An abstraction of an underlying hardware architecture allowing programs written for one type of system to work on other systems.
What do file managers do
File managers allow directories, folders and files and to created, moved, copied, deleted and renamed.
What are error diagnostics
Messages from the compiler to the programmer indicating the location of syntax or possible logical errors, these message often reference the line number where the problem has occurred.
What is the purpose of a structure diagram
It’s used to break down a problem to show the order of program modules in a top-down design
What translates low level language code
Assembler
What translates intermediate level language code
Interpreter
What translates high level language code
Compiler
What is utility software
System programs that perform a specific task in the operation of the computer.
e.g. file backup, virus checking