Informatics Practices cheat sheet

7 chapters. In each, the formulas come first, then the key facts. The number beside a line is the NCERT page it is printed on.

7 chapters · 6 formulas · 285 key facts

Covers every formula so you can recall it first.
  1. 1Start hereQuerying and SQL FunctionsInformatics Practices · 3 formulas · 41 key factsRead
  2. 2Data Handling Using Pandas – IInformatics Practices · 43 key factsRead
  3. 3Data Handling Using Pandas – IIInformatics Practices · 1 formula · 44 key factsRead
  4. 4Plotting Data Using MatplotlibInformatics Practices · 39 key factsRead
  5. 5Internet and WebInformatics Practices · 2 formulas · 42 key factsRead
  6. 6Societal ImpactsInformatics Practices · 39 key factsRead
  7. 7Project Based LearningInformatics Practices · 37 key factsRead
Informatics Practices · Chapter 1

Querying and SQL Functions

4 topics · 3 formulas · 41 facts

  1. 1Functions in SQL
  2. 2GROUP BY in SQL
  3. 3Operations on Relations
  4. 4Using Two Relations in a Query
Formulas3 in this chapter
  • Degree of Cartesian product of two relationsp.18
  • Cardinality of Cartesian product of two relationsp.18
  • Number of joins needed to combine N tables on equality conditionp.22
Key facts
  1. SQL functions are categorised as single-row (scalar) functions and aggregate (multiple-row) functions based on whether they operate on one row or multiple rows of a table.

    p.4
  2. Single-row functions accept a single value and return a single value, and they are divided into numeric (math), string, and date and time functions.

    p.4
  3. The POWER(X, Y) or POW(X, Y) function calculates and returns the value of X raised to the power Y.

    p.5
  4. The ROUND(N, D) function rounds off a number N to D decimal places, and if D is 0 or omitted, it rounds off N to the nearest integer.

    p.5
  5. The MOD(A, B) function returns the remainder after dividing number A by number B.

    p.5
  6. The UCASE() and UPPER() functions convert a string to uppercase, while LCASE() and LOWER() convert a string to lowercase.

    p.8
  7. The MID(), SUBSTR(), and SUBSTRING() functions return a substring of length n starting from position pos, or up to the end of the string if n is omitted.

    p.8
  8. The LENGTH() function returns the total number of characters present in the specified string.

    p.8
  9. The LEFT(string, N) and RIGHT(string, N) functions extract and return N characters from the left and right sides of the string, respectively.

    p.8
  10. The INSTR(string, substring) function returns the 1-based index of the first occurrence of the substring in the string, and returns 0 if the substring is not found.

    p.8
  11. The LTRIM() function removes leading whitespace characters from a string, whereas RTRIM() removes trailing whitespace and TRIM() removes both.

    p.8
  12. The TRIM() function can also remove specific leading and trailing character sequences from a string using the syntax TRIM(remstr FROM str).

    p.10
  13. The NOW() function returns the current system date and time, while DATE() extracts and returns only the date part of a date or datetime expression.

    p.11
  14. The MONTH() function returns the month number from 1 to 12, whereas MONTHNAME() returns the full month name as a string.

    p.11
  15. The DAY() function returns the day of the month as a number, while DAYNAME() returns the day of the week as a text string.

    p.11
  16. The YEAR() function extracts and returns the four-digit year from the specified date expression.

    p.11
  17. Aggregate functions work on a set of records as a whole and return a single summary value for each column or group on which they are applied.

    p.12
  18. Single-row functions can appear in SELECT, WHERE, and ORDER BY clauses, whereas aggregate functions can only be used in the SELECT and HAVING clauses.

    p.12
  19. The MAX() and MIN() functions return the largest and smallest values from a column, while AVG() returns the mathematical average of numeric column values.

    p.12
  20. The SUM() function calculates the total sum of non-NULL values in a numeric column, and COUNT(column) returns the number of non-NULL values in that column.

    p.13
  21. The COUNT(*) function returns the total count of all rows in a table matching query criteria, including rows containing NULL values.

    p.13
  22. The COUNT(DISTINCT column) function returns the number of unique, non-null values present in the specified column.

    p.14
  23. The GROUP BY clause combines rows that have identical values in one or more specified columns into summary groups.

    p.14
  24. Aggregate functions like COUNT(), MAX(), MIN(), AVG(), and SUM() are used with the GROUP BY clause to compute summary values for each group.

    p.14
  25. The HAVING clause sets conditions to filter groups produced by the GROUP BY clause, whereas the WHERE clause filters individual rows before grouping.

    p.14
  26. When an ORDER BY clause is used with a GROUP BY clause, it must be placed after both the GROUP BY and HAVING clauses.

    p.15
  27. Set operations UNION, INTERSECT, and MINUS are binary relational operations that require both tables to have the same number of attributes with identical domains.

    p.16
  28. The UNION operation merges selected rows from two union-compatible relations and automatically eliminates duplicate rows from the final result.

    p.16
  29. The INTERSECT operation produces a relation containing only the common tuples that appear in both input tables.

    p.17
  30. The MINUS operation (set difference) yields tuples that exist in the first relation but do not appear in the second relation.

    p.18
  31. The Cartesian product operation pairs every row of the first relation with every row of the second relation, regardless of matching attribute values.

    p.18
  32. The degree of the Cartesian product of two relations equals the sum of their individual degrees, and its cardinality equals the product of their cardinalities.

    p.18
  33. Listing multiple table names separated by commas in the FROM clause without a join condition computes their Cartesian product.

    p.19
  34. Table aliases defined in the FROM clause provide shortened identifiers to qualify column names and resolve attribute ambiguity across tables.

    p.20
  35. When an alias is assigned to a table in the FROM clause, the alias must be used and the original table name cannot be referenced in that query.

    p.20
  36. A JOIN operation combines related tuples from two tables based on matching values in common attributes, typically a primary key and foreign key pair.

    p.20
  37. An equi-join can be executed by specifying an equality condition in the WHERE clause or by using the JOIN clause with an explicit ON condition.

    p.21
  38. A NATURAL JOIN joins two tables based on common attributes having identical names and domains, automatically suppressing duplicate common columns from the output.

    p.21
  39. A NATURAL JOIN requires at least one common attribute between the two tables to join their contents.

    p.22
  40. In general, exactly N - 1 join conditions are required to combine N tables on equality conditions without generating Cartesian products.

    p.22
  41. The JOIN clause can combine tuples of two tables using any relational comparison operators, not only the equality operator.

    p.22
