Character Set
Letters: A-Z, a-z
Digits: 0-9
Special Symbols: space +-*/()~!@#$%^&{},;:"'<.>/`
Whitespaces: Blank space, Enter, Tab
Other Characters: ASCII and Unicode characters
Tokens
Keywords: Reserved words with special meaning (e.g., if, else, while).
Identifiers: Names ...
Introduction to File Handling
File Handling: Allows reading from and writing to disk files in Python. It enables data storage beyond program execution.
Data Files
Text Files:
Store data as ASCII or Unicode characters.
Example: "computer" takes 8 bytes, 11237.9876 takes 10 bytes.
End-of-Line ...
1. Concept of Database
Data: Raw facts without organization.
Database: Organized collection of inter-related data ensuring safety, security, and integrity. Stores data in tables (relations).
2. Database Management System (DBMS)
DBMS: Software for storing, maintaining, and using databases.
Database ...
1. System Software
System software helps manage and control computer hardware so that application software can perform. It includes:
Operating Systems (OS):
Manages hardware and software resources.
Provides a user interface (e.g., Windows, macOS, Linux).
System Utilities:
Programs that ...
Computers interpret keyboard inputs by mapping each key to a unique code, which is then converted into binary form.
Computers understand only binary language (0s and 1s).
Example
When you press the key 'A' on the keyboard:
It is mapped to the decimal value 65.
This decimal value is then ...
Multiple Choice Questions (MCQs)
Which command is used to install the Pandas library? a) pip install numpy b) pip install pandas c) pip install matplotlib d) pip install python
What is a data structure? a) A collection of files b) A collection of data values and the operations that can be applied to that data ...
Multiple Choice Questions (MCQs)
What type of errors are detected when the rules of a programming language are not followed?
a) Runtime errors
b) Syntax errors
c) Logical errors
d) Semantic errors
What does Python display when a syntax error is encountered?
a) Error code and line number
...
Definition: A computer is an advanced electronic device that processes raw data into useful information using a set of instructions called a program.
Components:
Hardware: Physical parts like processor, memory, monitor, keyboard.
Software: Programs or instructions that operate the hardware.
...