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
- 1Start hereQuerying and SQL FunctionsInformatics Practices · 3 formulas · 41 key factsRead
- 2Data Handling Using Pandas – IInformatics Practices · 43 key factsRead
- 3Data Handling Using Pandas – IIInformatics Practices · 1 formula · 44 key factsRead
- 4Plotting Data Using MatplotlibInformatics Practices · 39 key factsRead
- 5Internet and WebInformatics Practices · 2 formulas · 42 key factsRead
- 6Societal ImpactsInformatics Practices · 39 key factsRead
- 7Project Based LearningInformatics Practices · 37 key factsRead
Querying and SQL Functions
4 topics · 3 formulas · 41 facts
- 1Functions in SQL
- 2GROUP BY in SQL
- 3Operations on Relations
- 4Using Two Relations in a Query
- 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
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.4Single-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.4The POWER(X, Y) or POW(X, Y) function calculates and returns the value of X raised to the power Y.
p.5The 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.5The MOD(A, B) function returns the remainder after dividing number A by number B.
p.5The UCASE() and UPPER() functions convert a string to uppercase, while LCASE() and LOWER() convert a string to lowercase.
p.8The 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.8The LENGTH() function returns the total number of characters present in the specified string.
p.8The LEFT(string, N) and RIGHT(string, N) functions extract and return N characters from the left and right sides of the string, respectively.
p.8The 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.8The LTRIM() function removes leading whitespace characters from a string, whereas RTRIM() removes trailing whitespace and TRIM() removes both.
p.8The TRIM() function can also remove specific leading and trailing character sequences from a string using the syntax TRIM(remstr FROM str).
p.10The 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.11The MONTH() function returns the month number from 1 to 12, whereas MONTHNAME() returns the full month name as a string.
p.11The DAY() function returns the day of the month as a number, while DAYNAME() returns the day of the week as a text string.
p.11The YEAR() function extracts and returns the four-digit year from the specified date expression.
p.11Aggregate 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.12Single-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.12The MAX() and MIN() functions return the largest and smallest values from a column, while AVG() returns the mathematical average of numeric column values.
p.12The 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.13The COUNT(*) function returns the total count of all rows in a table matching query criteria, including rows containing NULL values.
p.13The COUNT(DISTINCT column) function returns the number of unique, non-null values present in the specified column.
p.14The GROUP BY clause combines rows that have identical values in one or more specified columns into summary groups.
p.14Aggregate functions like COUNT(), MAX(), MIN(), AVG(), and SUM() are used with the GROUP BY clause to compute summary values for each group.
p.14The HAVING clause sets conditions to filter groups produced by the GROUP BY clause, whereas the WHERE clause filters individual rows before grouping.
p.14When an ORDER BY clause is used with a GROUP BY clause, it must be placed after both the GROUP BY and HAVING clauses.
p.15Set operations UNION, INTERSECT, and MINUS are binary relational operations that require both tables to have the same number of attributes with identical domains.
p.16The UNION operation merges selected rows from two union-compatible relations and automatically eliminates duplicate rows from the final result.
p.16The INTERSECT operation produces a relation containing only the common tuples that appear in both input tables.
p.17The MINUS operation (set difference) yields tuples that exist in the first relation but do not appear in the second relation.
p.18The Cartesian product operation pairs every row of the first relation with every row of the second relation, regardless of matching attribute values.
p.18The 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.18Listing multiple table names separated by commas in the FROM clause without a join condition computes their Cartesian product.
p.19Table aliases defined in the FROM clause provide shortened identifiers to qualify column names and resolve attribute ambiguity across tables.
p.20When 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.20A JOIN operation combines related tuples from two tables based on matching values in common attributes, typically a primary key and foreign key pair.
p.20An 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.21A NATURAL JOIN joins two tables based on common attributes having identical names and domains, automatically suppressing duplicate common columns from the output.
p.21A NATURAL JOIN requires at least one common attribute between the two tables to join their contents.
p.22In general, exactly N - 1 join conditions are required to combine N tables on equality conditions without generating Cartesian products.
p.22The JOIN clause can combine tuples of two tables using any relational comparison operators, not only the equality operator.
p.22
Data Handling Using Pandas – I
5 topics · 43 facts
- 1Introduction to Python Libraries
- 2Series
- 3DataFrame
- 4Importing and Exporting Data between CSV and DataFrames
- 5Pandas Series vs NumPy ndarray
The Pandas library is installed from the command line using pip install pandas, which requires Python to be already installed on the system.
p.28A Pandas DataFrame supports heterogeneous data types across different columns, whereas a NumPy ndarray requires all elements to be of homogeneous data type.
p.28Pandas provides three primary data structures for data manipulation and analysis: Series (one-dimensional), DataFrame (two-dimensional), and Panel (three-dimensional).
p.28A 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.29When 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.30Creating 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.31When 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.31Elements 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.32The 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.32Positional 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.33A Series can be reversed by slicing with a step of -1 using the syntax series[::-1].
p.33Updating 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.34The 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.35The 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.35The 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.36The Series.count() method returns the number of non-null and non-NaN values present in the Series.
p.36Arithmetic operations between two Series align elements by matching index labels, producing NaN for any index label that is not present in both Series.
p.37The 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.38The 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.39A Pandas DataFrame is a two-dimensional labelled data structure with rows and columns, capable of holding different data types across different columns.
p.40An empty DataFrame can be created by calling pd.DataFrame() with no arguments, yielding an object with empty index and columns lists.
p.41When 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.42When 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.42When 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.43When 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.44Assigning 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.45A 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.46The 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.47The DataFrame.rename() method modifies existing row labels when axis='index' and column labels when axis='columns', leaving unmentioned labels unchanged.
p.48Accessing 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.49Boolean indexing in DataFrames evaluates comparison conditions on column or row values to filter subsets of records where the condition evaluates to True.
p.50Slicing 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.51The 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.52In 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.53DataFrame 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.54A 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.55The 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.56The 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.56Arithmetic 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.57A Pandas Series supports duplicate index values, raising an exception only when an attempted operation cannot support duplicate labels.
p.57In 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.58NumPy 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.58When 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
Data Handling Using Pandas – II
8 topics · 1 formula · 44 facts
- 1Descriptive Statistics
- 2Data Aggregations
- 3Sorting a DataFrame
- 4GROUP BY Functions
- 5Altering the Index
- 6Other DataFrame Operations
- 7Handling Missing Values
- 8Import and Export of Data between Pandas and MySQL
- Standard deviation from variancep.75
DataFrame.max() calculates the maximum value of each column or row regardless of data types, comparing string values in alphabetical order.
p.65Setting the parameter numeric_only=True in DataFrame.max() or DataFrame.min() limits the evaluation exclusively to numeric columns.
p.66In DataFrame statistical functions, axis=0 gives column-wise results by default, whereas setting axis=1 computes row-wise results across columns.
p.67DataFrame.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.70DataFrame.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.73DataFrame.describe() computes a comprehensive statistical summary for all numeric columns in a single command, reporting count, mean, std, min, quartiles, and max.
p.75Data aggregation transforms a dataset to produce a single numeric summary value from an array or column using functions like sum(), mean(), and std().
p.75The aggregate() or agg() method can apply aggregate operations to one or more columns of a DataFrame simultaneously.
p.75Multiple aggregate functions can be executed in a single statement by passing a list of function name strings, such as df.aggregate(["max", "count"]).
p.76By default, aggregate() applies functions along columns with axis=0, while setting axis=1 applies functions row-wise across columns.
p.76DataFrame.sort_values() arranges data elements in ascending or descending order, accepting parameters by, axis=0, and ascending=True by default.
p.77Sorting a DataFrame by column values is performed along row indices in ascending order by default.
p.77Setting ascending=False in DataFrame.sort_values() arranges the records in descending order of the specified column.
p.78A 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.78The DataFrame.groupby() function splits data into groups based on criteria following a three-step split-apply-combine strategy.
p.79The first() method on a groupby object returns the first entry of each group, while size() returns the count of rows in each group.
p.80The groups attribute of a groupby object returns a dictionary mapping each group name to its corresponding row index labels.
p.80The get_group() method retrieves a DataFrame containing only the rows belonging to a specified single group name.
p.80Grouping can be performed across multiple attributes by passing a list of column names to groupby(), such as df.groupby(["Name", "UT"]).
p.80Aggregation on a groupby object applies an aggregate function to each group and combines the results into a new DataFrame.
p.81By default, a DataFrame is created with a continuous integer index starting from 0 to facilitate fast data retrieval.
p.82The reset_index() method generates a new continuous numeric index starting from 0 while preserving the original index as a new column.
p.83Specifying inplace=True in reset_index() or set_index() modifies the DataFrame in place without returning a new DataFrame object.
p.83The set_index() method designates one or more existing columns of a DataFrame to become its new row index.
p.83Reshaping data refers to the process of reorganizing the row and column structure of a dataset to make it suitable for specific analyses.
p.84The pivot() function reshapes a DataFrame based on column values specified for index, columns, and values parameters.
p.86Cells in a pivoted DataFrame that lack a corresponding matching entry in the original data are populated with NaN.
p.86The pivot() function raises a ValueError if the index and column combination contains duplicate entries in the original DataFrame.
p.87The pivot_table() function reshapes data like pivot() but aggregates values from duplicate index and column combinations, defaulting to mean.
p.88The aggfunc parameter in pivot_table() accepts aggregate functions such as sum, max, min, len, np.mean, or a list of multiple functions.
p.88Missing values in a DataFrame indicate absent column attributes for an entry and are represented by NaN (Not a Number).
p.89Missing values are primarily handled either by dropping rows and columns with missing entries or by estimating and replacing them.
p.90DataFrame.isnull() returns a DataFrame of boolean values, with True indicating a missing value and False indicating a valid entry.
p.91Chaining any() after isnull(), as in df.isnull().any(), returns True for columns containing at least one missing value.
p.92Calling df.isnull().sum() counts missing values per column, while df.isnull().sum().sum() returns the grand total of missing values in the DataFrame.
p.93DataFrame.dropna() removes rows containing missing values by default, reducing dataset size to prevent biased analysis.
p.94The fillna(value) method replaces missing NaN values with a specified constant, such as fillna(0) substituting zeros for all missing entries.
p.96fillna(method="pad") replaces missing values with the preceding valid value, while fillna(method="bfill") replaces them with the succeeding value.
p.97Connecting Pandas with a MySQL database requires installing the pymysql driver and the sqlalchemy library in the Python environment.
p.98The sqlalchemy.create_engine() function takes a database URL connection string and returns an engine object used for database connections.
p.98pandas.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.99DataFrame.to_sql() writes the contents of a DataFrame into a MySQL database table using an established sqlalchemy engine connection.
p.100The 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.100The 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
Plotting Data Using Matplotlib
3 topics · 39 facts
- 1Plotting using Matplotlib
- 2Customisation of Plots
- 3The Pandas plot() Function
Matplotlib is a Python library used for creating static, animated, and interactive 2D plots or figures.
p.106The pyplot module of Matplotlib is imported using the statement 'import matplotlib.pyplot as plt', where plt serves as a standard alias.
p.106A 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.106The pyplot plot() function creates a figure window and plots lines or markers within the plotting area.
p.106The function plt.plot(x, y) plots values of x on the horizontal axis against values of y on the vertical axis.
p.107The plt.show() function displays all created figures on the screen.
p.107By default, passing two sequences of values to plt.plot() renders a line chart connecting data points in sequence.
p.107The plt.savefig() function saves the current figure to an image file whose file path or name is passed as a string parameter.
p.108The plt.xlabel() and plt.ylabel() functions set the text labels displayed along the x-axis and y-axis, respectively.
p.108The plt.title() function defines the title string displayed at the top of the plot axes.
p.108The plt.grid(True) function displays background gridlines to make coordinates and values easier to read.
p.108The plt.xticks() and plt.yticks() functions get or set the tick locations and corresponding tick labels for the x-axis and y-axis.
p.108When 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.109The 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.110The 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.110The linewidth property specifies the line width in pixels with a default of 1, and values greater than 1 produce proportionally thicker lines.
p.111The linestyle parameter in plt.plot() defines the appearance of the line and accepts strings such as 'solid', 'dotted', 'dashed', or 'dashdot'.
p.111Pandas Series and DataFrame objects provide a built-in .plot() method that acts as a wrapper around the matplotlib.pyplot plot() function.
p.112The kind parameter of df.plot() specifies the chart type, accepting 'line', 'bar', 'barh', 'hist', 'box', 'area', 'pie', or 'scatter'.
p.113Calling df.plot(kind='line') displays a line plot of all numerical columns and includes an automatic legend associating column names with line colours.
p.114By default, df.plot(kind='line') uses the DataFrame index row labels as the x-axis tick positions.
p.115The plt.xticks(ticks, label) function customises x-axis ticks by placing the strings from label at the numeric positions specified in ticks.
p.115Bar charts display categorical comparisons using bars, allowing string labels directly on the horizontal axis unlike line plots.
p.116In 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.117In df.plot(kind='bar'), the edgecolor, linewidth, and linestyle parameters control the bar border colour, border thickness, and border dash style.
p.118A 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.119The bins parameter in df.plot(kind='hist') accepts an integer count of intervals, a list of explicit bin edges, or a range object.
p.120In df.plot(kind='hist'), the fill parameter toggles solid colour filling when True, and the hatch parameter applies interior texture patterns.
p.120A scatter plot represents bivariate data using dots along the x and y axes to visualise correlation between two numeric variables.
p.124In 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.125Quartiles divide an ordered dataset into four equal parts, each containing 25% of the observations based on the median.
p.126A box plot depicts a five-number statistical summary comprising the minimum, first quartile (Q1), median (Q2), third quartile (Q3), and maximum value.
p.126Outliers in a box plot are observations numerically distant from the rest of the data that fall beyond the reach of the whiskers.
p.126Setting vert=False in df.plot(kind='box') renders the box plot horizontally rather than vertically.
p.129To 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.130In a DataFrame pie chart, slice wedge labels default to the index labels of the DataFrame.
p.131In df.plot(kind='pie'), setting legend=False prevents the legend box from being drawn over the pie sectors.
p.132The explode parameter in a pie plot accepts a sequence of fractions specifying how far each wedge is offset outward from the center.
p.132The 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
Internet and Web
11 topics · 2 formulas · 42 facts
- 1Introduction to Computer Networks
- 2Types of Networks
- 3Network Devices
- 4Networking Topologies
- 5The Internet
- 6Applications of Internet
- 7Website
- 8Web Page
- 9Web Server
- 10Hosting of a Website
- 11Browser
- Number of wires in a fully-connected mesh topologyp.147
- Data transfer rate relation between Gigabit and Megabits per secondp.143
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.138In 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.138Computer networks are broadly categorised as LAN, MAN, and WAN based on the geographical area covered and the data transfer rate.
p.139A 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.140Ethernet is a set of rules that decides how computers and other devices connect with each other through cables in a local area network.
p.140A 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.141A Wide Area Network (WAN) connects LANs and MANs across different countries or continents, and the Internet is the largest existing WAN.
p.141A 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.142An Ethernet card or Network Interface Card (NIC) contains a unique MAC address that uniquely identifies the computer on a network.
p.143A repeater regenerates weakened signals traveling over cables beyond their typical transmission limit of 100 meters and puts them back on the cable.
p.143An Ethernet hub broadcasts data arriving on any port to all other connected ports, which can cause data collisions when two devices transmit simultaneously.
p.143A switch extracts the destination address from an incoming packet, checks its table, and forwards the packet only to the intended recipient device.
p.144A router connects a local area network to the internet and can repackage data into smaller packets when transmitting across different types of networks.
p.144A gateway serves as the entry and exit point between an organisation's internal network and the outside Internet, routing packets to foreign networks.
p.145In 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.146In a ring topology, each node is connected to exactly two neighbouring devices, and data transmission along the circular link is unidirectional.
p.147In a bus topology, communicating devices share a single common backbone cable called a bus, which transmits data in both directions along its length.
p.147In 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.148Tree or hybrid topology is a hierarchical structure where multiple basic topologies like star and bus are linked across branches, typically used in WANs.
p.148The Internet is a global network of computing devices, smart appliances, and networking hardware that connects millions of computers worldwide.
p.148The Internet backbone is formed hierarchically by connecting local ISPs to regional networks, which in turn connect to national and international networks.
p.149Sir Tim Berners-Lee invented the World Wide Web in 1990 by defining three fundamental technologies: HTML, URI, and HTTP.
p.149HyperText Markup Language (HTML) uses tags to define the basic structure and visual presentation of web pages across different web browsers.
p.150A 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.150The 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.150Electronic mail allows sending text messages and multimedia file attachments simultaneously to multiple recipients using CC or BCC options.
p.151Chat or Instant Messaging enables real-time exchange of text, audio, and video messages between users who are online simultaneously on the same application.
p.152Voice over Internet Protocol (VoIP) converts analog voice signals into digital packets to enable telephone calls over the Internet rather than traditional telephone networks.
p.152A website is a collection of related web pages integrated under a common domain name and linked together through hyperlinks on a web server.
p.153When 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.153A web page is an HTML document viewed in a browser, styled using CSS, and made interactive through scripting languages like JavaScript.
p.154A 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.155A dynamic web page generates customised content for different users by executing server-side scripts and fetching live information from a connected database.
p.155A web server is a specialised program or computer that processes incoming HTTP requests from web browsers and serves back corresponding HTTP responses.
p.156If 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.157Web 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.157The 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.158Mosaic was the first web browser developed by the National Centre for Supercomputing Applications (NCSA).
p.158Browser settings allow users to configure preferences such as default search engines, download locations, autofill details, and privacy tracking protection.
p.160A 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.161An 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.161A 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
Societal Impacts
8 topics · 39 facts
- 1Digital Footprints
- 2Digital Society and Netizen
- 3Data Protection
- 4Creative Commons
- 5Cyber Crime
- 6Indian Information Technology Act (IT Act)
- 7E-waste: Hazards and Management
- 8Impact on Health
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.168Active 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.168Passive digital footprints are created unintentionally without the user's active knowledge, generated by browsing history, search logs, cookies, and mobile application usage.
p.168Web 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.169A 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.169Net etiquette requires respecting intellectual property by avoiding copyright violations, verifying that shared information is true and non-redundant, and respecting user diversity.
p.170Cyber bullying involves repeatedly targeting, intimidating, or ridiculing an individual online through threats, rumors, sexual harassment, or unauthorized publication of personal data.
p.170An 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.171Communication etiquette dictates avoiding very large attachments by using compressed files or cloud shared storage links to conserve recipient bandwidth and respecting data limits.
p.172Social media etiquette advises creating strong, frequently updated passwords, avoiding meeting unknown online contacts in person, and validating posts to prevent spreading fake news.
p.173Sensitive data comprises personal details whose breach can cause substantial harm or embarrassment, such as biometric data, banking credentials, and medical history, requiring encryption.
p.174Copyright 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.174A 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.175A 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.175Plagiarism 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.176The 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.177Software piracy is the unauthorized duplication, distribution, or commercial use of licensed software without owner permission, constituting copyright infringement and degrading system security.
p.178Creative 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.178The 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.179The 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.179A 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.179Ethical 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.180Phishing 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.180Identity theft involves stealing an individual's personal identification details like PAN, Aadhaar, or banking credentials to commit financial fraud or conceal criminal actions.
p.181Ransomware 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.181Preventative measures against cyber crime include taking regular data backups, maintaining updated antivirus software, avoiding pirated programs, and conducting transactions exclusively over HTTPS.
p.182The Indian Information Technology Act 2000 (amended in 2008) provides the legal framework for electronic governance by recognizing electronic records and digital signatures.
p.182Under 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.182The 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.183E-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.183Improper 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.184Lead 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.184Cadmium from semiconductors harms kidneys and bones, while mercury found in certain electronic devices causes acute respiratory disorders and brain damage.
p.184The Environment Protection Act 1986 enforces the Polluter Pays Principle in India, legally obligating anyone causing environmental damage to pay compensation for remediation.
p.185The 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.186Ergonomics 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.186To 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.186Ergonomic 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.187Excessive 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
Project Based Learning
3 topics · 37 facts
- 1Approaches for Solving Projects
- 2Teamwork
- 3Project Descriptions
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.195Project development approaches include the modular approach, the top-down approach, and the bottom-up approach.
p.196In 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.196The 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.196Defining a project plan requires identifying a project leader, defining member roles, assigning specific activities and tools, and anticipating extreme situations.
p.196Every project has time relevance, requiring a well-structured yet flexible time frame for successful completion of all project activities.
p.196When project participants encounter difficulties during execution, guidance can be obtained from books, websites, domain experts, the project leader, and the guide teacher.
p.197A 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.197Teamwork is defined as an effort made collectively by individuals to accomplish a complex task.
p.197Successful teamwork requires technical proficiency, skilled team members with specific defined roles, and effective mutual communication via emails, phone calls, or group meetings.
p.198Active listening in group meetings enables team members to understand diverse ideas and follow mutually agreed-upon project steps.
p.198Sharing ideas, tools, images, and domain expertise among team members is essential to accomplish project goals within the designated time frame.
p.198Respecting and duly considering the views of every team member maintains motivation and prevents interpersonal problems within the team.
p.198Seeking assistance from team members or individuals outside the core team is key to overcoming obstacles and completing project tasks.
p.198Encouraging active participation from every team member in discussions and tasks ensures each member feels valued and invested in the project.
p.198In the online shopping platform project, merchandise data fields include Apparel Code, Name, Category, Size, Price, Customer Name, Payment Mode, and Discount Code.
p.199For 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.199In the online shopping platform, the randomly selected merchandise placed on sale is constrained to not exceed 70 percent of the total merchandise.
p.199Promotional discount codes specify a 10 percent discount for FEST (Festive Sale) and a 15 percent discount for EOS (End of Season Sale).
p.200In the book donation camp project, donated books and notebooks are categorised by condition as Fit, Needs Mending, or Unfit.
p.200Pages of unfit books are recycled into paper bags and envelopes, while fit and mended books are resold at half price to promote reuse.
p.200In donation camp inventory records, item identifiers are prefixed with B for books and N for notebooks.
p.200An orders CSV file tracks purchased items and quantities, and processing an order updates the available quantity in the refurbished inventory CSV file.
p.201Online survey data collected in CSV files can be imported into a Pandas DataFrame to compute descriptive statistics such as mean and median.
p.201Open Government Data (OGD) Platform India (data.gov.in) provides public datasets published under the National Data Sharing and Accessibility Policy (NDSAP).
p.201The adolescent and youth census dataset contains 12,168 rows and 123 columns describing state-wise demographic and worker categories.
p.202The Pandas function pd.read_csv() reads data from an external CSV file and loads it into a DataFrame structure.
p.205The DataFrame attribute df.shape returns a tuple representing the total number of rows and columns present in the DataFrame.
p.205The df.columns.values attribute returns a NumPy array containing the column header labels of the DataFrame.
p.205The df.loc indexer selects rows and columns using the syntax df.loc[row_selection, column_selection].
p.206In df.loc slicing across column labels, both the starting column label and the ending column label are inclusive.
p.206Assigning a list of new column names directly to df.columns renames all columns of the DataFrame.
p.206The groupby() method in Pandas groups DataFrame rows by values in a specified column, enabling subsequent aggregation functions like .sum().
p.207The df.drop() method drops specified rows along axis 0 from a DataFrame.
p.207The df.plot(kind="bar") method generates a bar chart visualising the numeric columns of a DataFrame.
p.207The plt.show() function from matplotlib.pyplot displays the generated plot figure.
p.207In Matplotlib plots, offset labels like 1e8 displayed on an axis represent scientific notation automatically applied to large numeric values.
p.208