Informatics Practices · Chapter 2

Data Handling Using Pandas – I

5 topics · 43 facts

  1. 1Introduction to Python Libraries
  2. 2Series
  3. 3DataFrame
  4. 4Importing and Exporting Data between CSV and DataFrames
  5. 5Pandas Series vs NumPy ndarray
Key facts
  1. The Pandas library is installed from the command line using pip install pandas, which requires Python to be already installed on the system.

    p.28
  2. A Pandas DataFrame supports heterogeneous data types across different columns, whereas a NumPy ndarray requires all elements to be of homogeneous data type.

    p.28
  3. Pandas provides three primary data structures for data manipulation and analysis: Series (one-dimensional), DataFrame (two-dimensional), and Panel (three-dimensional).

    p.28
  4. A Pandas Series is a one-dimensional array capable of holding a sequence of values of any data type, associated with default numeric data labels called indices starting from 0.

    p.29
  5. When creating a Series without explicitly specifying an index, Pandas assigns default integer labels ranging from 0 through N - 1, where N is the number of data elements.

    p.30
  6. Creating a Series from a 1D NumPy array with custom index labels requires the index and array lengths to match exactly, otherwise a ValueError is raised.

    p.31
  7. When a Series is created from a Python dictionary, the dictionary keys automatically become the Series index labels and the dictionary values become the corresponding data values.

    p.31
  8. Elements of a Series can be accessed using positional integer indices starting from 0 or user-defined labels, and multiple elements can be selected simultaneously by passing a list of indices or labels.

    p.32
  9. The index labels of an existing Series can be updated or reassigned directly by assigning a new sequence of labels to the Series.index attribute.

    p.32
  10. Positional slicing of a Series using series[start:end] excludes the value at the end index position, whereas label-based slicing includes the value at the end index label.

    p.33
  11. A Series can be reversed by slicing with a step of -1 using the syntax series[::-1].

    p.33
  12. Updating Series elements through positional slice assignment excludes the element at the end position, whereas slice assignment using index labels updates elements inclusively through the end label.

    p.34
  13. The Series.name attribute sets or retrieves the name of the Series, while Series.index.name sets or retrieves the name assigned to its index.

    p.35
  14. The Series.values attribute returns the data values as a NumPy ndarray, Series.size returns the total count of values, and Series.empty returns True if the Series contains no elements.

    p.35
  15. The Series.head(n) and Series.tail(n) methods return the first and last n members of a Series respectively, displaying 5 members by default when n is omitted.

    p.36
  16. The Series.count() method returns the number of non-null and non-NaN values present in the Series.

    p.36
  17. Arithmetic operations between two Series align elements by matching index labels, producing NaN for any index label that is not present in both Series.

    p.37
  18. The Series.add() method adds two Series with automatic index alignment and accepts a fill_value parameter to replace missing values with a specified number instead of producing NaN.

    p.38
  19. The Series.sub(), Series.mul(), and Series.div() methods perform element-wise subtraction, multiplication, and division respectively, allowing missing values to be filled with a specified fill_value.

    p.39
  20. A Pandas DataFrame is a two-dimensional labelled data structure with rows and columns, capable of holding different data types across different columns.

    p.40
  21. An empty DataFrame can be created by calling pd.DataFrame() with no arguments, yielding an object with empty index and columns lists.

    p.41
  22. When creating a DataFrame from a list of dictionaries, the dictionary keys become column labels, each dictionary forms a row, the column count equals the maximum keys in any dictionary, and missing values become NaN.

    p.42
  23. When creating a DataFrame from a dictionary of lists, the dictionary keys become column labels by default, and passing a sequence of keys to the columns parameter can alter the column display order.

    p.42
  24. When a DataFrame is created from multiple Series passed in a list, each Series becomes a row, the Series index labels become column names, and mismatched labels across Series are assigned NaN.

    p.43
  25. When creating a DataFrame from a dictionary of Series, dictionary keys become column labels and the resulting row index is formed by the union of all indices of the constituent Series.

    p.44
  26. Assigning a list of values to a new column name creates a new column at the end of the DataFrame, whereas assigning to an existing column name updates its values.

    p.45
  27. A new row can be added or an existing row updated by assigning values via DataFrame.loc[row_label], but attempting to assign fewer values than the number of columns raises a ValueError.

    p.46
  28. The DataFrame.drop() method removes rows when axis=0 and removes columns when axis=1; if duplicate labels exist along the specified axis, all matching rows or columns are deleted.

    p.47
  29. The DataFrame.rename() method modifies existing row labels when axis='index' and column labels when axis='columns', leaving unmentioned labels unchanged.

    p.48
  30. Accessing DataFrame elements using DataFrame.loc[row_label] with a single row label returns a Series, whereas passing a list of row labels in DataFrame.loc[[...]] returns a DataFrame.

    p.49
  31. Boolean indexing in DataFrames evaluates comparison conditions on column or row values to filter subsets of records where the condition evaluates to True.

    p.50
  32. Slicing in DataFrame.loc[start_row:end_row, start_col:end_col] using row and column labels is inclusive of both the start and end boundary labels.

    p.51
  33. The DataFrame.append() method merges another DataFrame by appending its rows to the end, adding any columns not present in the first DataFrame and filling unmatched positions with NaN.

    p.52
  34. In DataFrame.append(), setting sort=True sorts column labels, verify_integrity=True raises an error if duplicate row labels occur, and ignore_index=True resets the row index to 0 through N - 1.

    p.53
  35. DataFrame attributes include df.index for row labels, df.columns for column labels, df.dtypes for column data types, df.values for a NumPy ndarray of values, df.shape for a (rows, columns) tuple, and df.size for total element count.

    p.54
  36. A CSV file is a text file where values are separated by commas and each line represents a record, which can be imported into or exported from a Pandas DataFrame.

    p.55
  37. The pd.read_csv() function loads data from a CSV file into a DataFrame, taking sep to specify delimiters, header=0 to infer column names from the first line, and names to set explicit column labels.

    p.56
  38. The DataFrame.to_csv() method writes DataFrame contents to a CSV file on disk, supporting parameters such as sep for delimiter, header=False to omit column headers, and index=False to omit row labels.

    p.56
  39. Arithmetic operations between unaligned Pandas Series automatically align data based on matching index labels, creating a union of indices and filling missing labels with NaN so the operation does not fail.

    p.57
  40. A Pandas Series supports duplicate index values, raising an exception only when an attempted operation cannot support duplicate labels.

    p.57
  41. In a Pandas Series, user-defined labeled indices can consist of numbers or letters and can be indexed in descending order, whereas NumPy array indexing is fixed and starts from zero.

    p.58
  42. NumPy arrays occupy less memory and require homogeneous data with no concept of NaN values, whereas Pandas Series consume more memory, support heterogeneous data types, and use NaN to represent missing values.

    p.58
  43. When performing arithmetic operations between two ndarrays without identical shapes NumPy raises an error, whereas Pandas Series aligns matching labels and fills missing labels with NaN.

    p.59
