Hong Kong · HKDSE ICT · Paper 2 Elective Part

HKDSE ICT electives: which two should you take?

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

Which course supports each elective?

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.

How Paper 2 works

What are the HKDSE ICT electives?

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.

The rules of the paper

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 time behind it

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

What does each HKDSE ICT elective teach?

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.

The three HKDSE ICT electives in the EDB guide (2021): topics, hours and languages
2A Databases2B Web Application Development2C Algorithm and Programming
Hours383838
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 onModule A, Information ProcessingModule C, Internet and its ApplicationsModule D, Computational Thinking and Programming
Language in the examSQLJavaScript and PHPPython or C++ (Pascal also listed up to 2027)
Typical skillsKeys and integrity, joins across up to three tables, one-level sub-queries, ER diagrams, normalisation to 3NFClient and server roles, TCP ports, GET and POST, setting up a small network, HTML and CSS, client and server scripts, cookiesData 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.

2A Databases

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.

2B Web Application Development

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.

2C Algorithm and Programming

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

Which HKDSE ICT elective should I choose?

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.

  1. Do you like tidy rules or open problems? Students who enjoy getting a design exactly right, with every key and relationship in place, often find 2A satisfying. Students who would rather invent a method from nothing lean towards 2C.
  2. Has programming in Paper 1 felt comfortable? 2C builds straight on module D. If loops and arrays still feel shaky in S5, fix that first, because 2C assumes them from the first week.
  3. Do you want to see what you build? 2B produces pages and small web applications a student can show to a friend. That visible result keeps some students motivated through a long year.
  4. What do you plan to study next? The EDB guide says the options include ones that show computers applied in specific areas and ones for students heading to ICT as a university discipline, while adding that the two kinds overlap. Students set on computer science often take 2C as one of the pair.
  5. What will your SBA be about? The HKEAA handbook says the context of the SBA tasks relates to both the Compulsory Part and the elective each student chose. An elective you understand well makes the SBA less of a stretch.
  6. Which pair covers your weakness? Two electives that both lean on the same strength leave a weak area untouched. A student weak at algorithms but strong at structure might pair 2A with 2B and still keep coding alive through 2B scripts.
Common pairs and who they tend to suit (our teaching experience)
PairTends to suitWatch out for
2A and 2CAnalytical students heading towards computing degreesTwo heavy written-logic papers; timing practice matters
2A and 2BStudents who like structure and visible productsSQL appears in both, so keep the database basics sharp
2B and 2CBuilders who want to code in more than one styleTwo 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

How does thinking differ between 2A and 2C?

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?

  1. Ask the question in words. The student writes it as a plain sentence before touching either language.
  2. Say it in SQL (2A). Join the two tables on the student ID, group by form, keep groups whose total reaches 60 with HAVING, and sort. The database decides how to do it.
  3. Find the missing student. An inner join silently drops a student with no sessions. A LEFT JOIN, then a test for a missing match, finds them. The EDB guide lists outer joins for exactly this reason.
  4. Say it as an algorithm (2C). Walk the sessions once, add each minute count to its form's total, collect the IDs in a set, filter, then sort. Now the student decides every step.
  5. Compare. Both routes must print the same lines. When they do not, the bug is in the student's reasoning about the data, which is what we want to find.
One question in SQL and in a Python loopPython
# 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.

OutputOutput
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.

What the student learns

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.

And 2B?

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

When are the HKDSE ICT electives taught?

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.

Core first, options later

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.

What that means for a tutor

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.

Example lesson times on the Hong Kong and India clocks
Hong KongIndiaWho it suits
4:30 pm, weekday2:00 pmStudents with an early finish
9:00 pm, weekday6:30 pmA late slot after dinner
3:00 pm, Saturday12:30 pmA 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

How do we measure progress in an elective?

Our own milestones for the Elective Part. They are a teaching tool and do not stand for any HKEAA level.

