GCSE COMPUTER SCIENCE MOCK

?
What are functions and procedures and what are they used for?
They are named blocks of code (subroutines) that can be used and re-used to perform specific tasks
1 of 52
What is a procedure
A procedure is a block of code that performs a task without returning a value
2 of 52
What is a function?
A function is very similar to a procedure except that it returns a value
3 of 52
What are the two types of functions?
User defined and built in functions
4 of 52
What are the advantages of built in functions?
They are always available to call and they save a lot of effort in writing code.
5 of 52
What are parameters and what do they do?
It is provided as an input to the subroutine and it allows the use of passing of values for use inside it
6 of 52
What is procedure scope?
Procedure scope refers to when a variable can be read and modified only from within the procedure in which it is declared.
7 of 52
what is module scope?
Module scope refers to when a variable is declared before and outside of any procedure within a regular program module.
8 of 52
What is project scope?
Project scope is declared using the public command keyword. Variables with project scope can be read and modified from any procedure contained within any module within the program or project.
9 of 52
What is global scope?
Global scope variables have the capability of being accessed from anywhere within the project
10 of 52
What are the three types of errors?
Syntax, Run-time and Logic
11 of 52
When do syntax errors occur?
Syntax errors occur when the programmer fails to obey one of the grammar rules
12 of 52
When do run-time errors occur?
Run-time occurs whenever the program instructs the computer to carry out an operation that it is either not designed to do or slow to do
13 of 52
When do logic errors occur?
The program runs succesfully, but it produces incorrect results
14 of 52
What is the most difficult error to find and why?
Logic errors because there is no obvious indication of the error within the software
15 of 52
What are the reasons for logic errors to occur?
The programmer did not understand the manner in which the program was meant to behave , the programmer did not understand the individual behaviour of each operation that was part of the program.
16 of 52
What is dry-run testing?
Dry-run testing is usually carried out on the algorithm which is written in pseudocode or as part of a flowchart.
17 of 52
What two things are needed to debug effectively?
The ability to test each of the instructions provided by a program, the capability to retrieve the information about the results of the instructions and the changes in the program when the tests were carried out
18 of 52
What is a trace table?
A trace table is used to test algorithms to see if any logic errors occur while the algorithm is being processed.
19 of 52
What are text files used for
Text files are a convenient format that allows programs created in a range of different languages to handle external data.
20 of 52
Define a computer system
A computer system contains input, storage , process and an output
21 of 52
Hardware devices include ......
keyboard,mouse, scanner and microphone
22 of 52
Name 3 output devices
Monitor, speakers, printer
23 of 52
What are the two types of hardware?
system hardware and other hardware
24 of 52
What is meant by hardware?
The physical components of a computer
25 of 52
What is meant by software?
the programs and other operating information used by a computer.
26 of 52
What is a CPU and what does it do?
A CPU is a type of processor that runs the system.
27 of 52
What is a motherboard and what does it do?
A motherboard links to the CPU and PUs to the memory and other hardware . The motherboard is responsible for holding all of the computer settings such as time and date.
28 of 52
What is the job of a graphics card?
The graphics card supports the CPU . It has a processor like the CPU.However, it is especially designed to control screen images.
29 of 52
What two components does a graphics card consist of?
A video chip set and RAM
30 of 52
Define the term cycle
The CPU undertakes instructions it receives from programs
31 of 52
Complete the sentence: The CPU has a number of .....
cores
32 of 52
How is the speed of the CPU measured?
The speed of the CPU is measured in how many cycles it can perform in a second.
33 of 52
What is the name given to one cycle per second?
hertz
34 of 52
What are the two types of memory?
Volatile and non-volatile
35 of 52
What is volatile memory?
Volatile memory is computer memory that requires a power supply in order to maintain stored data.
36 of 52
name a type of volatile memory
RAM
37 of 52
What is non-volatile memory?
Non-volatile memory is computer memory that retains its information whether the power being supplied to t is turned on or switched off.
38 of 52
Give an example of a non-volatile memory
ROM
39 of 52
What is cache?
Cache is very high speed memory and it draws the data from the RAM as it is needed.
40 of 52
The faster the CPU the ..... the cache needs to be
larger
41 of 52
What are the advantages and disadvantages of DRAM?
Each stored data bit takes up a very small space and the disadvantage is that to achieve this the stored charge does not last very long so it has to be refreshed periodically by a control circuit in the RAM stick.
42 of 52
What is virtual memory?
Virtual memory is a section of volatile memory created temporarily on the storage drive. It is created when a computer is running many processes at once and RAM is running low.
43 of 52
What is ROM and what does it do?
ROM doesn't forget data when it is switched off. ROM chips have pre-installed data on them during manufacture.
44 of 52
What is flash memory and what does it do?
Small portable devices, such as MP3 players,phones and cameras need small portable memory. They use special chips called flash memory to store information permanently.
45 of 52
What two formats are external hard drives available in?
A preassembled integrated unit and a unit assembled by combining an external enclosure with a USB
46 of 52
What are flash drives?
Flash drives are data storage devices that comprise of flash memory
47 of 52
What are optical drives?
Optical drives retrieve and store data on optical discs.
48 of 52
What is solid state and what are the advantages and disadvantages of it?
Solid-state storage can be found in three form factors: solid-state drives (SSD), solid-state cards (SSC) and solid-state modules (SSM). An important advantage of solid-state storage is that it contains no mechanical parts, allowing data transfer to
49 of 52
How does magnetic media work?
Magnetic storage or magnetic recording is the storage of data on a magnetised medium. Magnetic storage uses different patterns of magnetisation in a magnetisable material to store data and is a form of non-volatile memory.
50 of 52
What is an algorithm?
An algorithm is a procedure or formula for solving a problem. they always finish and return with an answer.
51 of 52
What are the two types of algorithms?
Serial algorithms and parallel algorithms
52 of 52

Other cards in this set

Card 2

Front

What is a procedure

Back

A procedure is a block of code that performs a task without returning a value

Card 3

Front

What is a function?

Back

Preview of the front of card 3

Card 4

Front

What are the two types of functions?

Back

Preview of the front of card 4

Card 5

Front

What are the advantages of built in functions?

Back

Preview of the front of card 5
View more cards

Comments

maxmcpheee

Report

Some spelling but overall a good set nice job.

Similar Computing resources:

See all Computing resources »See all everything resources »