Informatics Practices · Chapter 3

Data Handling Using Pandas – II

8 topics · 1 formula · 44 facts

  1. 1Descriptive Statistics
  2. 2Data Aggregations
  3. 3Sorting a DataFrame
  4. 4GROUP BY Functions
  5. 5Altering the Index
  6. 6Other DataFrame Operations
  7. 7Handling Missing Values
  8. 8Import and Export of Data between Pandas and MySQL
Formulas1 in this chapter
  • Standard deviation from variancep.75
Key facts
  1. DataFrame.max() calculates the maximum value of each column or row regardless of data types, comparing string values in alphabetical order.

    p.65
  2. Setting the parameter numeric_only=True in DataFrame.max() or DataFrame.min() limits the evaluation exclusively to numeric columns.

    p.66
  3. In DataFrame statistical functions, axis=0 gives column-wise results by default, whereas setting axis=1 computes row-wise results across columns.

    p.67
  4. DataFrame.count() counts the number of non-null values for each column by default, and counts row values across columns when axis=1 is specified.

    p.70
  5. DataFrame.quantile() computes quartiles for numeric columns, defaulting to q=0.5 (median) and accepting q=0.25 for the first quartile and q=0.75 for the third.

    p.73
  6. DataFrame.describe() computes a comprehensive statistical summary for all numeric columns in a single command, reporting count, mean, std, min, quartiles, and max.

    p.75
  7. Data aggregation transforms a dataset to produce a single numeric summary value from an array or column using functions like sum(), mean(), and std().

    p.75
  8. The aggregate() or agg() method can apply aggregate operations to one or more columns of a DataFrame simultaneously.

    p.75
  9. Multiple aggregate functions can be executed in a single statement by passing a list of function name strings, such as df.aggregate(["max", "count"]).

    p.76
  10. By default, aggregate() applies functions along columns with axis=0, while setting axis=1 applies functions row-wise across columns.

    p.76
  11. DataFrame.sort_values() arranges data elements in ascending or descending order, accepting parameters by, axis=0, and ascending=True by default.

    p.77
  12. Sorting a DataFrame by column values is performed along row indices in ascending order by default.

    p.77
  13. Setting ascending=False in DataFrame.sort_values() arranges the records in descending order of the specified column.

    p.78
  14. A DataFrame can be sorted by multiple columns by passing a list of column names to the by parameter, where secondary columns break ties in earlier ones.

    p.78
  15. The DataFrame.groupby() function splits data into groups based on criteria following a three-step split-apply-combine strategy.

    p.79
  16. The first() method on a groupby object returns the first entry of each group, while size() returns the count of rows in each group.

    p.80
  17. The groups attribute of a groupby object returns a dictionary mapping each group name to its corresponding row index labels.

    p.80
  18. The get_group() method retrieves a DataFrame containing only the rows belonging to a specified single group name.

    p.80
  19. Grouping can be performed across multiple attributes by passing a list of column names to groupby(), such as df.groupby(["Name", "UT"]).

    p.80
  20. Aggregation on a groupby object applies an aggregate function to each group and combines the results into a new DataFrame.

    p.81
  21. By default, a DataFrame is created with a continuous integer index starting from 0 to facilitate fast data retrieval.

    p.82
  22. The reset_index() method generates a new continuous numeric index starting from 0 while preserving the original index as a new column.

    p.83
  23. Specifying inplace=True in reset_index() or set_index() modifies the DataFrame in place without returning a new DataFrame object.

    p.83
  24. The set_index() method designates one or more existing columns of a DataFrame to become its new row index.

    p.83
  25. Reshaping data refers to the process of reorganizing the row and column structure of a dataset to make it suitable for specific analyses.

    p.84
  26. The pivot() function reshapes a DataFrame based on column values specified for index, columns, and values parameters.

    p.86
  27. Cells in a pivoted DataFrame that lack a corresponding matching entry in the original data are populated with NaN.

    p.86
  28. The pivot() function raises a ValueError if the index and column combination contains duplicate entries in the original DataFrame.

    p.87
  29. The pivot_table() function reshapes data like pivot() but aggregates values from duplicate index and column combinations, defaulting to mean.

    p.88
  30. The aggfunc parameter in pivot_table() accepts aggregate functions such as sum, max, min, len, np.mean, or a list of multiple functions.

    p.88
  31. Missing values in a DataFrame indicate absent column attributes for an entry and are represented by NaN (Not a Number).

    p.89
  32. Missing values are primarily handled either by dropping rows and columns with missing entries or by estimating and replacing them.

    p.90
  33. DataFrame.isnull() returns a DataFrame of boolean values, with True indicating a missing value and False indicating a valid entry.

    p.91
  34. Chaining any() after isnull(), as in df.isnull().any(), returns True for columns containing at least one missing value.

    p.92
  35. Calling df.isnull().sum() counts missing values per column, while df.isnull().sum().sum() returns the grand total of missing values in the DataFrame.

    p.93
  36. DataFrame.dropna() removes rows containing missing values by default, reducing dataset size to prevent biased analysis.

    p.94
  37. The fillna(value) method replaces missing NaN values with a specified constant, such as fillna(0) substituting zeros for all missing entries.

    p.96
  38. fillna(method="pad") replaces missing values with the preceding valid value, while fillna(method="bfill") replaces them with the succeeding value.

    p.97
  39. Connecting Pandas with a MySQL database requires installing the pymysql driver and the sqlalchemy library in the Python environment.

    p.98
  40. The sqlalchemy.create_engine() function takes a database URL connection string and returns an engine object used for database connections.

    p.98
  41. pandas.read_sql_query() loads query results into a DataFrame, read_sql_table() reads an entire table, and read_sql() accepts either a query or table.

    p.99
  42. DataFrame.to_sql() writes the contents of a DataFrame into a MySQL database table using an established sqlalchemy engine connection.

    p.100
  43. The if_exists parameter in to_sql() defaults to "fail" to raise a ValueError if the table exists, and can be set to "replace" or "append".

    p.100
  44. The index parameter in DataFrame.to_sql() defaults to True to write the DataFrame index into MySQL, but can be set to False to ignore indexing.

    p.101