Elective milestones we use
Milestone2A2B2C
FoundationsKeys and integrity named in examplesClient, server, port and request explainedArrays, loops and functions written fluently
Core skillJoins and grouping written correctlyA form validated on the client and the serverSearches and sorts written and traced
DesignER diagram turned into tables in 3NFA small multi-page site with shared CSSStack, queue and linked list in arrays
Exam formStructured questions done in timeScript reading and completion done in timeCode completion and tracing done in time

For students

Pick the elective you would happily practise on a Sunday.

Say the query in words before you write it.

For parents

Ask the school which electives it offers before anyone books lessons.

Monthly notes from the mentor show progress in each elective separately.

More courses

Nine more courses that sit beside the electives

All live and in English, and one to one for students in Hong Kong.

I

For 2C students

Ages 13 to 18

HIE / 2C / 01

Python for Teens

The language most 2C students use, in depth.

Open the syllabus

HIE / 2C / 03

Problem Solving for Teens

Data structures past the syllabus.

Open the syllabus
II

For 2B students

Ages 13 to 18

HIE / 2B / 01

HTML and CSS for Beginners

Page structure and style sheets from scratch.

Open the syllabus

HIE / 2B / 02

Backend Development for Teens

Server-side code and databases together.

Open the syllabus

HIE / 2B / 03

Frontend Development for Teens

Interfaces that behave well for users.

Open the syllabus
III

For data minds

Ages 13 to 18

HIE / DA / 01

Data Science for Teens

Tables of data analysed in Python.

Open the syllabus

HIE / DA / 02

AI and Machine Learning for Teens

Where well-designed data leads next.

Open the syllabus

HIE / DA / 03

IGCSE Computer Science 0478

For students switching from the Cambridge route.

Open the syllabus

How lessons run

How do elective lessons run from Hong Kong?

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.

Real tools

Queries run on a real database, pages in a real browser.

Both electives

Lessons alternate between the student's pair.

Our own questions

Every exercise is written by us in the DSE style.

Paper 1 kept warm

Short compulsory-part reviews in every lesson.

SBA kept out

School SBA files are never opened in lessons.

Same mentor

One mentor for both electives where possible.

Student work

Projects by our students

Built by learners on our longer courses; browse the rest on student labs.

NutriLife AI nutrition coach project screenshot

AI and ML

NutriLife

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

by Bhavya · Open it

Misti AI chatbot for maths and coding screenshot

AI and ML

Misti

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

by Harshit · Open it

GuardianX AI internet safety assistant screenshot

AI and ML

GuardianX

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

by Vivaan · Open it

SkyCast weather forecast application screenshot

Web app

SkyCast

A weather forecasting site with live conditions for any location.

by Krish

Fees

Fees for one-to-one elective tutoring

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

  • A free first class to talk through the electives
  • A short SQL or coding warm-up
  • No card needed to book
Book it

One to one

$1,200 HKD

a month, eight live classes

  • A mentor who teaches both of your electives
  • Paper 1 support alongside
  • Times chosen around your school week
Start here

What families say

Rated 4.9 across 547 Google reviews

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

HKDSE ICT electives: questions and answers

How many electives do I take?

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.

How much is Paper 2 worth?

Paper 2 is 25% of the subject mark and lasts 1 hour 30 minutes. Paper 1 is 55% and the SBA 20%.

Is there an elective D?

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.

Which elective is easiest?

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.

Can I choose electives my school does not teach?

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.

Which programming language does 2C use?

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.

Are lessons in English?

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.

Are lessons one to one?

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.

When can lessons happen?

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.

Will you help with the SBA for my elective?

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.

How are fees paid?

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

More for Hong Kong ICT students

Other pages on the same subject and nearby ones.

Every Hong Kong class

All our coding, AI and maths for Hong Kong.

HKDSE ICT course

Both papers and all three electives.

Data structures and algorithms

More depth behind 2C.

AI and machine learning in Hong Kong

Where data skills can lead.

IB Computer Science tuition

The IB route, for comparison.

How we teach

A look inside a live lesson.

More pages for Hong Kong

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

Book a free class about the electives

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.

Free, with no card and no contract.

Want a class sooner? Book a priority demo

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

Keep exploring Modern Age Coders

Related courses and guides

Learn more

Free resources

From the blog

Start here

Free classPriority demoCall us