MBOSE Class XII Computer Science
Opening soon15 chapters
Chapters
A quick refresher of the Python basics from last year, including data types, operators, loops, strings, lists, tuples and dictionaries.
- Tokens
- Data types
- Mutable and immutable types
- Operators and precedence
- Expressions and type conversion
- Input/output and print()
- If, for, while, range()
- Break, continue and loop else
- Strings and slicing
- Lists and list methods
- Tuples
- Dictionaries
Learn to write your own Python functions, pass values to them, return results, understand variable scope and use modules and recursion.
- Types of functions
- Defining and calling
- Function header
- Parameters and arguments
- Positional, default and keyword arguments
- Return values (fruitful and void)
- Returning multiple values
- Flow of execution
- Scope (local and global) and the global keyword
- Modules (math, random) and packages
- Docstrings
- Recursion
Learn to deal with errors in Python programs using try, except, else and finally, so your code fails gracefully.
- Syntax errors
- Exceptions
- Built-in exceptions
- Raising exceptions — raise and assert
- Handling exceptions — need, process, try…except, multiple except clauses, except without an exception name, try…except…else
- Finally clause
Learn to read and write text, binary and CSV files in Python, so your programs can save and load data.
- Text, binary and CSV files
- Opening and closing files
- Access modes
- With clause
- Write() and writelines()
- Read(), readline() and readlines()
- Tell() and seek()
- Text-file programs
- The pickle module — dump() and load()
- Binary-file programs
- The csv module — writer(), writerow(), writerows(), reader()
How a stack works on the last-in, first-out rule, how to build one in Python, and how it helps evaluate expressions.
- Data structures
- Stack and the LIFO principle
- Applications
- Operations — PUSH, POP, overflow, underflow, isEmpty, top, size, display
- Implementation in Python using a list
- Infix, prefix and postfix notations
- Conversion of infix to postfix
- Evaluation of postfix expressions
How a queue works on the first-in, first-out rule, how to build queues and deques in Python, and where they are used.
- Queue and FIFO
- Applications
- Operations — enqueue, dequeue, isEmpty, peek, isFull, size
- Implementation in Python
- Deque — operations, applications and implementation
- Palindrome checking with a deque
How bubble, selection and insertion sort put data in order, and how Big-O notation compares how fast they run.
- Sorting
- Bubble sort
- Selection sort
- Insertion sort — algorithms, passes and Python programs
- Time complexity — constant, linear and quadratic time
- Big-O notation
How computers find an item in a list, from checking one by one to the faster binary search, and how hashing finds things almost instantly.
- Searching
- Linear (sequential) search — algorithm, program, comparisons
- Binary search — algorithm, iterative and recursive programs, iterations
- Search by hashing — hash function, remainder method, hash table, collision
What data is, the forms it takes, how it is collected, stored and processed, and how simple statistics like mean and standard deviation summarise it.
- Data and its importance
- Structured and unstructured data
- Metadata
- Data collection
- Data storage
- Data processing
- Statistical techniques — mean, median, mode, range, standard deviation
Why databases replaced paper records and plain files, and how the relational model organises data into tables linked by keys.
- Manual record keeping
- File system and its limitations
- DBMS — concepts (schema, constraints, metadata, instance, query, manipulation, engine), applications and limitations
- Relational data model — relation, attribute, tuple, domain, degree, cardinality
- Properties of a relation
- Keys — candidate, primary, composite primary, alternate, foreign
- NULL
Learn to create, change and question databases with SQL commands, and connect a Python program to a MySQL database.
- SQL and MySQL
- Data types
- Constraints
- DDL — CREATE, USE, SHOW, DESCRIBE, ALTER, DROP
- DML — INSERT, UPDATE, DELETE
- SELECT with WHERE, DISTINCT, aliases, BETWEEN, IN, LIKE, IS NULL, ORDER BY
- Single-row and aggregate functions
- GROUP BY and HAVING
- Set operations
- Cartesian product and joins
- Python–MySQL connectivity
How computers are linked into networks, the devices and layouts used, and how the Internet and the web actually work.
- Computer network and its advantages
- Evolution — ARPANET, NSFNET, Internet
- Types — PAN, LAN, MAN, WAN
- Network devices — modem, Ethernet card, RJ45, repeater, hub, switch, router, gateway, bridge
- Topologies — mesh, ring, bus, star, tree
- MAC and IP addresses
- Internet, WWW, IoT
- Web services — HTML, XML, URL, domain names, DNS, web browser, web server, web hosting
- Network design
How data travels between devices over wires and wireless signals, and the rules, or protocols, that keep the conversation on track.
- Data communication and its components
- Bandwidth and data transfer rate
- Simplex, half-duplex and full-duplex communication
- Circuit and packet switching
- Wired media — twisted pair, coaxial, optical fibre
- Wireless media — radio waves, microwaves, infrared
- Bluetooth and WLAN
- Mobile generations
- Protocols — HTTP, FTP, PPP, SMTP, TCP/IP, VoIP
The threats your computer faces, from viruses and ransomware to hackers, and the tools like antivirus software and firewalls that keep you safe.
- Threats and prevention
- Malware — virus, worm, ransomware, Trojan, spyware, adware, keylogger
- Modes of malware distribution
- Combating malware
- Antivirus and detection methods
- Spam
- HTTP vs HTTPS
- Firewall
- Cookies
- Hackers and crackers
- Network security threats — DoS, DDoS, intrusion, snooping, eavesdropping
Chapter 3 · Old-Course Topics: Plotting, Django, Networking and Society (2020 HSSLC Questions)
Notes and solved questionsPractice questions from earlier papers on topics from an older course, such as plotting graphs, Django, networking and technology's effect on society.
- Matplotlib line graphs
- HTTP GET and POST
- Django virtual environment and project structure
- Collision avoidance, checksum, congestion and modulation
- Internet addiction, online scams, new-age media, computer forensics, identity theft