











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












What is a character? - SOLUTION -A letter,number or symbol on a given character set What is a string? - SOLUTION -A sequence of characters What is casting? - SOLUTION -Changing the data type of a variable What is a count-controlled loop? - SOLUTION -A loop that repeats a specific number of times (FOR loops) What is a condition controlled loop? - SOLUTION -A loop that runs until a condition is met (WHILE loops) When would you use a variable? - SOLUTION -When a value might need to change while the program is running When would you use a constant? - SOLUTION -When a value would not need to change while while the program is running Why are constants useful? - SOLUTION -Readability and easier to update What is a subprogram? - SOLUTION -A block of code that performs a specific task What are libraries? - SOLUTION -Collections of pre-written subprograms for specific purposes
What is a local variable? - SOLUTION -A variable that is declared inside a function or procedure so can be accessed within the subprogram What is a global variable? - SOLUTION -A variable that can be accessed from anywhere Do functions return a value? - SOLUTION -Yes Do procedures return a value? - SOLUTION -No What is an array? - SOLUTION -A data structure with one or more elements of the same type (have a fixed length only contain elements of the same data type) What is an index? - SOLUTION -A position within an array What is a 1D array? - SOLUTION -An array that stores data in one direction (horizontal) What is a 2D array? - SOLUTION -An array that stores data horizontally and vertically (indexed with two numbers) Why is it good to close files after use? - SOLUTION -It frees up resources,prevents corruption and flushes the buffer What's does MOD do? - SOLUTION -Gives remainder What does DIV do? - SOLUTION -Shows how many times x goes into y (23 DIV 5 = 4) What does the Boolean operator NOT do? - SOLUTION -The opposite of the input
What is the equation for File size? - SOLUTION -File size = Width * Height * Colour depth File size measured in bits Width measured in pixels Height measured in pixels Colour depth measured in bits What is included in metadata? - SOLUTION -File name File format Colour depth Resolution What does increasing bitrate cause? - SOLUTION -More detailed audio but more storage required What is sampling? - SOLUTION -Recording a signal at regular intervals What is sampling frequency? - SOLUTION -The number of samples obtained per second(Hz) What does increasing sampling frequency have? - SOLUTION -A truer digital signal to the original but a greater file size What is bit depth? - SOLUTION -How many bits are available for each sample What is bitrate? - SOLUTION -Number of bits used per second What is the equation for bitrate? - SOLUTION -Bitrate = sampling frequency(Hz)*sample size(b)
What is the equation for File size? - SOLUTION -File size = bitrate(bps) * time(s) What is lossy compression? - SOLUTION -Some of the original data is removed and once it is decompressed it is not the same as the original What is lossless compression? - SOLUTION -No data is removed and the original data can be recovered when the file is decompressed What is cache? - SOLUTION -Very fast memory in the CPU that stores copies of frequently used data What is the purpose of the CPU? - SOLUTION -To process data and instructions To control the rest of the computer system What is the role of the ALU? - SOLUTION -To perform arithmetic and logical operations What is the role of the CU? - SOLUTION -Fetches, decodes and manages the execution of instructions What are registers? - SOLUTION -Memory inside CPU used to store data needed during processing What is stored in registers? - SOLUTION -Current instruction Result of calculations What is clock speed? - SOLUTION -The number of instructions a single processor core can carry out per second (Hz)
What are the disadvantages of magnetic storage? - SOLUTION - Generate heat, noisy What are the advantages of solid state storage? - SOLUTION -Very fast,don't require defragmentation,reliable What are the disadvantages of solid state storage? - SOLUTION - Small capacity, expensive What is an embedded system? - SOLUTION -A special purpose computer surrounded by a larger system Name 3 examples of embedded systems? - SOLUTION -GPS MP3 Players Cameras What is the purpose of the operating system? - SOLUTION - Manages the hardware Manages the applications installed Creates a user interface Provides a layer of security What are device drivers? - SOLUTION -Small programs stored on the hard drive that tell the computer how to communicate with peripheral devices What is utility software? - SOLUTION -Software which focuses on the maintenance of a part of the system What happens in a full backup? - SOLUTION -All data is backed up whenever selected Slow to create but fast to restore
What happens in an incremental backup? - SOLUTION -Only data created after the previous back up is copied Fast to create but slow to restore What does defragging a disk do? - SOLUTION -Reorganises data do it can be accessed faster What is antivirus software? - SOLUTION -Finds and removes malicious software
What are records? - SOLUTION -Groups of fields(rows) What is a primary key? - SOLUTION -a field that uniquely identifies each record What is a foreign key? - SOLUTION -primary key in another table What does the ROM store? - SOLUTION -Start-up What does the RAM store? - SOLUTION -Currently executing programs and data What two items are stored in the stored program concept? - SOLUTION -Data, instructions How does the operating system use scheduling to allocate processor time? - SOLUTION -All processes are held in a queue and processes are prioritised What is penetration testing? - SOLUTION -A simulated attack on a system to test vulnerabilities of the system What checks are carried out during a code review? - SOLUTION - Inefficient code,logic errors, security vulnerabilities What is the best case scenario for a binary search algorithm? - SOLUTION -Target is in the middle of the list What is the worst case scenario for a binary search algorithm? - SOLUTION -Target item is not in the list
What is a PAN? - SOLUTION -Personal Area Network is a network within the range of an individual person E.g Bluetooth What is a LAN? - SOLUTION -Local Area Network is network that connects devices close to each other What is a WAN? - SOLUTION -Wide Area Network is a network over a large geographical area What happens in a client/sever network? - SOLUTION -Every device is a client or server, clients request resources and a sever holds resources to send to the client What are the advantages of a client-server network? - SOLUTION - Server can backup and store data centrally What are the disadvantages of a client-server network? - SOLUTION -Sever is expensive and difficult to run What is a peer-to-peer network? - SOLUTION -A network in which each computer has both server and client capabilities. What factors affect network performance? - SOLUTION -Latency, Bandwidth and Error rate What is the application layer? - SOLUTION -Where network application operate What is the transport layer? - SOLUTION -Sets up communication between two hosts
Provides error checking and correction What does the IP protocol do when data is sent? - SOLUTION - Addresses packets with the IP address of the source and the destination What does the IP protocol do when data is received? - SOLUTION - The IP removed the IP addresses from the packets What is HTTP used for? - SOLUTION -To access a webpage from a web server What does FTP do? - SOLUTION -Used to upload and download files from one computer to another What protocols are used for inbound email? - SOLUTION -POP, IMAP Only deleted from the server manually What protocol is used for outbound email? - SOLUTION -SMTP When mail is downloaded from the server it is deleted from it Why are the advantages of the Bus topology? - SOLUTION -Easy to connect peripherals Requires minimal cables If one node breaks the rest of the network is unaffected Cheap to install
Why are the disadvantages of the Bus topology? - SOLUTION - Every node on the network receives all data sent Can her many data collisions What are the advantages of the Ring topology? - SOLUTION -Easy to install extra network devices Adding extra modes has no performance impact Why are the disadvantages of the Ring topology? - SOLUTION -If the main cable is damaged the whole network fails Every node on the network receives all data sent All nodes must be switched on What are the advantages of the Star topology? - SOLUTION - Failure of a node does not affect the other nodes High performance What are the disadvantages of a Star topology? - SOLUTION - Whole network fails if the switch fails Requires many cables so can be expensive What are the advantages of a Mesh topology? - SOLUTION -New nodes can be added without interfering other nodes Messages should always get through due to many possible routes
What is black box testing? - SOLUTION -Used to simulate an outside attack What are good programming practices to prevent vulnerabilities? - SOLUTION -Regular code reviews Modular testing(testing sections of code individually to ensure the work correctly) Error handling How can operating systems be made secure to prevent vulnerabilities? - SOLUTION -Limiting user accounts Directory permission Installing patches What is the difference between the internet and the WWW? - SOLUTION -The WWW is a collection of information accessed through the internet What does the header of a packet contain? - SOLUTION -Packet number which protocol used What is packet switching? - SOLUTION -Method of data transmission where a message is broken up into parts and sent independently What is a patent? - SOLUTION -Licence from the government that allows an inventor sole right to make use or sell an invention What is open source software? - SOLUTION -Software where the source code is made freely available.
What is proprietary software? - SOLUTION -Software that is copyrighted and is only available under licence What are the advantages of open source software? - SOLUTION - Provides source code so it can be modified Modified versions are also freely available Can have many authors so allows many programmers to contribute and improve the software What are the disadvantages of open source software? - SOLUTION -No guarantee it works properly Companies have to keep source code open even to competitions Support might not be readily available What are examples of open source software? - SOLUTION -Firefox Linux Python What are the advantages of proprietary software? - SOLUTION - Regular fixes and patches Help is readily available Product should be free of bugs What are the disadvantages of proprietary software? - SOLUTION - Can be expensive Software cannot be adapted to meet the needs of the user
What are examples of unethical behaviour online? - SOLUTION - Cyberbullying Plagiarising Exchanging compromising photos Process of communication in client-sever network model - SOLUTION -Client uses address of server to connect to it. Client requests data from the server.Using the clients address the server sends the data What is the program counter? - SOLUTION -Holds memory address of next instruction to be executed What is the accumulator? - SOLUTION -A special register in the CPU used to store the results of any calculation done by ALU