Made with ScholarlyMake flashcards like these from your own notes
Question:What is a computer?
Answer:An electronic device that performs processes, calculations, and operations based on instructions from software or hardware programs.
Question:What is the difference between data and information in computing?
Answer:Data is raw facts and figures; information is processed data used for decisions and actions.
Question:What are arithmetic operations in data processing?
Answer:Calculations like addition, subtraction, differentials, and square root.
Question:What are logical operations in data processing?
Answer:Comparison operations like greater than, less than, equal to, and opposite.
Question:What is the input unit of a computer?
Answer:Devices like keyboard and mouse used to input data and instructions.
Question:What is the output unit of a computer?
Answer:Devices like printer and visual display unit that provide information to the user.
Question:What does the control unit do in a computer?
Answer:Controls all functions of the computer and manages interactions between parts.
Question:What is the arithmetic logic unit (ALU)?
Answer:The brain of the computer where arithmetic and logical operations occur.
Question:What are the two types of memory in a computer?
Answer:Primary memory (inside CPU) and secondary memory (external).
Question:What is the central processing unit (CPU)?
Answer:Control unit, arithmetic logic unit, and memory together.
Question:What are hardware components of a computer?
Answer:Physical devices like keyboard, mouse, and printer that can be seen and touched.
Question:What is software in computing?
Answer:Set of instructions or programs that make hardware function.
Question:What is the speed characteristic of computers?
Answer:Can carry out 3-4 million instructions per second.
Question:What causes errors in computers?
Answer:Inaccurate data, wrong instructions, or bugs in chips (human errors).
Question:What is the reliability characteristic of computers?
Answer:Can repeat the same work without errors from tiredness or boredom.
Question:What is versatility in computers?
Answer:Can perform a wide range of tasks from data entry to complex calculations.
Question:What is storage capacity advantage of computers?
Answer:Can store large amounts of data cheaply and safely from wear and tear.
Question:What advantage do computers have in repetitive tasks?
Answer:Perform the same task repeatedly with consistent accuracy without tiring.
Question:What is a disadvantage of computers regarding intelligence?
Answer:No intelligence; follow instructions blindly without considering outcomes.
Question:What is required for computers to function?
Answer:Regular electric supply.
Question:What is booting in computers?
Answer:Starting a computer or device by switching on power and loading the OS.
Question:What is BIOS?
Answer:Basic Input Output System, the first program that runs on startup; firmware in hardware.
Question:What is the difference between cold booting and warm booting?
Answer:Cold: starting from power off; warm: restarting a running system (faster, no BIOS reload).
Question:What is hardware in a computer system?
Answer:Physical parts or components that can be seen and touched.
Question:Give examples of input devices as hardware.
Answer:Keyboard, mouse.
Question:Give examples of output devices as hardware.
Answer:Printer, monitor.
Question:Give examples of secondary storage devices.
Answer:Hard disk, CD, DVD.
Question:Give examples of internal hardware components.
Answer:CPU, motherboard, RAM.
Question:What is software?
Answer:Set of instructions that achieve a single outcome or task when programs work together.
Question:What is a program?
Answer:Sequence of instructions written to solve a particular problem.
Question:What is system software?
Answer:Programs to operate, control, and extend the computer's processing capabilities; interface between hardware and users.
Question:Give examples of system software.
Answer:Operating System, Compilers, Interpreter, Assemblers.
Question:What features make system software close to the hardware?
Answer:Written in low-level language, fast, difficult to design, less interactive.
Question:What is an operating system?
Answer:Main program that manages resources like memory, CPU; loads first on startup; provides user interface.
Question:What is a language processor in system software?
Answer:Converts high-level source code to machine code.
Question:What is a device driver?
Answer:Software that controls a device like printer or mouse to connect with the system.
Question:What is application software?
Answer:Designed for specific user needs; single program or package for tasks like word processing.
Question:What are features of application software?
Answer:Specialized tasks, large size, interactive, easy to design, high-level language.
Question:What is general purpose application software?
Answer:Used for variety of tasks; not limited to one function, e.g., MS Word, Excel.
Question:What is customized application software?
Answer:Designed for specific tasks or organizations, e.g., reservation systems.
Question:What is utility application software?
Answer:Supports infrastructure; analyzes, optimizes, maintains system, e.g., antivirus.
Question:Give examples of application software.
Answer:Payroll, Student Record, Inventory Management, MS Office.
Question:What is an interface in computing?
Answer:Shared boundary for exchanging information between components like software, hardware, users.
Question:What is a hardware interface?
Answer:Mechanical, electrical, logical signals and protocols for components like buses, storage.
Question:What are types of hardware interfaces?
Answer:Parallel (multiple connections) or serial (one bit at a time).
Question:What is a software interface?
Answer:Allows interaction at different levels, e.g., OS with hardware, apps via data streams, objects via methods.
Question:What is an operating system (OS)?
Answer:Resource manager for hardware (CPU, RAM, etc.), controls apps, security, user access.
Question:What are primary objectives of an OS?
Answer:Provide services for running apps (load to memory, allocate CPU); user interface for interaction.
Question:What is a command-based user interface?
Answer:User enters commands via keyboard; less interactive, single program at a time; e.g., MS-DOS, Unix.
Question:What is a graphical user interface (GUI)?
Answer:Uses icons, menus, windows; input via mouse/keyboard; e.g., Windows, Ubuntu.
Question:What is a touch-based user interface?
Answer:Interacts via touchscreen for commands like opening apps; e.g., Android, iOS.
Question:What is a voice-based user interface?
Answer:Uses voice commands; e.g., Siri, Cortana.
Question:What is a gesture-based user interface?
Answer:Uses motions like waving, tilting; in smartphones, laptops.
Question:What is process management in OS?
Answer:Manages multiple processes, allocates CPU, exchanges info; minimizes time for tasks.
Question:What is memory management in OS?
Answer:Allocates and frees main memory dynamically for processes without affecting others.
Question:What is file management in OS?
Answer:Handles creation, update, deletion, protection of files in secondary storage.
Question:What is device management in OS?
Answer:Manages I/O devices, interacts with drivers, configures for users.
Question:What is a programming language?
Answer:Set of rules to convert strings into machine code or graphical elements for computers.
Question:Who is considered the first computer programmer?
Answer:Ada Lovelace, who wrote the first algorithm for Babbage's analytical engine in 1843.
Question:What is Assembly language?
Answer:Low-level language using symbols instead of binary; first widely used in 1949.
Question:What is Autocode?
Answer:First compiled language in 1952; family of simplified coding systems.
Question:What is Fortran?
Answer:High-level language for numeric and scientific computing, developed 1957; 500% faster than Assembly.
Question:What is Cobol?
Answer:Business-oriented language from 1959; ran 80% of world business by 1997.
Question:What is BASIC?
Answer:Beginner's All-Purpose Symbolic Instruction Code from 1964; accessible for home computers.
Question:What is C programming language?
Answer:High-level language from 1972; basis for many others like Java, Python.
Question:Why is Python popular today?
Answer:High-level, readable; used by 50% developers; endorsed by Google, etc.
Question:What is JavaScript used for?
Answer:Multi-paradigm, dynamic; chosen by 65% programmers; for web by Microsoft, Netflix.
Question:What makes Java demanded?
Answer:Classic, fast development, cost-efficient; used by Spotify, Amazon.
Question:What is PHP?
Answer:Open-source for scripting and web; used by 22% professionals.
Question:What is TypeScript?
Answer:Simplifies JavaScript; easier to read/debug; top 10 language since years.
Question:What is a processor or CPU?
Answer:Logic circuitry that responds to and processes instructions; performs calculations.
Question:What measures CPU capability?
Answer:Max bits/instructions, clock speed, processing ability at a time.
Question:What are the three steps of the CPU instruction cycle?
Answer:Fetch (from RAM), decode (to signals), execute (perform operation).
Question:What is the control unit (CU) in a processor?
Answer:Directs operations; instructs memory, ALU, I/O on program responses.
Question:What functions does the control unit perform?
Answer:Coordinates data flow, understands/decodes instructions, regulates processor data, handles execution units.
Question:What is the ALU in a processor?
Answer:Performs arithmetic and logic operations; integrated circuit in CPU.
Question:What are registers in a processor?
Answer:High-speed memory that stores data, instructions, and ALU results.
Question:What is cache memory?
Answer:Small, fast memory near CPU core; stores frequently used data copies.
Question:What is a single-core processor?
Answer:One core; performs fetch-decode-execute once per clock cycle; slower.
Question:What is a multi-core processor?
Answer:Multiple cores on one chip; runs instructions simultaneously; faster for multithreading.
Question:What is hyper-threading?
Answer:Intel tech making one processor act as two; efficient resource use for multiple threads.
Question:What is SISD in Flynn's classification?
Answer:Single instruction on single data; uni-core, e.g., traditional PCs.
Question:What is SIMD?
Answer:Single instruction on multiple data; parallel computations, e.g., vector processing.
Question:What is MISD?
Answer:Multiple instructions on single data; for fault tolerance, e.g., Space Shuttle.
Question:What is MIMD?
Answer:Multiple instructions on multiple data; parallel, independent processors; shared/distributed memory.
Question:What is computer memory?
Answer:Electronic storage for instructions and data needed quickly; essential for function.
Question:What are characteristics of primary memory?
Answer:Faster than secondary, semiconductor-based, volatile, main memory.
Question:How does computer memory work?
Answer:Programs load from secondary to primary (RAM) for fast CPU access; volatile, saves to secondary.
Question:What are the three general types of computer memory?
Answer:Primary, secondary, cache.
Question:What is primary memory?
Answer:Main memory using semiconductors; stores data/programs during operations; RAM/ROM.
Question:What is RAM?
Answer:Volatile memory; stores info with power; used for booting and temporary execution data.
Question:What is Static RAM (SRAM)?
Answer:Uses transistors/flip-flops; retains state with power; faster, less access time.
Question:What is Dynamic RAM (DRAM)?
Answer:Uses capacitors/transistors; needs refreshing; slower than SRAM.
Question:What is ROM?
Answer:Non-volatile; stores permanent info for system operation; read-only.
Question:What is Masked ROM (MROM)?
Answer:Pre-programmed hardware; low-cost, fixed data.
Question:What is PROM?
Answer:User-modifiable once; blank, programmed with PROM burner.
Question:What is EPROM?
Answer:Erasable with UV light (40 min); extension of PROM.
Question:What is EEPROM?
Answer:Electrically erasable/reprogrammable up to 10,000 times; selective areas.
Question:What is secondary memory?
Answer:Auxiliary, non-volatile; large permanent storage; slower, CPU indirect access.
Question:What are characteristics of secondary memory?
Answer:Slow but reusable, reliable, cheap, large capacity; system runs without it.
Question:What are magnetic tapes?
Answer:Plastic film with magnetic coating; sequential access; records bits as patches.
Question:What are magnetic disks?
Answer:Coated plates; store in tracks/sectors; hard disks fixed, removable like floppies.
Question:What are optical disks?
Answer:Laser-based; writable/readable; removable, long life, cheap.
Question:What is cache memory's role?
Answer:High-speed buffer between CPU and main memory; stores frequent data.
Question:What are advantages of cache memory?
Answer:Faster than main memory, quick access, stores temporary data.
Question:What are disadvantages of cache memory?
Answer:Expensive due to semiconductors, small size.
Question:How is computer memory measured? Start with bit.
Answer:Bit: 0 or 1; Byte: 8 bits; KB: 1024 bytes; MB: 1024 KB; GB: 1024 MB; etc.
Question:What is an input device?
Answer:Hardware that allows users to provide data, info, or instructions to computer.
Question:Name common input devices.
Answer:Keyboard, Mouse, Joystick, Light pen, Track Ball, Scanner, Microphone, MICR.
Question:What is a keyboard?
Answer:Popular input device like typewriter; 84-108 keys for data entry.
Question:What is a mouse?
Answer:Pointing device with ball/sensor; controls cursor; left/right buttons, wheel.
Question:Advantages of a mouse?
Answer:Easy to use, inexpensive, faster cursor movement than keys.
Question:What is a joystick?
Answer:Pointing stick with ball ends; moves cursor in four directions; for CAD/games.
Question:What is a light pen?
Answer:Pen-like pointing device; selects menu/draws on screen via photocell.
Question:What is a track ball?
Answer:Stationary ball moved by fingers; for laptops; less space than mouse.
Question:What is a scanner?
Answer:Like photocopier; captures paper images to digital for editing/storage.
Question:What is a microphone as input?
Answer:Captures sound to digital; for multimedia, music mixing.
Question:What is an output device?
Answer:Hardware sending data from computer to user or another device.
Question:What is a monitor?
Answer:Visual output; displays info as soft copy; symbolic/graphical.
Question:What is a printer?
Answer:Transfers text/graphics to paper; varies by size, speed, cost.
Question:What are speakers?
Answer:Audio output; reproduce sound from sound card signals.
Question:What is a projector?
Answer:Projects output to large screen/wall; magnifies text/images.
Question:What is a sound card?
Answer:Output device for sound production/recording; internal/external.
Question:What is a video card?
Answer:Processes graphics/video; transfers to display; has VRAM for gaming.
Question:What is an algorithm?
Answer:A step-by-step procedure for solving a problem using unambiguous instructions executed in sequence to produce output from input in finite time.
Question:From whom is the word 'algorithm' derived?
Answer:The 9th century Persian mathematician Al-Khwarizmi.
Question:What is the finiteness property of an algorithm?
Answer:It must terminate after a finite number of steps.
Question:What does definiteness mean for an algorithm?
Answer:Each step must be precisely and unambiguously defined.
Question:Why must algorithm steps be effective?
Answer:Each step should be basic, executable exactly in finite time, and convertible to code.
Question:What input/output requirement does an algorithm have?
Answer:It takes zero or more inputs and produces one or more outputs.
Question:What are the basic building blocks of an algorithm?
Answer:Statements, control flow, and functions.
Question:What types of statements are used in algorithms?
Answer:Input data, process data, and output data statements.
Question:What is control flow in algorithms?
Answer:The sequence in which statements are executed.
Question:What are the three types of control flow?
Answer:Sequence, selection, and iteration.
Question:What is sequence execution in control flow?
Answer:Executing instructions one after another in order.
Question:How does selection work in algorithms?
Answer:Transfers control based on a condition, executing one path if true, another if false.
Question:What is iteration in control flow?
Answer:Repeating a set of statements based on a condition, also called looping.
Question:What is a function in algorithms?
Answer:A subprogram with a block of instructions performing a specific task.
Question:What are benefits of using functions in algorithms?
Answer:Reduces code lines, enables reuse, improves readability, hides information, eases debugging, and enhances maintainability.
Question:What are the five major steps in algorithm development?
Answer:Obtain problem description, analyze problem, develop high-level algorithm, refine with details, review algorithm.
Question:What is pseudocode?
Answer:A readable, English-based set of instructions explaining an algorithm without strict syntax.
Question:What are rules for writing pseudocode?
Answer:One statement per line, capitalize keywords, indent for hierarchy, keep language-independent.
Question:What common keywords are used in pseudocode?
Answer:BEGIN/END, INPUT/GET/READ, COMPUTE/CALCULATE, OUTPUT/PRINT/DISPLAY, IF/ELSE/ENDIF, WHILE/ENDWHILE/FOR/ENDFOR.
Question:What are advantages of pseudocode?
Answer:Program-independent, understandable by non-experts, no syntax standards, easy to modify and translate to code.
Question:What are disadvantages of pseudocode?
Answer:Not visual, no design picture, no standardized format, harder for beginners than flowcharts.
Question:What is a flowchart?
Answer:A graphical or diagrammatic representation of the problem-solving process in sequential order.
Question:What rules apply to flowcharts?
Answer:Clear and neat, logical start/finish, one outflow from process, one inflow to decision, brief descriptions, avoid line intersections.
Question:What are advantages of flowcharts?
Answer:Communicate logic well, analyze problems effectively, good documentation, blueprint for coding, aid debugging.
Question:What are disadvantages of flowcharts?
Answer:Complex for large programs, hard to modify without redrawing, time-consuming and costly for big applications.
Question:What is the difference between algorithm, flowchart, and pseudocode in representation?
Answer:Algorithm: step-by-step procedure; Flowchart: graphical; Pseudocode: language-like.
Question:What is iteration in algorithm strategies?
Answer:Executing a sequence of statements repeatedly until a condition is met.
Question:What is a for loop in iteration?
Answer:Repeats statements a fixed number of times, often for known iterations like counting.
Question:What is a while loop?
Answer:Repeats statements as long as a condition remains true, checked before each iteration.
Question:What is recursion?
Answer:A function that calls itself repeatedly until a base condition is met.
Question:What is the base case in recursion?
Answer:The condition that stops the recursive calls, preventing infinite loops.
Question:How does recursion differ from iteration in termination?
Answer:Iteration ends when loop condition fails; recursion ends at base case with no further calls.
Question:What is time complexity?
Answer:The total time required by an algorithm to run, often as a function T(n) of input size n.
Question:What factors influence algorithm analysis?
Answer:Efficiency, simplicity, generality, range of growth, computing order of growth.
Question:What is space complexity?
Answer:The amount of memory space required by an algorithm to run.
Question:What components make up space complexity?
Answer:Fixed space (constants, instructions) + variable space (input-dependent data).
Question:What is instruction space in space complexity?
Answer:Memory for compiled instructions, depending on compiler and target machine.
Question:What is data space?
Answer:Memory for constants, variables, arrays, and other data structures.
Question:What is environment stack space?
Answer:Stack memory for function calls, including return addresses.
Question:How is constant space complexity exemplified?
Answer:Fixed memory use, like simple operations on fixed variables (e.g., 20 bytes for int additions).
Question:What is linear space complexity?
Answer:Memory grows proportionally with input size, like arrays of size n (e.g., 4n + 12 bytes).
Question:What role do algorithms play in fields like cryptography?
Answer:They provide efficient, secure methods for encoding and decoding data.
Question:Why is pseudocode useful for complex algorithms?
Answer:It clarifies logic in plain language, uncovering decisions and interactions before coding.
Question:How do flowcharts aid in process planning?
Answer:They break down steps chronologically, identifying types like decisions and data flows.
Question:What makes recursion suitable for certain problems?
Answer:It simplifies code for naturally hierarchical tasks, like tree traversals, despite higher time cost.
Question:Why analyze algorithm efficiency?
Answer:To ensure scalability for larger inputs in real-world applications like machine learning.