100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Edexcel GCSE Computer Science Glossary Exam Questions And Complete Answers $9.49   Add to cart

Exam (elaborations)

Edexcel GCSE Computer Science Glossary Exam Questions And Complete Answers

 18 views  0 purchase
  • Course
  • Institution

Edexcel GCSE Computer Science Glossary Exam Questions And Complete Answers Compiler Translates the whole program into machine code at once before the program is run. 1. Code executes quickly (as already translated). 2. Slower to find errors (as all code must be translated). Interpreter ...

[Show more]

Preview 3 out of 23  pages

  • April 27, 2024
  • 23
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
Edexcel GCSE Computer Science Glossary Exam
Questions And Complete Answers
Compiler
Translates the whole program into machine code at once before the program is run.

1. Code executes quickly (as already translated).
2. Slower to find errors (as all code must be translated).
Interpreter
Translates source code into machine code, line by line when the program is run.

1. Code can run on different platforms/devices (as it's translated on the platform running
the program).
2. Source code needs to be provided (so competitors could steal your source code
ideas).
Assembler
Translates assembly language source code to machine code.

1. Code can run very quickly and use less memory (as programmer chooses the
machine code instructions).
2. Uses easier to understand assembly language instead of machine code binary values
(so programs can be developed more quickly and with fewer errors).
Translator
A program that translates high-level or assembly language source code into runnable
machine code.
Source code
The high-level or assembly language program instructions the programmers type into
the development environment text editor..
Machine code
The low-level set of instructions built into a CPU, e.g. add, compare, branch or move.
Each instruction is represented by a unique binary code, e.g. 0100101.
Assembly language
A low-level programming language that uses short easier to understand mnemonics,
like ADD, SUB or MOV, to represent machine code instructions. Each mnemonic
translates directly to a machine code instruction.
Mnemonics
Short combinations of letters used in assembly language to help programmer
understand what machine code instruction do, e.g. MOV for move or CMP for compare.
Low level languages
Are programming languages that use binary values (machine code) or short easier to
understand mnemonics (assembly language) in programs.

,Low-level programs can:
1. run more quickly,
2. use less memory,
3. control hardware more easily.
High level languages
Are programming languages which use more English-like statements that are easier for
humans to understand.
Integer data type (int)
Any whole number, e.g. 10.
Real data type (float)
Any number with a decimal point or fraction, e.g. 3.14
Boolean data type (bool)
Any true or false value, e.g. day == "Tuesday" will be True if the day contains Tuesday
or False if it does not. You can also set a variable directly to True or False.
Character data type (str)
Any letter, number or symbol, e.g. "H".
String data type (str)
A sequence of characters, e.g. "Hello".
Variable
A named reference to a memory location containing a value that can be used
throughout a program and be changed. Names should be meaningful, i.e. describe the
values they contain.
Constant
A named reference to a memory location containing a value that can be used
throughout a program but cannot be changed.

Constants make a program:
1. easier to understand (as descriptive names are used instead of just values, e.g. PI
instead of 3.14),
2. easier to update (as the constant only need to be edited in one place, where it is
defined).
Arithmetic Operators
Perform mathematical calculations such as:

addition, e.g. 3 + 2
subtraction, e.g. 3 - 2
multiplication, e.g. 3 * 2
float division, e.g.
integer division, e.g. 3 // 2 (returns an integer)
exponentiation, e.g. 3 ** 2 (raise 1st number to power of 2nd)
modulus, e.g. 3 % 2 (remainder after dividing 1st number by 2nd)
Relational Operators
Used to compare two values and return true or false depending on the result. Operators
can check if:

, left and right values are equal, e.g. value == 3
left value is less than right, e.g. value < 3
left value is greater than right, e.g. value > 3
left value is less than or equal to right, e.g. value <= 3
left value is greater than or equal to right, e.g. value >= 3

Usually used in selection or condition controlled loop statements, e.g. if value == 3, or
while value == 3.
Logical Operators
Used to combine two or more conditions, made using relational operators, to create a
more complex condition, e.g. day == "Sat" or day == "Sun" will be true if day equals Sat
or Sun. The operators are:

and (true if all the joined conditions are true)
or (true if any of the joined conditions are true)
not (true if the condition that follows is not true)
Input
Data that is entered into a computer system, assigned to a variable and processed in a
program. Use the input/output symbol in a flowchart. Use the input command in Python.
Output
Data that is outputted by a program in a computer system. Use the input/output symbol
in a flowchart. Use the print command in Python.
Presence check - input validation
A type of validation check that checks to see that the user has entered a value when
asked to do so by the program.
Length check - input validation
A type of validation check that checks to see that the user has entered the correct
number of characters when asked to do so by the program.
Range check - input validation
A type of validation check that checks to see that the user has entered a value within
the correct range of values when asked to do so by the program.
Lookup check - input validation
A type of validation check that checks to see that the user has entered a value from an
acceptable list of values when asked to do so by the program.
von Neuman stored program concept
A modern computer architecture in which program instructions are stored in main
memory and fetched decoded & executed one at a time by the CPU.
Bus
The copper tracks (wires) on which the addresses, data and control signals move from
component to component.
Address bus
The bus that transmits the memory location of an instruction or piece of data from the
CPU to main memory.
Data bus
The bus that transmits data between the CPU and memory.
Control bus

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller NurseAdvocate. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80467 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.49
  • (0)
  Add to cart