Hong Kong · Senior secondary · S4, S5 and S6

Coding for S4 to S6 students in Hong Kong

In the senior years, coding stops being a hobby and becomes either an exam subject, a contest or a portfolio for university. We teach Hong Kong S4 to S6 students one to one, live and in English, around the HKDSE calendar: the right language for ICT, the algorithms the elective tests, and honest help with the SBA that never crosses into doing it for you.

Teaching since 2020 · 10,000+ students worldwide · Hong Kong S4 to S6 students learn one to one, in English

Senior secondary in one paragraph

In Hong Kong S4 to S6, coding lives mainly in HKDSE ICT, an elective whose curriculum gives 144 hours to the compulsory part (48 of them on computational thinking and programming) and about 76 hours to two electives, with Python and C++ as the programming languages. The 2027 ICT papers are on Saturday 17 April 2027. Modern Age Coders gives S4 to S6 students live online lessons in English, one to one, from mentors in India and at whatever Hong Kong hour works: programming for ICT, algorithms, M1 or M2 support, HKOI or university projects. The first class is free.

Courses first

Which course should an S4 to S6 student take?

The first fits most DSE ICT students; the second suits those strong enough to go beyond the exam; the third serves students taking M1 or M2 alongside.

Time and structure

How much programming is there in the Hong Kong senior secondary years?

For students who take ICT, a solid amount; for those who do not, very little. ICT is one elective among many, and the EDB's curriculum guide gives each technology elective 10% to 15% of lesson time over the three years.

HKDSE ICT from curriculum to exam: hours, papers and weights
PartHours or weightWhat it holdsSource
Compulsory part144 hoursInformation processing, computer systems, internet, and computational thinking and programming (48 hours)EDB ICT C&A Guide, 2021
Elective partAbout 76 hoursTwo of: databases, web application development, algorithm and programmingEDB ICT C&A Guide, 2021
Paper 155%, 2 hoursMultiple choice (22%) and short and structured questions (33%)HKEAA framework, 2027
Paper 225%, 1 hour 30 minutesAny two of 2A Databases, 2B Web Application Development, 2C Algorithm and ProgrammingHKEAA framework, 2027
SBA20%Two guided tasks, 40 marks; private candidates are exemptHKEAA framework, 2027

Sources: EDB, Information and Communication Technology Curriculum and Assessment Guide (S4 to S6), 2021; HKEAA, 2027 HKDSE ICT assessment framework. Read 23 November 2026. In the 2021 guide's language table, today's cohorts write programs in Python or C++ and queries in SQL.

Who is in these years

The EDB counted 57,297 students in S4, 53,225 in S5 and 50,311 in S6 in mid-September 2025; the largest age groups were 15, 16 and 17 respectively (Student Enrolment Statistics 2025/26).

ICT is a minority choice: 6,251 candidates sat it in 2026, while 58,487 registered for the HKDSE as a whole that year (HKEAA, 2026 results press release; the two figures count different things, so we do not turn them into a percentage).

What that means for a coder

A student who enjoys programming and chooses ICT is in a fairly small group, often with one teacher covering both Python and theory. Questions about a stubborn bug can wait days.

One-to-one lessons fill that gap: the mentor works in the same language as the school, on the same topics, at the speed of the student. For the exam itself in detail, see our HKDSE ICT tutor online page.

S4, S5 and S6

What should an ICT student focus on in S4, S5 and S6?

The compulsory part runs through the three years; the elective takes about one school year; the SBA tasks fall in between. Here is how we usually pace a student taking the exam in April 2027 or later.

A senior secondary plan for programming, against the 2027 HKDSE calendar
WhenAt school, typicallyOur focus, one to one
S4Compulsory part topics; first programsFluent Python or C++: data types, loops, functions, arrays, files
S5Elective chosen and begun; SBA guided tasks startAlgorithms (searching, sorting, merging), dry runs, SBA guidance without writing it
S6, autumnElective finished; mock examsPast-paper style questions, timing, weak topics
S6, spring 2027Written exams begin 6 April 2027; ICT papers Saturday 17 April 2027Short targeted lessons, then stop and rest
AfterResults tentatively Wednesday 14 July 2027University projects or contest work if wanted