Informatics Practices · Chapter 4

Plotting Data Using Matplotlib

3 topics · 39 facts

  1. 1Plotting using Matplotlib
  2. 2Customisation of Plots
  3. 3The Pandas plot() Function
Key facts
  1. Matplotlib is a Python library used for creating static, animated, and interactive 2D plots or figures.

    p.106
  2. The pyplot module of Matplotlib is imported using the statement 'import matplotlib.pyplot as plt', where plt serves as a standard alias.

    p.106
  3. A Matplotlib figure is the top-level window where plot outputs appear, containing components such as the plotting area, legend, axis labels, ticks, and title.

    p.106
  4. The pyplot plot() function creates a figure window and plots lines or markers within the plotting area.

    p.106
  5. The function plt.plot(x, y) plots values of x on the horizontal axis against values of y on the vertical axis.

    p.107
  6. The plt.show() function displays all created figures on the screen.

    p.107
  7. By default, passing two sequences of values to plt.plot() renders a line chart connecting data points in sequence.

    p.107
  8. The plt.savefig() function saves the current figure to an image file whose file path or name is passed as a string parameter.

    p.108
  9. The plt.xlabel() and plt.ylabel() functions set the text labels displayed along the x-axis and y-axis, respectively.

    p.108
  10. The plt.title() function defines the title string displayed at the top of the plot axes.

    p.108
  11. The plt.grid(True) function displays background gridlines to make coordinates and values easier to read.

    p.108
  12. The plt.xticks() and plt.yticks() functions get or set the tick locations and corresponding tick labels for the x-axis and y-axis.

    p.108
  13. When a single list or array is provided to plt.plot(), Matplotlib uses those values as y coordinates and automatically generates x values starting from 0.

    p.109
  14. The marker parameter in plt.plot() sets data point symbols, such as '.' for point, 'o' for circle, '*' for star, 's' for square, and 'D' for diamond.

    p.110
  15. The color parameter in plt.plot() accepts single-character colour codes including 'b' for blue, 'g' for green, 'r' for red, 'c' for cyan, 'm' for magenta, 'y' for yellow, 'k' for black, and 'w' for white.

    p.110
  16. The linewidth property specifies the line width in pixels with a default of 1, and values greater than 1 produce proportionally thicker lines.

    p.111
  17. The linestyle parameter in plt.plot() defines the appearance of the line and accepts strings such as 'solid', 'dotted', 'dashed', or 'dashdot'.

    p.111
  18. Pandas Series and DataFrame objects provide a built-in .plot() method that acts as a wrapper around the matplotlib.pyplot plot() function.

    p.112
  19. The kind parameter of df.plot() specifies the chart type, accepting 'line', 'bar', 'barh', 'hist', 'box', 'area', 'pie', or 'scatter'.

    p.113
  20. Calling df.plot(kind='line') displays a line plot of all numerical columns and includes an automatic legend associating column names with line colours.

    p.114
  21. By default, df.plot(kind='line') uses the DataFrame index row labels as the x-axis tick positions.

    p.115
  22. The plt.xticks(ticks, label) function customises x-axis ticks by placing the strings from label at the numeric positions specified in ticks.

    p.115
  23. Bar charts display categorical comparisons using bars, allowing string labels directly on the horizontal axis unlike line plots.

    p.116
  24. In df.plot(kind='bar', x='col'), the x parameter assigns a specified DataFrame column to the horizontal axis while omitted numeric columns become bars.

    p.117
  25. In df.plot(kind='bar'), the edgecolor, linewidth, and linestyle parameters control the bar border colour, border thickness, and border dash style.

    p.118
  26. A histogram is a column chart where data is sorted into consecutive intervals called bins, and the height of each bar represents frequency in that range.

    p.119
  27. The bins parameter in df.plot(kind='hist') accepts an integer count of intervals, a list of explicit bin edges, or a range object.

    p.120
  28. In df.plot(kind='hist'), the fill parameter toggles solid colour filling when True, and the hatch parameter applies interior texture patterns.

    p.120
  29. A scatter plot represents bivariate data using dots along the x and y axes to visualise correlation between two numeric variables.

    p.124
  30. In plt.scatter(), the s parameter controls the marker bubble size, which can be scaled by a variable array to display an additional data dimension.

    p.125
  31. Quartiles divide an ordered dataset into four equal parts, each containing 25% of the observations based on the median.

    p.126
  32. A box plot depicts a five-number statistical summary comprising the minimum, first quartile (Q1), median (Q2), third quartile (Q3), and maximum value.

    p.126
  33. Outliers in a box plot are observations numerically distant from the rest of the data that fall beyond the reach of the whiskers.

    p.126
  34. Setting vert=False in df.plot(kind='box') renders the box plot horizontally rather than vertically.

    p.129
  35. To create a pie chart using df.plot(kind='pie'), either a specific numerical column must be designated with y, or subplots=True must be set.

    p.130
  36. In a DataFrame pie chart, slice wedge labels default to the index labels of the DataFrame.

    p.131
  37. In df.plot(kind='pie'), setting legend=False prevents the legend box from being drawn over the pie sectors.

    p.132
  38. The explode parameter in a pie plot accepts a sequence of fractions specifying how far each wedge is offset outward from the center.

    p.132
  39. The autopct parameter in a pie plot formats and displays each sector's numerical percentage as a string label using format specifiers like '%.2f'.

    p.132
