HIE / 2C / 01
Python for Teens
The language most 2C students use, in depth.
Open the syllabusHong Kong · HKDSE ICT · Paper 2 Elective Part
Every HKDSE ICT candidate answers two electives out of three, and the pair shapes a year of study, a quarter of the exam and the kind of SBA project that feels natural. Many students take whatever pair their school runs. If your school offers a choice, it is worth making on purpose. Here is what each one asks, in the EDB's own terms, and how we teach them: live, online and one to one, in English.
Teaching live since 2020 · 10,000+ students worldwide · one-to-one lessons for Hong Kong, online and in English
The quick answer
HKDSE ICT Paper 2 has three electives and each candidate answers all the questions on any two: 2A Databases, 2B Web Application Development and 2C Algorithm and Programming. Together they are worth 25% of the subject and take 1 hour 30 minutes. 2A suits careful data thinkers, 2B students who like building for the web, 2C students who enjoy writing algorithms. Modern Age Coders teaches all three live, one to one and in English, at Hong Kong times that suit you, on top of the Compulsory Part.
Courses first
The DSE ICT course covers both papers and all three electives. The other two cards go deeper into the Databases and Web electives for students who want more hours on them. For Hong Kong students each one is taught one to one.

HIE / 01
The whole subject: Compulsory Part modules, 2C Algorithm and Programming in Python and C++, and 2A and 2B taught so the second elective is covered.
Open the syllabus →
HIE / 02
Extra depth for 2A Databases: table design, keys, joins, grouping and sub-queries, practised on databases built in class.
Open the syllabus →
HIE / 03
Extra depth for 2B Web Application Development: the client-side scripting, form checks and page logic the elective expects.
Open the syllabus →How Paper 2 works
The Elective Part is the second written paper of HKDSE ICT. The HKEAA's 2027 assessment framework describes it in a few lines, and those lines decide a great deal.
Paper 2 carries 25% of the subject mark and lasts 1 hour 30 minutes. It contains short and structured questions only, with no multiple choice. Candidates attempt two of the three electives and must answer every question in the two they pick.
The framework expects candidates "to build upon the knowledge and skills learned in the compulsory part". In practice that means Paper 2 questions assume Paper 1 knowledge and then go a level deeper.
The EDB guide gives the Elective Part about 76 hours of lesson time, spread over roughly one school year, and the subject as a whole 250 hours for planning purposes. Each elective is listed at 38 hours.
Our check: the three electives add to 114 hours of content in the guide's table; a student studies two, which is the guide's 76 hours. So the third elective is simply never taught to that student, and the choice really matters.
Sources: HKEAA, 2027 HKDSE ICT assessment framework (Paper 2 weight, duration, question types and the rule on answering all questions on the two electives); EDB, ICT Curriculum and Assessment Guide (S4 to 6), 2021 (hours). Both read 23 November 2026. The 2027 written papers for ICT fall on Saturday 17 April 2027 in the HKEAA timetable.
What about "elective D"? Search suggestions and older revision notes still mention electives C and D. The 2027 framework names only three electives, labelled 2A, 2B and 2C, so any fourth elective belongs to an earlier version of the subject. If a book or video talks about "elective D", check its year before trusting it.
Side by side
The table summarises each elective from the EDB guide: its topics and their recommended hours, the language it uses, and the Compulsory Part module it builds on.
| 2A Databases | 2B Web Application Development | 2C Algorithm and Programming | |
|---|---|---|---|
| Hours | 38 | 38 | 38 |
| Topics (hours) | Relational database concepts (6), SQL (18), database design methodology (14) | Network services and implementation (14), web programming and applications (24) | Programming (32, of which 28 design and implementation and 4 testing and debugging), applications of programming in real life (6) |
| Builds on | Module A, Information Processing | Module C, Internet and its Applications | Module D, Computational Thinking and Programming |
| Language in the exam | SQL | JavaScript and PHP | Python or C++ (Pascal also listed up to 2027) |
| Typical skills | Keys and integrity, joins across up to three tables, one-level sub-queries, ER diagrams, normalisation to 3NF | Client and server roles, TCP ports, GET and POST, setting up a small network, HTML and CSS, client and server scripts, cookies | Data types, searching, sorting, merging two arrays, linked lists, stacks and queues in arrays, text files, parameter passing, sensors and events |
Source: EDB, Information and Communication Technology Curriculum and Assessment Guide (Secondary 4 to 6), 2021, section 2.3.2 (topics, learning outcomes and remarks for each option), the hours table and Appendix 3 (programming languages in the public examination). Summarised by us; read 23 November 2026.
A data subject. Students design tables from a messy real-world scenario, draw entity relationship diagrams with binary relationships, remove redundancy by normalising up to third normal form, and query with SQL across as many as three tables, including outer joins and a single level of sub-query.
A building subject. Students learn how clients and servers talk, set up a small wired or wireless network with shared folders and permissions, edit HTML with a consistent CSS style, and write client and server scripts that validate input, read a database table and use cookies.
A thinking subject. Students choose data types, write and compare linear and binary search and three simple sorts, merge two arrays, build linked lists, stacks and queues inside arrays, handle text files, and write event-driven code that reads sensors such as a light sensor.
Choosing
First, ask the school which electives it teaches: if it runs only two, the choice is already made. Where there is one, these are the questions we ask a student in the free class. The advice is ours, not the HKEAA's.
| Pair | Tends to suit | Watch out for |
|---|---|---|
| 2A and 2C | Analytical students heading towards computing degrees | Two heavy written-logic papers; timing practice matters |
| 2A and 2B | Students who like structure and visible products | SQL appears in both, so keep the database basics sharp |
| 2B and 2C | Builders who want to code in more than one style | Two languages at once; one-to-one time helps keep them apart |
This table is our own guidance from tutoring HKDSE ICT, not an HKEAA or EDB recommendation. Schools decide which electives they offer.
A taste test
The quickest way to feel the difference is to answer one question both ways. In this lesson of ours, a coding club (invented by us) logs practice sessions. The question: for each form with at least 60 minutes logged, how many students practised and for how long? And who logged nothing?
# One question, two electives: SQL (2A) and a hand-written loop (2C).
# Invented data: students of a coding club and the practice sessions they logged.
import sqlite3
students = [("S01", "S4"), ("S02", "S4"), ("S03", "S5"),
("S04", "S5"), ("S05", "S5"), ("S06", "S6")]
sessions = [("S01", 40), ("S01", 25), ("S02", 30), ("S03", 55),
("S03", 20), ("S04", 45), ("S06", 15), ("S06", 10)]
# 2A Databases: let the database do the work
db = sqlite3.connect(":memory:")
db.execute("CREATE TABLE student (sid TEXT PRIMARY KEY, form TEXT)")
db.execute("CREATE TABLE session (sid TEXT, minutes INTEGER)")
db.executemany("INSERT INTO student VALUES (?, ?)", students)
db.executemany("INSERT INTO session VALUES (?, ?)", sessions)
query = """
SELECT st.form, COUNT(DISTINCT se.sid), SUM(se.minutes)
FROM student st JOIN session se ON st.sid = se.sid
GROUP BY st.form
HAVING SUM(se.minutes) >= 60
ORDER BY SUM(se.minutes) DESC
"""
print("SQL:", db.execute(query).fetchall())
idle = """
SELECT st.sid FROM student st LEFT JOIN session se ON st.sid = se.sid
WHERE se.sid IS NULL
"""
print("SQL, no sessions:", [r[0] for r in db.execute(idle)])
# 2C Algorithm and Programming: the same answer, step by step
form_of = dict(students)
total, people = {}, {}
for sid, minutes in sessions:
f = form_of[sid]
total[f] = total.get(f, 0) + minutes
people.setdefault(f, set()).add(sid)
rows = [(f, len(people[f]), total[f]) for f in total if total[f] >= 60]
rows.sort(key=lambda r: r[2], reverse=True)
print("Loop:", rows)
logged = {sid for sid, _ in sessions}
print("Loop, no sessions:", [sid for sid, _ in students if sid not in logged])Our own lesson code, run with Python 3 and the sqlite3 module that ships with it. The data are invented.
SQL: [('S5', 2, 120), ('S4', 2, 95)]
SQL, no sessions: ['S05']
Loop: [('S5', 2, 120), ('S4', 2, 95)]
Loop, no sessions: ['S05']Both methods agree. S6 logged only 25 minutes, so HAVING (and the loop's if) removes it. S05 never appears in an inner join; only the outer join, or the set of logged IDs, reveals the student who did not practise.
SQL says what result is wanted; the loop says how to get it. A student who enjoyed writing the five-line query will probably enjoy 2A. One who enjoyed controlling each step of the loop will probably enjoy 2C.
Most students like one half noticeably more. That reaction, honestly reported, is better evidence for a choice than any forum post.
In 2B the same question would sit behind a web form: a server-side script runs the query and returns a page, and a client-side script checks the input first. We show that version too when 2B is on the table.
For a fuller introduction to databases outside the exam, see our SQL and data analysis course page, written for learners anywhere; for the web side, our web development course for teens page shows the path.
When
Each school sets its own order, and the EDB guide leaves room for that. Two lines in the guide explain what most Hong Kong students experience.
The guide says that "in practice, most schools will teach the core modules prior to the options", while some begin an option straight after the module it depends on. It describes S4 as a "taster" year that helps students decide.
In one of its worked examples, a school spreads 250 hours over 97 in S4, 97 in S5 and 56 in S6, and teaches the Elective Part in the second half of S5. The guide itself notes the downside: less time left for project work.
If the electives start late in S5, a student has only months before the April exam to reach Paper 2 depth. Starting the chosen elective a term early, one to one, takes pressure off S6.
A student who joins ICT only in S5 needs extra time in the first months to catch up on S4 material, according to the guide. That is a common reason families contact a tutor.
Source: EDB, ICT Curriculum and Assessment Guide (2021), section 3.2 (progression) and Case 1 (an example curriculum plan, "for reference only"). Read 23 November 2026.
| Hong Kong | India | Who it suits |
|---|---|---|
| 4:30 pm, weekday | 2:00 pm | Students with an early finish |
| 9:00 pm, weekday | 6:30 pm | A late slot after dinner |
| 3:00 pm, Saturday | 12:30 pm | A longer elective session |
Our conversions. Hong Kong is UTC+8 throughout the year and India is UTC+5:30, so the difference never moves from 2 hours 30 minutes; there is no clock change to plan around.
For the whole subject at once, see our HKDSE ICT course. Students who want more algorithm practice than 2C requires can try the data structures and algorithms course.
Progress
Our own milestones for the Elective Part. They are a teaching tool and do not stand for any HKEAA level.
| Milestone | 2A | 2B | 2C |
|---|---|---|---|
| Foundations | Keys and integrity named in examples | Client, server, port and request explained | Arrays, loops and functions written fluently |
| Core skill | Joins and grouping written correctly | A form validated on the client and the server | Searches and sorts written and traced |
| Design | ER diagram turned into tables in 3NF | A small multi-page site with shared CSS | Stack, queue and linked list in arrays |
| Exam form | Structured questions done in time | Script reading and completion done in time | Code completion and tracing done in time |
Pick the elective you would happily practise on a Sunday.
Say the query in words before you write it.
Ask the school which electives it offers before anyone books lessons.
Monthly notes from the mentor show progress in each elective separately.
More courses
All live and in English, and one to one for students in Hong Kong.
HIE / 2C / 01
The language most 2C students use, in depth.
Open the syllabusHIE / 2C / 02
For schools that run 2C in C++.
Open the syllabusHIE / 2C / 03
Data structures past the syllabus.
Open the syllabusHIE / 2B / 01
Page structure and style sheets from scratch.
Open the syllabusHIE / 2B / 02
Server-side code and databases together.
Open the syllabusHIE / 2B / 03
Interfaces that behave well for users.
Open the syllabusHIE / DA / 01
Tables of data analysed in Python.
Open the syllabusHIE / DA / 02
Where well-designed data leads next.
Open the syllabusHIE / DA / 03
For students switching from the Cambridge route.
Open the syllabusHow lessons run
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. The mentor joins the video call from India, which runs 2 hours 30 minutes behind Hong Kong, and shares an editor or a database with the student.
Early slot
Half past four in Hong Kong is 2 pm in India.
Late slot
9 pm for the student is 6:30 pm for the mentor.
Saturday
A 3 pm Hong Kong session starts at 12:30 pm in India.
Queries run on a real database, pages in a real browser.
Lessons alternate between the student's pair.
Every exercise is written by us in the DSE style.
Short compulsory-part reviews in every lesson.
School SBA files are never opened in lessons.
One mentor for both electives where possible.
Student work
Built by learners on our longer courses; browse the rest on student labs.

AI and ML
An AI nutrition coach that reads what you eat and works you toward a target.

AI and ML
A chatbot that answers mathematics and programming questions, built and deployed by a student.

AI and ML
An assistant that helps a young person recognise unsafe situations online.

Web app
A weather forecasting site with live conditions for any location.
Fees
Payment runs monthly, covering just the coming month of lessons, never several at once. The fee card shows Hong Kong dollars, and the payment gateway's own charge is added as a visible line before you pay.
Free first class
Free
no card required
One to one
$1,200 HKD
a month, eight live classes
What families say
Parents and students in their own words, from Google reviews.
★★★★★
"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."
Ria Mukherjee
Parent
★★★★★
"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."
Samriddha Mondal
Student
★★★★★
"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."
Vansh Agarwal
Student
★★★★★
"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."
Sonam Oswal
Parent of Dhairya
★★★★★
"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."
Sonu Goyal
Parent
★★★★★
"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."
Ritu Kedia
Parent
Questions from Hong Kong families
Two. The HKEAA framework for 2027 says candidates attempt any two of 2A Databases, 2B Web Application Development and 2C Algorithm and Programming, and answer all the questions on the two they choose.
Paper 2 is 25% of the subject mark and lasts 1 hour 30 minutes. Paper 1 is 55% and the SBA 20%.
Not in the current subject. The 2027 framework lists three electives, 2A, 2B and 2C. Older notes that mention electives C and D describe an earlier version of the subject.
None is easy, and it depends on the student. Each is given about 38 hours in the EDB guide. A student who enjoys design rules usually does well in 2A; a builder in 2B; a problem solver in 2C. The free class is a good place to find out.
You would need to ask the school first, because the SBA and school teaching follow its own plan. Some students study an extra elective with a tutor, but the decision about what to sit should be made with the school.
For the 2027 exam the EDB guide lists Pascal, Python and C++; from 2028 it lists Python and C++ only. 2A uses SQL and 2B lists JavaScript and PHP.
Yes. Every lesson is live online and taught in English by a mentor based in India, so the technical vocabulary is learnt in the language of the code. We do not teach in Cantonese or Mandarin.
Yes. Students in Hong Kong are taught one to one only, with no group class, so the mentor can split time between the two electives exactly as the student needs.
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. Hong Kong is 2 hours 30 minutes ahead of India all year; a 6 pm lesson in Hong Kong is 3:30 pm for the mentor.
Only by teaching skills on our own practice projects. The HKEAA handbook treats work by others, including AI-generated work, presented as the student's own as malpractice. We never write, edit or check SBA work.
Month by month, in Hong Kong dollars as shown on the fee card, with no prepayment. Any payment-gateway charge appears before you pay. The first class is free.
Related
Other pages on the same subject and nearby ones.
All our coding, AI and maths for Hong Kong.
Both papers and all three electives.
More depth behind 2C.
Where data skills can lead.
The IB route, for comparison.
A look inside a live lesson.
Part of the guide: Every Hong Kong page
More guides: Coding and AI classes in Hong Kong · 中文:英文授課編程課程 · Start here: Online coding for kids · AI, vibe coding and AI agents: AI agents course · Coding subjects and courses: App development · By age and school level: Adults · IB, IGCSE, A-level and SAT: A level Computer Science tutor · Olympiads and competitions: AMC 10 preparation · Guides for families: After-school coding · School holidays: AI summer course · Districts and areas: Causeway Bay
Start here
In the free class your child tries a short SQL task and a short coding task, and the mentor asks what they enjoyed and what the school offers. You get a clear suggestion for the pair, or for the elective that needs extra help.
Want to read more first? See how we teach or the HKDSE ICT course page.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Live, online and one to one, in English, with mentors based in India. WhatsApp reaches us fastest.
A priority demo is a full class of about 45 to 60 minutes. After the class the mentor sends a written skill report and a personal learning roadmap on WhatsApp. If you enrol, the demo fee is adjusted against your first month's fee. Share your demo Order ID with us on WhatsApp and we take it off.
Book a priority demo