M1S1 Flashcards
Q: What is programming?
A: Programming is a multistep process for creating a program, giving computers instructions about what to do next.
Q: What are the instructions in programming known as?
A: Instructions are known as code.
Q: Why is programming important?
A: It fosters innovation, creates eco-friendly solutions, speeds up input and output processes, and automates data management and analysis.
Q: What is a computer program?
A: A computer program is a list or sequence of instructions that tell a computer what to do.
Q: What must a computer program be written in?
A: A computer program must be written in a programming language (PL).
Q: What defines a programming language?
A: A programming language is a type of written language that tells computers what to do.
Q: What is syntax in programming languages?
A: Syntax is the grammar or rules governing the structure and content of statements in a programming language.
Q: What is source code?
A: Source code is a well-written set of instructions and statements to develop a program.
Q: What are the two types of programming languages based on levels?
A: Low-level languages and high-level languages.
Q: What must source code be translated into for execution?
A: Source code must be translated into machine language (binary form) using a language translator.
Q: What is an assembler?
A: An assembler translates a program written in assembly language to a low-level language.
Q: How does an interpreter function?
A: An interpreter translates each statement one line at a time and executes it immediately after translation.
Q: What is a compiler?
A: A compiler translates all statements at once and provides error messages (diagnostics) at once.
Q: What is a low-level language?
A: Low-level languages use instructions tied directly to one type of computer and are often cryptic and not human-readable.
Q: What is a high-level language?
A: High-level languages use English-like instructions and can be run on various computer types.