Lec-2 Flashcards
What is the Central Processing Unit (CPU)?
The CPU processes all functions within a computer.
What are the types of storage in computer hardware?
Main memory (primary storage) and secondary storage (e.g., hard disk drive, solid-state drive).
What are examples of input/output devices?
Keyboard, mouse, monitor, printer.
What is an algorithm?
An algorithm is a procedure or formula for solving a problem.
What are the essential properties of an algorithm?
Exact, terminate, effective, and general.
What does algorithm complexity refer to?
The amount of time or resources required to solve a problem.
What is pseudocode?
An informal syntax that represents an algorithm.
What is a flowchart?
A diagram that uses standard symbols to solve a problem.
What are the standard symbols used in flowcharts?
Terminal, Data, Process, Decision, Flow-direction, Connector.
What is the definition of a programming language?
A formal language comprising a set of instructions that produce various kinds of output.
How do programming languages differ from natural languages?
Programming languages have keywords, instructions, syntax, and correct semantics.
What exercises are suggested for understanding algorithms?
Define an algorithm and its essential properties, write an algorithm using pseudocode, and represent it graphically using a flowchart.