Exam dates: HKEAA Circular No. 8 (2027 HKDSE timetable and results date), annex checked against the PDF, read 23 November 2026. The school column is a typical pattern; each school sets its own order. The right-hand column is our plan.

The SBA line we keep

The ICT SBA is two guided tasks on building an information system, marked out of 40 by the HKEAA's framework. We explain design, testing and evaluation, review a student's own plan and ask hard questions about it.

We do not write, code or edit SBA work for anyone, whatever it is called. Our ICT SBA guidance page sets out exactly where that line sits.

Choosing electives

Most schools offer two of the three options, and the student sits both chosen ones in Paper 2. Algorithm and Programming suits students who like code; Databases rewards careful logic; Web Application Development suits builders.

Our guide to the ICT electives compares them. From today, 23 November 2026, the 2027 ICT papers are 145 days away (our count).

A senior secondary lesson, in full

How do you compare sorting algorithms the way DSE ICT asks?

By counting. The EDB's guide for the algorithm elective says: "The sorting algorithms include bubble sort, insertion sort and selection sort." It also asks students to "evaluate the algorithm with respect to efficiency, correctness and appropriateness for a task". This lesson makes efficiency something you can measure.

  1. Dry run by hand. Before any code, the student sorts four marks on paper with bubble sort and writes down each comparison and swap. The guide calls this a dry run.
  2. Instrument the code. The program adds three counters: passes through the list, comparisons and swaps.
  3. Add a flag. A second version stops as soon as a whole pass makes no swap, because then the list is already sorted.
  4. Test three kinds of input. A mixed list of eight marks, a nearly sorted one, and one in reverse order. The student predicts the counts first.
  5. Explain the table. Which input is the worst case, which the best, and when is the flag worth its extra line?
Bubble sort with counters, with and without an early-exit flagPython
# Bubble sort, counted: our own S4 to S6 lesson.
def bubble(marks, stop_early):
    a = list(marks)
    passes = comparisons = swaps = 0
    for end in range(len(a) - 1, 0, -1):
        passes += 1
        swapped = False
        for i in range(end):
            comparisons += 1
            if a[i] > a[i + 1]:
                a[i], a[i + 1] = a[i + 1], a[i]
                swaps += 1
                swapped = True
        if stop_early and not swapped:
            break
    return a, passes, comparisons, swaps

lists = {
    "mixed":         [58, 71, 44, 90, 63, 39, 85, 50],
    "nearly sorted": [39, 44, 50, 58, 63, 71, 90, 85],
    "reversed":      [90, 85, 71, 63, 58, 50, 44, 39],
}
for name, marks in lists.items():
    for stop_early in (False, True):
        result, p, c, s = bubble(marks, stop_early)
        flag = "with flag" if stop_early else "no flag  "
        print(f"{name:13} {flag} passes {p}  comparisons {c:2}  swaps {s:2}")
print("sorted:", bubble(lists["mixed"], True)[0])

The eight marks are invented by us. The program uses plain Python 3 only; run it and you get the lines below exactly. The same logic translates line by line into C++ for students who sit ICT in C++.

OutputOutput
mixed         no flag   passes 7  comparisons 28  swaps 15
mixed         with flag passes 6  comparisons 27  swaps 15
nearly sorted no flag   passes 7  comparisons 28  swaps  1
nearly sorted with flag passes 2  comparisons 13  swaps  1
reversed      no flag   passes 7  comparisons 28  swaps 28
reversed      with flag passes 7  comparisons 28  swaps 28
sorted: [39, 44, 50, 58, 63, 71, 85, 90]

Without the flag, every list costs 7 passes and 28 comparisons, whatever its order. With the flag, the nearly sorted list stops after 2 passes and 13 comparisons. The reversed list is the worst case either way: every comparison is a swap, 28 of each.

Why 28

Eight items need at most 7 passes, with 7, 6, 5 and so on down to 1 comparisons: 28 in all, which is 8 times 7 divided by 2. Double the list and the count roughly quadruples. That is the meaning of "quadratic", and the reason faster sorts exist.

The swaps tell a different story: they equal the number of out-of-order pairs. The nearly sorted list has exactly one, so one swap fixes it, but without the flag the program keeps checking anyway.

