Lec-2 Flashcards

1
Q

What is the Central Processing Unit (CPU)?

A

The CPU processes all functions within a computer.

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

What are the types of storage in computer hardware?

A

Main memory (primary storage) and secondary storage (e.g., hard disk drive, solid-state drive).

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

What are examples of input/output devices?

A

Keyboard, mouse, monitor, printer.

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

What is an algorithm?

A

An algorithm is a procedure or formula for solving a problem.

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

What are the essential properties of an algorithm?

A

Exact, terminate, effective, and general.

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

What does algorithm complexity refer to?

A

The amount of time or resources required to solve a problem.

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

What is pseudocode?

A

An informal syntax that represents an algorithm.

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

What is a flowchart?

A

A diagram that uses standard symbols to solve a problem.

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

What are the standard symbols used in flowcharts?

A

Terminal, Data, Process, Decision, Flow-direction, Connector.

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

What is the definition of a programming language?

A

A formal language comprising a set of instructions that produce various kinds of output.

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

How do programming languages differ from natural languages?

A

Programming languages have keywords, instructions, syntax, and correct semantics.

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

What exercises are suggested for understanding algorithms?

A

Define an algorithm and its essential properties, write an algorithm using pseudocode, and represent it graphically using a flowchart.

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