Questions I dont understand from smart revise Flashcards
(20 cards)
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
What is a distributed OS
Software is spread over a collection of independent, networked, communicating and physically separate computers.
What is polymorphism
Characteristic in object oriented programming of being able to allow methods in a subclass to override methods of the same name from their inherited superclass.
What are peripherals
Any device that connects to the computing unit but is not part of the core architecture of the computing unit
What is parameter passing by value
A local copy of the data is used. This is discarded when the sub-routine ends because local variables are stored on a stack and popped when the routine ends.