Informatics Practices · Chapter 5

Internet and Web

11 topics · 2 formulas · 42 facts

  1. 1Introduction to Computer Networks
  2. 2Types of Networks
  3. 3Network Devices
  4. 4Networking Topologies
  5. 5The Internet
  6. 6Applications of Internet
  7. 7Website
  8. 8Web Page
  9. 9Web Server
  10. 10Hosting of a Website
  11. 11Browser
Formulas2 in this chapter
  • Number of wires in a fully-connected mesh topologyp.147
  • Data transfer rate relation between Gigabit and Megabits per secondp.143
Key facts
  1. A computer network is an interconnection among two or more computers or computing devices that allows them to share data and hardware or software resources.

    p.138
  2. In a network, data being transmitted is divided into smaller chunks called packets before being carried over wired media like cables or wireless media like air.

    p.138
  3. Computer networks are broadly categorised as LAN, MAN, and WAN based on the geographical area covered and the data transfer rate.

    p.139
  4. A Local Area Network (LAN) connects devices within a limited distance of up to 1 km with data transfer rates usually varying from 10 Mbps to 1000 Mbps.

    p.140
  5. Ethernet is a set of rules that decides how computers and other devices connect with each other through cables in a local area network.

    p.140
  6. A Metropolitan Area Network (MAN) covers an area like a city or town, can extend up to 30 to 40 km, and includes cable TV or cable broadband networks.

    p.141
  7. A Wide Area Network (WAN) connects LANs and MANs across different countries or continents, and the Internet is the largest existing WAN.

    p.141
  8. A modem converts digital data to analog signals for transmission at the sender end and converts incoming analog signals back to digital data at the receiver end.

    p.142
  9. An Ethernet card or Network Interface Card (NIC) contains a unique MAC address that uniquely identifies the computer on a network.

    p.143
  10. A repeater regenerates weakened signals traveling over cables beyond their typical transmission limit of 100 meters and puts them back on the cable.

    p.143
  11. An Ethernet hub broadcasts data arriving on any port to all other connected ports, which can cause data collisions when two devices transmit simultaneously.

    p.143
  12. A switch extracts the destination address from an incoming packet, checks its table, and forwards the packet only to the intended recipient device.

    p.144
  13. A router connects a local area network to the internet and can repackage data into smaller packets when transmitting across different types of networks.

    p.144
  14. A gateway serves as the entry and exit point between an organisation's internal network and the outside Internet, routing packets to foreign networks.

    p.145
  15. In a mesh topology, every communicating device is connected to every other device, ensuring that failure of a single node does not disrupt transmission between other nodes.

    p.146
  16. In a ring topology, each node is connected to exactly two neighbouring devices, and data transmission along the circular link is unidirectional.

    p.147
  17. In a bus topology, communicating devices share a single common backbone cable called a bus, which transmits data in both directions along its length.

    p.147
  18. In a star topology, each device connects directly to a central hub or switch; a failure in an individual device does not affect the rest, but central device failure halts the network.

    p.148
  19. Tree or hybrid topology is a hierarchical structure where multiple basic topologies like star and bus are linked across branches, typically used in WANs.

    p.148
  20. The Internet is a global network of computing devices, smart appliances, and networking hardware that connects millions of computers worldwide.

    p.148
  21. The Internet backbone is formed hierarchically by connecting local ISPs to regional networks, which in turn connect to national and international networks.

    p.149
  22. Sir Tim Berners-Lee invented the World Wide Web in 1990 by defining three fundamental technologies: HTML, URI, and HTTP.

    p.149
  23. HyperText Markup Language (HTML) uses tags to define the basic structure and visual presentation of web pages across different web browsers.

    p.150
  24. A URL provides the location and mechanism (protocol) such as HTTP or HTTPS to access a web resource, specifying the protocol, subdomain, and domain name.

    p.150
  25. The Internet is the global network of interconnected computers, whereas the World Wide Web is the collection of interlinked web pages accessible over the Internet.

    p.150
  26. Electronic mail allows sending text messages and multimedia file attachments simultaneously to multiple recipients using CC or BCC options.

    p.151
  27. Chat or Instant Messaging enables real-time exchange of text, audio, and video messages between users who are online simultaneously on the same application.

    p.152
  28. Voice over Internet Protocol (VoIP) converts analog voice signals into digital packets to enable telephone calls over the Internet rather than traditional telephone networks.

    p.152
  29. A website is a collection of related web pages integrated under a common domain name and linked together through hyperlinks on a web server.

    p.153
  30. When a user enters the URL of a website in the address bar of a browser, the website's initial page, known as the home page, is displayed.

    p.153
  31. A web page is an HTML document viewed in a browser, styled using CSS, and made interactive through scripting languages like JavaScript.

    p.154
  32. A static web page displays identical content to every user because the web server retrieves the file from storage and returns it without additional processing.

    p.155
  33. A dynamic web page generates customised content for different users by executing server-side scripts and fetching live information from a connected database.

    p.155
  34. A web server is a specialised program or computer that processes incoming HTTP requests from web browsers and serves back corresponding HTTP responses.

    p.156
  35. If a web server is unable to locate the requested web page corresponding to a URL, it transmits an Error 404 Page Not Found message to the client browser.

    p.157
  36. Web hosting is a service that allocates server resources and storage space on an Internet-connected server so that a website's files are accessible globally.

    p.157
  37. The Domain Name System (DNS) maps human-readable domain names to their unique numerical IP addresses to route browser requests to the correct web server.

    p.158
  38. Mosaic was the first web browser developed by the National Centre for Supercomputing Applications (NCSA).

    p.158
  39. Browser settings allow users to configure preferences such as default search engines, download locations, autofill details, and privacy tracking protection.

    p.160
  40. A plug-in is a complete third-party program installed on the host computer that provides specialized functionality, such as Flash Player for video playback.

    p.161
  41. An add-on or browser extension is not a complete program and is used to extend or modify specific functionality within the web browser itself.

    p.161
  42. A cookie is a small text file transferred by a website and stored by the browser to remember user preferences, login states, and browsing history.

    p.162
