Computing Science and Programming Flashcards
What are five steps to problem solving?
- Identify the problem
- Possible solutions l
- Analyze and select a solution
- Execute the solution
- Determine if the solution has fix the problem
What is three aspects of computation?
- Design and analysis of algorithm
- Formalization of algorithm as programs
- Development of computational device for executing programs
What is the most important skill for a computer scientist?
Problem solving
Define problem solving
The ability to formulate a problem, think of creative solutions and express solutions as clearly and as accurately as possible.
Define algorithm
An algorithm is a finite sequenced set of unambiguous steps that once executed, produces a result
Define program language
Is a language that allows us to specify detailed instructions that a computer can understand and execute
What does computing mean?
Field of studying computer
Define decomposition in computer science
To decompose is to break down into “finer” details. Ex. Decomposing a vague solution into a more detailed and descriptive solution
Define programming/software development
The science and art of creating computer programs for the purpose of solving problems
Order the following instructions in chronological order
• Input Data
• structure data and represent it in a solution
• Output - identify data produced by solution
- Input Data
- Output - identify data produced by solution
- Structure data and represent it in a solution
What are the five ways to express an algorithm?
- Using a natural language like English
- Pseudocode
- Flow chart
- Video
- Diagram (pictures)
What is input?
Receive data from keyboard, mouse, file, network or etc
What is output? Or examples of it
Display data on screen, save it in the file, etc
What is an example of a high level language?
Python
What are alternative names for low level languages?
Machine language or assembly language
Computers can only execute programs written in which languages? High- level or low-level languages?
Computers can only run programs written in low-level languages (machine language)
Define machine language
Encoding of instructions in binary so that they can be directly executed by the computer
What is the one disadvantage of high-level language?
It takes time to process before executing
What are four advantages of using high-level languages?
- less time to write it
- shorter and easier to read it
- portable, which means it can be used on different computers with few to no modifications
- more likely to be correct
What are the two programs or softwares that changes high-level languages into low-level languages?
Interpreters and compilers
What is the difference between compiler and interpreter?
Interpreter process bits and bits of high-level language while executing it.
Compilers process the whole high-level language before executing it.
Define source code
Source code is the program (high-level language) before it is processed/translated and contains instructions
Define object code
A program that has been processed or translated
Define executable
Object code
Define byte code
Object code
What is a virtual machine?
A program that interprets low-level languages