Hardware and Software Flashcards

1
Q

Name all 3 types of translator software

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the primary function of a compiler?

A

To translate high-level programming code into machine code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or False: An interpreter executes code line by line at runtime.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fill in the blank: A __________ is typically faster in execution than an interpreter because it converts the entire program before execution.

A

compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following is an example of a programming language that uses an interpreter? (a) C++ (b) Python (c) Java

A

b) Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is one major disadvantage of using a compiler compared to an interpreter?

A

Compilers require more time for the initial compilation process before execution.

doesnt tell you exact location of syntax error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the operating system do

A

Hides all the complexities of hardware from the user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a real time operating system

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are library programs

A

Imports in code such as import(random) and import(math)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an interrupt

A

Signal to the CPU requesting attention

How well did you know this?
1
Not at all
2
3
4
5
Perfectly