Informatics Practices · Chapter 6

Societal Impacts

8 topics · 39 facts

  1. 1Digital Footprints
  2. 2Digital Society and Netizen
  3. 3Data Protection
  4. 4Creative Commons
  5. 5Cyber Crime
  6. 6Indian Information Technology Act (IT Act)
  7. 7E-waste: Hazards and Management
  8. 8Impact on Health
Key facts
  1. A digital footprint is the trail of data left behind when surfing the Internet, encompassing visited websites, sent emails, uploaded content, IP addresses, and device details.

    p.168
  2. Active digital footprints comprise data intentionally submitted online by the user, such as sending emails, posting on social media websites, or filling online application forms.

    p.168
  3. Passive digital footprints are created unintentionally without the user's active knowledge, generated by browsing history, search logs, cookies, and mobile application usage.

    p.168
  4. Web browsers record digital footprints locally via browsing history, saved passwords, and cookies, while remote web application servers store activity logs that cannot be fully erased.

    p.169
  5. A netizen or digital citizen is anyone who uses digital technology and the Internet, and who adheres to safe, ethical, and lawful online behavior by following established etiquettes.

    p.169
  6. Net etiquette requires respecting intellectual property by avoiding copyright violations, verifying that shared information is true and non-redundant, and respecting user diversity.

    p.170
  7. Cyber bullying involves repeatedly targeting, intimidating, or ridiculing an individual online through threats, rumors, sexual harassment, or unauthorized publication of personal data.

    p.170
  8. An Internet troll deliberately posts inflammatory, irrelevant, or quarrelsome comments in online communities for amusement, and the most effective way to counter a troll is to ignore them.

    p.171
  9. Communication etiquette dictates avoiding very large attachments by using compressed files or cloud shared storage links to conserve recipient bandwidth and respecting data limits.

    p.172
  10. Social media etiquette advises creating strong, frequently updated passwords, avoiding meeting unknown online contacts in person, and validating posts to prevent spreading fake news.

    p.173
  11. Sensitive data comprises personal details whose breach can cause substantial harm or embarrassment, such as biometric data, banking credentials, and medical history, requiring encryption.

    p.174
  12. Copyright is an automatically granted legal right protecting original literary, artistic, and software creations, giving the owner exclusive rights to reproduce, distribute, and perform the work.

    p.174
  13. A patent is an exclusive legal right granted for an invention upon official filing, granting the patentee control over commercial production and distribution of the invention for 20 years.

    p.175
  14. A trademark protects visual symbols, logos, names, and slogans that distinguish commercial products of one enterprise from another, preventing the use of deceptively similar marks.

    p.175
  15. Plagiarism is the unethical practice of copying someone else's work or ideas without citing the original creator, whereas copyright infringement is using or selling protected work without permission.

    p.176
  16. The GNU General Public License (GPL) grants end users the freedom to run, study, modify, and redistribute software code, distinguishing it from freeware which prohibits modifying the source code.

    p.177
  17. Software piracy is the unauthorized duplication, distribution, or commercial use of licensed software without owner permission, constituting copyright infringement and degrading system security.

    p.178
  18. Creative Commons is a non-profit organization that provides standardized, legally binding public copyright licenses enabling authors to share and grant specific permissions on creative works.

    p.178
  19. The CC BY (Attribution) license allows users to distribute, remix, tweak, and build upon a work even commercially, provided appropriate credit is given to the original creator.

    p.179
  20. The CC BY-NC-ND license is the most restrictive Creative Commons license, permitting only downloading and sharing of the original work with author credit, forbidding commercial use or adaptations.

    p.179
  21. A cyber crime is any criminal offense carried out in a digital environment where computers and networks act either as the primary target or as the medium used to inflict financial or mental harm.

    p.179
  22. Ethical hackers or white hat hackers test systems to locate security vulnerabilities and report them to owners, whereas black hat hackers or crackers exploit vulnerabilities unlawfully to steal data.

    p.180
  23. Phishing is a fraudulent cyber attack where deceptive emails or spoofed websites mimicking genuine organizations are used to steal personal credentials like usernames, passwords, and banking details.

    p.180
  24. Identity theft involves stealing an individual's personal identification details like PAN, Aadhaar, or banking credentials to commit financial fraud or conceal criminal actions.

    p.181
  25. Ransomware is malicious software that locks access to a computer system or encrypts stored data, demanding a ransom payment from the victim in exchange for restoring access.

    p.181
  26. Preventative measures against cyber crime include taking regular data backups, maintaining updated antivirus software, avoiding pirated programs, and conducting transactions exclusively over HTTPS.

    p.182
  27. The Indian Information Technology Act 2000 (amended in 2008) provides the legal framework for electronic governance by recognizing electronic records and digital signatures.

    p.182
  28. Under Section 24 of the Indian IT Act 2000, digital signatures can only be issued to users by a licensed Certifying Authority (CA) to authenticate electronic documents.

    p.182
  29. The Cyber Appellate Tribunal is established under the IT Act to hear appeals and resolve disputes arising from cyber offenses such as unauthorized system access, hacking, and source document tampering.

    p.183
  30. E-waste comprises discarded electric and electronic devices nearing or at the end of their useful life, currently making up over 5 percent of municipal solid waste globally.

    p.183
  31. Improper disposal of e-waste causes toxic chemicals to leach into soil and groundwater, leading to widespread soil contamination and making water unfit for human or agricultural use.

    p.184
  32. Lead in discarded computer monitors and batteries damages the kidneys, brain, and central nervous system, while burning circuit boards releases toxic beryllium that elevates lung cancer risk.

    p.184
  33. Cadmium from semiconductors harms kidneys and bones, while mercury found in certain electronic devices causes acute respiratory disorders and brain damage.

    p.184
  34. The Environment Protection Act 1986 enforces the Polluter Pays Principle in India, legally obligating anyone causing environmental damage to pay compensation for remediation.

    p.185
  35. The Central Pollution Control Board (CPCB) guidelines mandate that electronic equipment manufacturers bear personal responsibility for the final safe disposal and recycling of e-waste products.

    p.186
  36. Ergonomics is the science of designing and arranging workplaces, furniture, and computer systems so that users can operate them safely and comfortably with minimal physical strain.

    p.186
  37. To avoid eye strain from digital screen glare, users should maintain an appropriate viewing angle, periodically look away at distant objects, and take outdoor breaks.

    p.186
  38. Ergonomic computer posture requires a viewing distance of 19 to 24 inches, keeping wrists straight, and maintaining a 90-degree angle for seat backs, elbows, and knees with lumbar support.

    p.187
  39. Excessive and unmonitored digital device usage contributes to physical fatigue, obesity, elevated stress levels, and painful musculoskeletal disorders in wrists and fingers from repetitive keyboard use.

    p.187
