Skip to main content

Type of input & output devices

 

Types of Disk I/O: Different ways to read from or write to a disk, including sequential (reading/writing data in order), direct (accessing specific locations), and buffered (using memory for efficiency).


11.2. Standard Input/Output: Default streams for input (keyboard) and output (screen) in a program, allowing interaction with users through text-based input and output operations.


11.3. Binary and Text Mode Files: Binary files store data in its raw binary format, while text mode files encode data as human-readable text, with additional processing for line breaks and encoding.


11.4. Program Record Input/Output: Input and output operations performed on groups of related data records, often used for database operations or processing structured data.


11.5. Random Access Files: Files that allow direct access to any location within them, enabling read/write operations at specific positions rather than sequentially.


11.6. Error Handling in File I/O: Techniques for detecting and managing errors that can occur during file input/output operations, such as handling file not found, permission issues, or disk full errors.


11.7. Redirection: The process of changing the default input or output stream of a program to/from a file, allowing input to come from a file instead of the keyboard or output to be redirected to a file instead of the screen.

Comments

Popular posts from this blog

DAE CIt 244 Electronics 2ndyear Past Paper 2019

 

Chapter No 2 Java DAE CIT

  . Variable and Operators 1.1. Variable: Define: A variable is a named storage location in a program that holds data, and its value can be changed during the execution of the program. Syntax: datatype variableName; Explanation: Variables are used to store and manipulate data in a program. They have a data type that defines the kind of data they can hold, such as int, float, char, etc. Code int age; // Declaration of an integer variable age = 25; // Initialization of the variable with a value 1.2. Create Instance of a Variable: Define: Creating an instance of a variable involves declaring and optionally initializing a variable in a program. Syntax: datatype variableName = value; Explanation: This creates a variable and assigns an initial value to it at the time of declaration. score = 95.5  # Declaration and initialization of a floating-point variable 1.3. Use Preemptive Data Types: Define: Preemptive data types are data types that are predefined and provided by...

Chemistry Past papers of DAE CIT 1st year

1. **What are Derived units? Give examples.**    - Derived units are units of measurement that are derived from the base units of a system. They express quantities in terms of fundamental units. Examples include:      - Newton (N) for force (kg·m/s²)      - Joule (J) for energy (N·m)      - Watt (W) for power (J/s) 2. **Define Radical, Valency, Formula, and Chemical Equation.**    - Radical: A radical is a group of atoms bonded together that behaves as a single unit in chemical reactions.    - Valency: Valency is the number of chemical bonds an atom can form when it combines with other atoms in a compound.    - Formula: A formula is a representation of a chemical compound using symbols and subscripts to show the ratio of atoms in the compound.    - Chemical Equation: A chemical equation is a symbolic representation of a chemical reaction, showing the reactants and products with their respectiv...