Prelim Exam Blueprint & Study Plan
Your CP1 prelim covers the first three lessons of this subject — nothing more:
- Lesson 1: Programming Concepts — hardware vs. software, the five-step programming process, syntax vs. logic errors, flowcharts, pseudocode
- Lesson 2: Introduction to C — history, compilation, identifiers, data types, variables, constants, operators, precedence
- Lesson 3: Input/Output and Program Structure —
printf,scanf, format specifiers, escape sequences,conio.hfunctions, the anatomy of a C program
How a Typical CP1 Prelim Is Built
| Question type | Usual share | What it really tests |
|---|---|---|
| Multiple choice | 30–40% | Definitions, history, symbols, "which is valid" |
| True or false | 15–20% | Rules with a twist (keywords, case sensitivity) |
| Evaluate the expression | 15–20% | Integer division, %, precedence, TRUE/FALSE |
| Predict the output | 15–20% | printf field widths, escape sequences, ++ |
| Flowchart / pseudocode | 10–15% | Draw or trace a simple algorithm |
The Memorize List (Non-Negotiable)
If it is in a table in the lessons, it is fair game. Before the exam you should be able to write these from memory:
- Flowchart symbols: oval = terminal, parallelogram = input/output, rectangle = process, diamond = decision, arrow = flow line, circle = connector
- Five steps of programming, in order: define → design → code → test → document
- Format specifiers:
%cchar,%ddecimal integer,%ffloat,%lfdouble,%escientific,%sstring - Escape sequences:
\nnewline,\ttab,\\backslash,\"double quote,\'single quote,\abell - Data types and sizes:
char1 byte,short int2 bytes (−32,768 to +32,767),int4 bytes,float4 bytes,double8 bytes,voidno value - Identifier rules: starts with a letter or
_; then letters, digits,_; no spaces or hyphens; case-sensitive; never a keyword - Precedence ladder:
! ++ --then* / %then+ -then< <= > >=then== !=then&&then||then? :then assignment - C history: BCPL (Martin Richards, 1967) → B (Ken Thompson, 1970, typeless) → C (Dennis Ritchie, 1972, Bell Labs) → Turbo C (Borland, 1987)
Top Mistakes That Cost Prelim Points
- Writing
1.5for3/2— integer division truncates to1. - Forgetting
&inscanf("%d", &num);on fill-in-the-blank items. - Calling
integera keyword — the keyword isint;integeris a valid identifier. - Pairing the wrong flowchart shape (parallelogram is I/O, not process).
- Ignoring field widths —
%5dquestions are graded space by space.
7-Day Study Plan
| Day | Do this |
|---|---|
| 1 | Reread Lesson 1: Programming Concepts. Redraw the six flowchart symbols and the three control structures from memory. |
| 2 | Redo the Lesson 1 practice exercises on paper, then check against the worked solutions. |
| 3 | Reread Lesson 2: Introduction to C. Write the data-type table and precedence ladder from memory, twice. |
| 4 | Redo the Lesson 2 expression evaluations without looking. Every wrong answer: find which precedence rule you broke. |
| 5 | Reread Lesson 3: Input/Output and Program Structure. Hand-trace every printf example, counting spaces. |
| 6 | Take the free 15-item practice set below under time pressure (20 minutes, no notes). |
| 7 | Take a full mock exam under exam conditions, mark it with the answer key, and restudy only the items you missed. |
Light review the night before, sleep, and bring two pens. Kaya mo 'yan — the prelim is the most predictable exam of the semester.
Free Practice Set — 15 Items with Answer Key
Answer all 15 on paper before scrolling to the key. Target: 20 minutes, closed notes. Scope: Lessons 1–3 only.
Items
- Which flowchart symbol represents a decision? a) rectangle b) parallelogram c) diamond d) oval
- TRUE or FALSE: A syntax error is caught during compilation.
- Who designed the C language at AT&T Bell Laboratories in 1972? a) Ken Thompson b) Dennis Ritchie c) Martin Richards d) Borland
- Which identifier is INVALID?
a)
_countb)qty_soldc)2ndYeard)Rating - Evaluate:
11 / 2= ______ - Evaluate:
11 % 2= ______ - Which format specifier reads a
doublewithscanf? a)%db)%fc)%lfd)%e - Write the exact output (mark spaces):
printf("%5d", 42); - TRUE or FALSE:
intandintegerare both C keywords. - Fill in the missing character:
scanf("%d", ___num); - Which escape sequence prints a tab?
- After
x = 10; y = x++;what are the values ofyandx? - Name the three fundamental control structures that can build any program logic.
- What data type is the constant
'A'? - Evaluate:
2 + 3 * 4 % 5= ______
Answer Key
- c) diamond — the diamond is the decision symbol; the rectangle is process, the parallelogram is I/O.
- TRUE — syntax errors break language rules and the compiler catches them; only testing catches logic errors.
- b) Dennis Ritchie — Thompson made B (1970), Richards made BCPL (1967), Borland made Turbo C (1987).
- c)
2ndYear— identifiers cannot start with a digit; the rest are all legal. - 5 — integer division truncates; there is no 5.5 in
intmath. - 1 — modulus gives the remainder of 11 ÷ 2.
- c)
%lf—%fis forfloat; adoubleinscanfneeds%lf. 42— three spaces then 42:%5dright-justifies the number in a field of width 5.- FALSE —
intis a keyword;integeris not (it is actually a valid identifier). &—scanfneeds the address-of operator before a plain variable.\t— backslash-t;\nis newline,\ais the bell.- y = 10, x = 11 — postfix
x++hands over the old value first, then increments. - Sequence, selection, repetition — per Lesson 1, these three are sufficient for any logic.
char— single quotes mean a single character;"A"in double quotes would be a string.- 4 —
*and%share the same level, left to right:3*4=12,12%5=2, then2+2=4.
Scored 12 or better? You are on track. Below that, redo the lesson the missed items came from before trying a full mock. The four full 30-item mock exams below — two prelim and two final, each with a fully explained answer key — are included when you unlock this subject.
Prelim Mock Exam A — 30 Items
ProReviewer — locked
Drills, code labs, and full solutions.
Prelim Mock Exam B — 30 Items
ProReviewer — locked
Drills, code labs, and full solutions.
Prelim Mock Exams — Answer Key with Explanations
ProReviewer — locked
Drills, code labs, and full solutions.
Common Prelim Traps & How to Avoid Them
ProReviewer — locked
Drills, code labs, and full solutions.
Final Exam Blueprint & Rapid Review Sheet
ProReviewer — locked
Drills, code labs, and full solutions.
Final Mock Exam A — 30 Items
ProReviewer — locked
Drills, code labs, and full solutions.
Final Mock Exam B — 30 Items
ProReviewer — locked
Drills, code labs, and full solutions.
Final Mock Exams — Answer Key with Explanations
ProReviewer — locked
Drills, code labs, and full solutions.