Informatics Practices · Chapter 7

Project Based Learning

3 topics · 37 facts

  1. 1Approaches for Solving Projects
  2. 2Teamwork
  3. 3Project Descriptions
Key facts
  1. Project based learning involves analysing a problem, formulating it into small modules, applying methods to solve each module, and integrating modular solutions to reach a complete solution.

    p.195
  2. Project development approaches include the modular approach, the top-down approach, and the bottom-up approach.

    p.196
  3. In a modular approach, a project is divided into manageable modules where each module has a well-defined task with inputs and outputs that integrate into the desired outcome.

    p.196
  4. The primary steps in project based learning are project identification, defining a plan, fixing a time frame and processing, guidance and monitoring, and evaluating project outcome.

    p.196
  5. Defining a project plan requires identifying a project leader, defining member roles, assigning specific activities and tools, and anticipating extreme situations.

    p.196
  6. Every project has time relevance, requiring a well-structured yet flexible time frame for successful completion of all project activities.

    p.196
  7. When project participants encounter difficulties during execution, guidance can be obtained from books, websites, domain experts, the project leader, and the guide teacher.

    p.197
  8. A project outcome can be single or multiple, and project output can be peer reviewed and modified based on feedback from the guide teacher or users.

    p.197
  9. Teamwork is defined as an effort made collectively by individuals to accomplish a complex task.

    p.197
  10. Successful teamwork requires technical proficiency, skilled team members with specific defined roles, and effective mutual communication via emails, phone calls, or group meetings.

    p.198
  11. Active listening in group meetings enables team members to understand diverse ideas and follow mutually agreed-upon project steps.

    p.198
  12. Sharing ideas, tools, images, and domain expertise among team members is essential to accomplish project goals within the designated time frame.

    p.198
  13. Respecting and duly considering the views of every team member maintains motivation and prevents interpersonal problems within the team.

    p.198
  14. Seeking assistance from team members or individuals outside the core team is key to overcoming obstacles and completing project tasks.

    p.198
  15. Encouraging active participation from every team member in discussions and tasks ensures each member feels valued and invested in the project.

    p.198
  16. In the online shopping platform project, merchandise data fields include Apparel Code, Name, Category, Size, Price, Customer Name, Payment Mode, and Discount Code.

    p.199
  17. For card payment modes, the system must collect the card number, customer name, CVV, and validity date, whereas Cash on Delivery (COD) requires no card details.

    p.199
  18. In the online shopping platform, the randomly selected merchandise placed on sale is constrained to not exceed 70 percent of the total merchandise.

    p.199
  19. Promotional discount codes specify a 10 percent discount for FEST (Festive Sale) and a 15 percent discount for EOS (End of Season Sale).

    p.200
  20. In the book donation camp project, donated books and notebooks are categorised by condition as Fit, Needs Mending, or Unfit.

    p.200
  21. Pages of unfit books are recycled into paper bags and envelopes, while fit and mended books are resold at half price to promote reuse.

    p.200
  22. In donation camp inventory records, item identifiers are prefixed with B for books and N for notebooks.

    p.200
  23. An orders CSV file tracks purchased items and quantities, and processing an order updates the available quantity in the refurbished inventory CSV file.

    p.201
  24. Online survey data collected in CSV files can be imported into a Pandas DataFrame to compute descriptive statistics such as mean and median.

    p.201
  25. Open Government Data (OGD) Platform India (data.gov.in) provides public datasets published under the National Data Sharing and Accessibility Policy (NDSAP).

    p.201
  26. The adolescent and youth census dataset contains 12,168 rows and 123 columns describing state-wise demographic and worker categories.

    p.202
  27. The Pandas function pd.read_csv() reads data from an external CSV file and loads it into a DataFrame structure.

    p.205
  28. The DataFrame attribute df.shape returns a tuple representing the total number of rows and columns present in the DataFrame.

    p.205
  29. The df.columns.values attribute returns a NumPy array containing the column header labels of the DataFrame.

    p.205
  30. The df.loc indexer selects rows and columns using the syntax df.loc[row_selection, column_selection].

    p.206
  31. In df.loc slicing across column labels, both the starting column label and the ending column label are inclusive.

    p.206
  32. Assigning a list of new column names directly to df.columns renames all columns of the DataFrame.

    p.206
  33. The groupby() method in Pandas groups DataFrame rows by values in a specified column, enabling subsequent aggregation functions like .sum().

    p.207
  34. The df.drop() method drops specified rows along axis 0 from a DataFrame.

    p.207
  35. The df.plot(kind="bar") method generates a bar chart visualising the numeric columns of a DataFrame.

    p.207
  36. The plt.show() function from matplotlib.pyplot displays the generated plot figure.

    p.207
  37. In Matplotlib plots, offset labels like 1e8 displayed on an axis represent scientific notation automatically applied to large numeric values.

    p.208