Exam habits it builds

Writing a trace table, predicting output before running, and justifying a choice of algorithm in one or two sentences: all three appear in structured questions. Students who have counted operations write sharper answers.

The same counting approach carries over to searching. Our page on DSE ICT programming help covers the Python and C++ traps students meet most.

  1. Insertion sort. Instrument it the same way and run the three lists. Which input does it like best?
  2. Sixteen marks. Predict the no-flag comparison count, then check.
  3. Descending order. Change one character so the program sorts highest first.
  4. In C++. Rewrite the function with arrays and check that the counts match.

Maths alongside

Should a student who codes take M1 or M2?

Many do. The extended maths modules are separate from ICT, but students heading for computing or engineering degrees often take M2, and the algebra and logic help with programming.

The facts

Each module is one paper of conventional questions, 2½ hours, worth 100% of the module (HKEAA, 2027 framework). In 2026, 3,655 candidates sat M1 and 7,979 sat M2 (HKEAA results press release).

In 2027 the extended modules are on Friday 23 April 2027, six days after ICT, and the compulsory maths papers are on Monday 12 April 2027 (HKEAA timetable).

How we fit them together

Some students study ICT and M2 with us in alternate lessons; others keep maths with a school teacher. We never promise a level in either.

Our HKDSE M2 tutor and M1 tutor pages explain each module in depth.

Beyond the DSE

What if an S4 to S6 student is not taking the HKDSE?

Students at international schools usually take IB Diploma or Cambridge A level in Years 12 and 13 instead, and some local-school students code with no exam in mind. Each route wants something slightly different.

Senior secondary coding routes for Hong Kong students and what each asks
RouteWhat it involvesWhere to read more
HKDSE ICTPython or C++, two electives, SBAHKDSE ICT tutor
IB Diploma Computer ScienceNew guide, first assessment 2027, internal assessmentIB CS tutor in Hong Kong
Cambridge A level CSTheory and practical papers, 9618A level CS tutor
HKOI senior groupHeat papers then a C++ programming final; Python "not all tasks"HKOI training
University portfolioA real project with code, tests and a write-upPython course

HKOI wording from its 2026/27 competition rules. We are independent of HKEAA, IB, Cambridge and HKOI, and promise no grades, places or admissions.

English, one to one

Can a DSE student sitting ICT in Chinese learn with an English-speaking mentor?

Yes. The code is identical in either language, and we can match the student's exam terms to the English ones as we go.

Terms both ways

Array, record, trace table, flowchart: the mentor writes each term in English and the student notes the Chinese term their school uses. By S5 most students switch between them easily.

Error messages, documentation and university courses are in English, so the habit pays off well beyond the exam. More in coding classes taught in English.

One to one only

Hong Kong students learn privately with one mentor, who follows their school's order of topics and their SBA timetable.

See every Hong Kong course on our coding classes in Hong Kong page.

Progress

How do we track progress from S4 to S6?

Our own checkpoints, not HKEAA levels or predicted grades.

Senior secondary programming: our checkpoints
CheckpointThe student canUsually
FluencyWrite and debug 50-line programs in the school languageS4
TracingDry run any short program and state its outputS4 to S5
AlgorithmsCode and compare searching and sorting methodsS5
SystemsPlan, test and evaluate a small information systemS5
Exam craftAnswer structured questions in time, with reasonsS6
BeyondBuild a project or contest solution of their ownAny time

For students

Count the work before you call one algorithm better.

If a pass makes no swap, you are done.

For parents

The monthly note names the checkpoint and the next exam milestone.

We tell you plainly if more practice time is needed.

More courses

Nine more courses for senior secondary students

Live, in English, one to one in Hong Kong.

I

Exam routes

S4 to S6

CCD / EXAM / 01

IB DP Computer Science

The new guide, first assessed in 2027.

Open the syllabus

CCD / EXAM / 02

IGCSE Computer Science

0478 for Year 10 and 11 students.

Open the syllabus
II

Deeper code

S4 and up

CCD / CODE / 01

C++ for Teens

For C++ ICT students and contest work.

Open the syllabus

CCD / CODE / 02

Competitive Programming

