Lecture 1 Flashcards

1
Q

What is a computer?

A

An electronic device that performs computations and logical decisions under the control of computer programs.

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

What are the two main components of a computer?

A

Hardware and Software.

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

What is hardware?

A

The physical parts of a computer including internal and external components.

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

What is software?

A

A set of programs that runs the computer and allows interaction with the hardware.

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

What does the CPU consist of?

A

Control Unit and Arithmetic Logic Unit (ALU).

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

What is the role of the Control Unit?

A

Directs the operation of the processor.

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

What does the Arithmetic and Logic Unit (ALU) do?

A

Performs arithmetic calculations and logic decisions.

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

What is RAM?

A

Random Access Memory that is volatile and allows data to be read and written.

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

What is ROM?

A

Read-Only Memory that is non-volatile and stores permanent instructions.

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

What is secondary storage?

A

Long-term storage devices like hard disks and flash disks, which do not directly interact with the CPU.

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

What is the role of the Input/Output Unit?

A

It allows data input and output through devices such as a keyboard monitor and printer

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

What is application software?

A

Software that helps accomplish specific tasks like Word or Excel.

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

What is operating software?

A

Software that manages hardware resources and provides an environment for application software.

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

What is machine language?

A

A binary language that is directly understood by computers but hard to write and machine-specific.

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

What is assembly language?

A

A language using mnemonics that is easier to understand but still requires translation to machine code.

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

What are high-level languages?

A

Languages like C and Java that are easy to understand, portable, and need a compiler ot translate to machine code.

17
Q

When was the C language developed?

A

C evolved from B and was implemented in 1972 at Bell Laboratories.

18
Q

What was C originally developed for?

A

C was developed to write the UNIX operating system kernel.

19
Q

Why is C still important today?

A

C is widely used in system programming, embedded systems, and real-time systems due to its performance and portability.

20
Q

What are the six phases of C program execution?

A

Editing, Preprocessing, Compiling, Linking, Loading, Execution

21
Q

What happens during the editing phase of a C program?

A

A C program is written and saved with a .c extension as the source code.

22
Q

What is preprocessing in C program execution?

A

The phase that handles # directives and generates the expanded source code file with a .i extension.

23
Q

What is the compiling phase of a C program?

A

The compiler translates the C program into machine-language code, generating an object file (.obj).

24
Q

What does the linker do in C program execution?

A

Links the object file with system libraries to create an executable file (.exe).

25
Q

What is the role of the loader in C program execution?

A

The loader transfers the executable file from the hard disk to main memory for execution.

26
Q

What happens in the execution phase of a C program?

A

The CPU executes the program’s instructions one at a time.

27
Q

Why is learning C useful for students?

A

It improves their resume, offers fast execution of programs, and allows low-level memory access via pointers.