Hardware and Software Flashcards
Name all 3 types of translator software
Assembler-converts assembly code into machine code
Interpreter- coverts 3rd generation languages into machine code one line at a time
Compiler- converts 3rd generation languages into machine code all at the same time
What is the primary function of a compiler?
To translate high-level programming code into machine code.
True or False: An interpreter executes code line by line at runtime.
True
Fill in the blank: A __________ is typically faster in execution than an interpreter because it converts the entire program before execution.
compiler
Which of the following is an example of a programming language that uses an interpreter? (a) C++ (b) Python (c) Java
b) Python
What is one major disadvantage of using a compiler compared to an interpreter?
Compilers require more time for the initial compilation process before execution.
doesnt tell you exact location of syntax error
What does the operating system do
Hides all the complexities of hardware from the user
What is a real time operating system
Operating system designed to manage hardware and resources in a strict time constraint
usually used for online games that cant have any lag eg FIFA and COD
What are library programs
Imports in code such as import(random) and import(math)
What is an interrupt
Signal to the CPU requesting attention