Judged problems against the clock.

Open the syllabus

CCD / CODE / 03

MySQL for Teens

SQL for the database elective and beyond.

Open the syllabus
III

Portfolio

S5 and S6

CCD / FOLIO / 01

Full Stack Web Development

React and Node, a deployed project.

Open the syllabus

CCD / FOLIO / 02

Data Science for Teens

Analysis and models on real data.

Open the syllabus

CCD / FOLIO / 03

AI Coding Agents for Teens

Agent tools used within their age terms.

Open the syllabus

Timing and setup

When do S4 to S6 students have lessons?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. With the mentor in India, two and a half hours behind Hong Kong year round, even a late-evening slot here is still daytime there.

After school

6 pm in Hong Kong is 3:30 pm in India.

Late evening

A 9 pm lesson is 6:30 pm for the mentor.

Sunday

10 am in Hong Kong is 7:30 am in India.

Your own setup

The editor and language your school uses.

Past-paper style work

Our own questions modelled on the exam format.

One mentor

The same person through to the exam.

Exam season

Extra or shorter sessions in spring.

SBA honesty

Guidance only; the work stays yours.

Monthly report

Progress and next steps for the family.

Student work

Projects from our students

Work from our teen courses; more on the student labs page.

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 senior secondary lessons

You are charged per month, in Hong Kong dollars as shown on the card below, one month at a time; there is no advance payment for the run-up to the exam. Any payment-gateway charge is listed at checkout before you pay.

Free first class

Free

no card required

  • A first lesson at no cost
  • A real ICT-style problem worked through
  • No card to book it
Book it

One to one

$1,200 HKD

a month, eight live classes

  • Private lessons with one mentor
  • Paced to your school and the 2027 dates
  • Times you set
Start here

What families say

Rated 4.9 across 547 Google reviews

Reviews from families on Google, unchanged.

★★★★★

"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

Senior students and parents ask

Coding in S4 to S6: questions and answers

Which programming language does DSE ICT use?

Python or C++, depending on the school. The EDB's 2021 curriculum guide lists both for current cohorts, with SQL for the database option. We teach whichever your school uses.

When are the 2027 ICT papers?

Saturday 17 April 2027, both papers, according to the HKEAA timetable. Written exams start on 6 April 2027, and results are tentatively due on 14 July 2027.

How much is the SBA worth?

In the 2027 framework, 20% of the subject mark: two guided tasks marked out of 40. Private candidates do not take it.

Will you do my SBA for me?

No. We explain, question and review your own plan, but we never write, code or edit SBA work for a student.

Is it too late to start in S5 or S6?

Not if you start with a clear plan. Late starters focus on the topics carrying most marks and on timed practice.

Can you help with M1 or M2 too?

Yes, through our HKDSE maths course, in separate or alternating lessons. We promise no level in any subject.

Are the lessons in English?

Yes, from mentors based in India. Students who sit ICT in Chinese can note the matching Chinese terms as we go. We do not teach in Cantonese or Mandarin.

Are they live and one to one?

Yes, every lesson: one student, one mentor, on video.

When can lessons be?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. India is 2 hours 30 minutes behind Hong Kong all year.

How do fees work?

Monthly, in Hong Kong dollars as displayed, with any gateway charge shown before payment. The first lesson is free.

Related

More for senior secondary students

Exam and route pages.

HKDSE ICT tutor online

The 2027 papers in detail.

ICT elective guide

Choosing two of 2A, 2B and 2C.

ICT SBA guidance

Where help ends and your work begins.

ICT past papers by topic

Where to find them and how to use them.

Coding for S1 to S3

The junior years before the elective.

Coding for 16 year olds

A general guide to this age.

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 · HKDSE ICT and maths: DSE ICT elective guide · 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 lesson for an S4 to S6 student

Tell us your form, your school's ICT language and electives, and any deadlines. In the free lesson you work a real problem with the mentor and leave with a plan to April 2027 or beyond.

See the full syllabus on our HKDSE ICT course page, or read how we teach.

WhatsApp us · +91 91233 66161 · connect@modernagecoders.com

Live, online, one to one, in English, with mentors in India. WhatsApp is fastest.

Free first lesson; no card needed.

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