
Section A
Part 1: Multiple-Choice Check
Answer these questions first. They focus on Python basics, control flow, data structures, and algorithmic thinking.
Section B
Section B: Coding Fundamentals
These problems are reviewed with the rubric below. They measure input handling, core logic, output format, and code quality.
B1. Sum of Even Numbers
Write a program that reads an integer n, then reads n integers. Print the sum of all even numbers. Example input: 5 / 3 / 8 / 10 / 7 / 2. Example output: 20.
B2. Count Vowels
Write a function count_vowels(s). The function returns the number of vowels in the string. Vowels are a, e, i, o, u, both uppercase and lowercase. Example: count_vowels(‘Hello World’). Output: 3.
B3. Maximum Difference
Read an integer n, then read n integers into a list. Print the difference between the largest and smallest number. Example input: 6 / 10 / 3 / 8 / 20 / 15 / 7. Example output: 17.
B4. Simple Simulation
A player starts with 100 health points. Read an integer n, then read n actions. Each action is hit, heal, or miss. hit decreases health by 10, heal increases health by 5, and miss does not change health. Health cannot go below 0 or above 100. Print the final health. Example input: 5 / hit / hit / heal / miss / hit. Example output: 75.
Section C
Section C: CCC Similar Problems
C1. Pizza Party (J2)
A school is running a pizza party. Each small pizza has 6 slices, and each large pizza has 10 slices. Read the number of small pizzas, the number of large pizzas, and the number of students. Each student needs exactly 2 slices. Print Enough if there are enough slices; otherwise print Not enough. Example input: 3 / 2 / 20. Example output: Not enough.
C2. Balanced Word (J3)
A word is called balanced if the number of vowels equals the number of consonants. Read one lowercase word. Only letters are included. Print Balanced or Not balanced. Example input: banana. Example output: Balanced. Explanation: vowels = 3, consonants = 3.
C3. String Compression (J4)
Read a string and compress consecutive repeated characters. For each group, print the character followed by its count. Example input: aaabbcdddd. Example output: a3b2c1d4. Another example input: abcd. Another example output: a1b1c1d1.
C4. Pair Sum Equals 10 (J5 readiness)
You are given n numbers. Count how many non-overlapping pairs have a sum equal to 10. Each number can be used only once per pair. Example input: 6 / 1 / 9 / 5 / 5 / 7 / 3. Example output: 3. Pairs: 1 + 9, 5 + 5, 7 + 3.
Implementation
Online Coding
Use the embedded Python editor below to solve Section B and Section C problems. You can write and run code directly in the browser.
Placement Guide
How to read your result
- 0-30: Beginner Python
- 31-50: Python Foundations
- 51-70: CCC Junior J1-J2 Ready
- 71-85: CCC Junior J3-J4 Ready
- 86-100: CCC Junior J5 Ready / Advanced
Coding Rubric
- Input Handling: 20%
- Core Logic: 50%
- Output Format: 20%
- Code Quality: 10%