Computer Science (Mr seisay paper)
No description yet. This curated deck is ready for daily study.
Card preview (24)
What is Abstraction?
The process of removing unnecessary details from a problem to focus on the more important features to solve a problem.
What are advantages of abstraction? (3)
• Decreases time • Reduces CPU usage • Reduces code complexity
What is a variable?
A location in memory that stores data
What is sequencing?
Code written in order
What is selection?
Making a decision. If or Else statements
What is Iteration?
Repeating the code for a set number of times. For and While loops
How are parameters passed by value? A copy is made of the variable passed…
A copy is made of the variable and passed into the subprogram. Changes only happen to the copy
How are parameters passed by refrence?
What are advantages of passing by value? Ensures the orginal data isnt… Helps avoid…
• Ensures the orginal data isnt modified within the function • Helps avoid erros
What is a drawback of passing by value? (1) Decreases…
• Decreases Memory
What are advantages of passing by reference? - More ef… - Saves T and M
-More effiecent - Saves time and memory
What are drawbacks of passing by reference? (2) - Data isnt.. - Risk of…
• Data isnt protected • Risk of errors
What is a scope?
• Sections of code where variables can be used and manipulated
What is a Local Scope?
• Variables created inside a function that can only be used within that specific block
What is a Global Scope? Variables
• Variables that are declared outside all functions and are accessible from anywhere in the program
What are disadvantages for a Global Scope? (2, Change and Updating)
• Global Variables may change • Updating it may have consequences in other parts of a program that rely on the orginal value.
What is Decompostion (Breaking a probelm into sub-problems so…)
• Breaking a problem into a number of sub-problems, so that each sub-problem accompolishes an identifiable task
What is Structured Programming?
• Aims to improve the clarity and quality of a program
What is a Hierachy Chart?
• A logical process being broken down into smaller componets until it cannot be broken down any further
What are benefits of modularisation? (3)
• Programs are more easily and quickly written • Each subroutine can be indivdually tested. • Several programmers can simultaneously work on different modueles shortening development time.
What is a queue?
• A queue is a data structure that stores items in the order they were added,
What is a stack?
• A stack is a data structure that stores items in a way that the Last In, First Out
What is a difference between a queue and a stack?
• A queue follows the First In, First Out (FIFO) principle, while a stack follows the Last In, First Out (LIFO) principle.
What is Data-Mining?
The process of automatically finding patterns, trends, and relationships in large sets of data, often using machine-learning techniques.