Exams Flashcards
What are computer languages?
Computer languages, also known as programming languages, are used to create software programs and applications that run on electronic devices.
Name three popular programming languages.
- C
- Java
- Python
What are high-level languages designed for?
High-level languages are designed to be easy to read and write, often used for developing applications that require complex logic and algorithms.
What is a low-level language?
Low-level languages are closer to machine code and are used for developing system-level software.
What is the purpose of scripting languages?
Scripting languages are used to automate tasks, such as web development or system administration.
Define ‘statement’ in the context of computer languages.
A statement is telling a computer how to do a desired action using words or instructions.
What is ‘syntax’ in programming?
Syntax is the structured arrangement of statements.
What is an algorithm?
An algorithm is a set of instructions written to solve a problem.
What do binary numbers represent?
Binary numbers are a way of expressing data using 1’s and 0’s.
What is coding?
Coding is the process of creating computer instructions.
What does debugging entail?
Debugging is the process of finding and removing errors from a code.
What is an assembler?
An assembler is a computer program that converts mnemonics to 0’s and 1’s.
List two examples of high-level programming languages.
- C
- Java
What is a compiler?
A compiler is a type of translator that converts the entire source code of a program into machine code all at once.
How does an interpreter differ from a compiler?
An interpreter converts the source code into machine code one line at a time and executes it immediately.
What is a phase of a compiler?
A phase of a compiler refers to a specific step in the compilation process, such as lexical analysis or semantic analysis.
What is one feature of high-level programming languages?
Abstraction: They allow programmers to focus on the problem rather than low-level details.
What is a pro of high-level languages?
Increased productivity due to easier readability and debugging.
What is a con of high-level languages?
Limited control over system resources.
Fill in the blank: High-level languages are generally _______ than low-level languages.
slower
What is one limitation of high-level languages?
Higher memory usage due to additional overhead.
True or False: High-level languages provide automatic memory management.
True
What is the role of built-in libraries in high-level languages?
They simplify common tasks, saving time and effort for programmers.
What does ‘portability’ refer to in programming languages?
The ability of code written in a high-level language to run on different platforms without significant modification.