COMPUTER PROGRAMMING TECHNIQUES

Master Programming skills in 5 to 10 Minutes

Algorithms · Pseudocode · Flowcharts · Logic Gates · QBasic · Python · MATLAB · JavaScript

Explore Curriculum

📚 LEARNING PATH

🧠

1. Logic Foundations

  • Algorithms & problem solving
  • Pseudocode conventions
  • Flowchart symbols & tools
  • Von Neumann architecture
  • Number systems (bin/hex/dec)
⚙️

2. Core Concepts

  • Variables & data types
  • Operators & expressions
  • Input/output techniques
  • Type conversion & coercion
  • Constants & scope
🔄

3. Control Structures

  • Conditional statements (if/else, switch)
  • Loops (for, while, do‑while)
  • Nested logic & truth tables
  • Short‑circuit evaluation
📊

4. Advanced Logic

  • Arrays & collections
  • Functions & recursion
  • Searching & sorting algorithms
  • Logic gates (AND, OR, XOR, NAND)
🌐

5. Language Labs

  • QBasic: first steps, graphics
  • Python: basics to OOP
  • MATLAB: matrices & scripting
  • JavaScript: DOM, async, full‑stack
📝

6. Exam Prep & Problem Solving

  • 20 essential definitions
  • Common algorithms (prime, reverse, sum)
  • Flowchart analysis
  • Practice questions & solutions
  • Compiler vs interpreter, debugging

⬆️ Each cluster opens a complete interactive lesson ⬆️

📚 Rapid Revision – Core Concepts

Over 50 essential Q&A – based on exam patterns

What is a variable?
A named memory location that stores data which can change during execution.
age = 25
Variable vs constant?
Variable: value changes (int age)
Constant: value fixed (final double PI)
Local vs global variable?
Local: inside function, limited scope.
Global: outside all, accessible everywhere.
Variable naming rules?
Start with letter/underscore, no spaces, case‑sensitive, not keywords.
✔ totalScore ✘ 2score
Common data types?
Integer, Float, String, Boolean.
int a=5; float b=3.14; String s="Hi"; bool flag=true;
Integer vs Float?
Integer – whole numbers (5). Float – decimal (5.7).
Type conversion examples?
Implicit: double x = 5;
Explicit: int y = (int)5.7;
What is an array?
Collection of same‑type elements stored contiguously, accessed by index.
int numbers[5] = {1,2,3,4,5};
Array types?
1D, 2D, multi‑dimensional.
int matrix[3][3];
Logical operators?
AND (&&), OR (||), NOT (!), XOR.
Boolean operators?
Operate on true/false – same as logical operators.
How loops work?
Repeat code until condition false.
while(i<5){ i++; }
Loop types?
for, while, do‑while, foreach.
Sum first 10 natural numbers?
sum = 0
for i in range(1,11): sum+=i
print(sum)
Multiplication table?
n = int(input())
for i in range(1,13):
print(n,'x',i,'=',n*i)
Reverse digits?
n = input()[::-1]
print(n)
Prime number check?
prime = True
for i in range(2,n):
if n%i==0: prime=False
What is a flowchart?
Graphical representation of an algorithm using standard symbols.
Flowchart symbols?
Oval (start/stop), rectangle (process), parallelogram (I/O), diamond (decision).
Algorithm definition?
Step‑by‑step procedure to solve a problem.
Compiler vs interpreter?
Compiler: whole program at once (C++).
Interpreter: line‑by‑line (Python).
Syntax vs logical error?
Syntax: grammar mistake.
Logical: wrong output, runs but incorrect.
What is debugging?
Process of finding and fixing errors in code.
What is a pointer?
Variable that stores memory address of another variable.
int *p = &x;
Python: declare integer?
age = 10 (dynamic typing).
Java int vs Integer?
int: primitive; Integer: wrapper class (object).

Download Revision Pack

🎮 Live Code Playground

Write and run JavaScript directly. Others simulated.

// Write your JavaScript here function greet(name) { return "Hello, " + name + "!"; } console.log(greet("Krane"));
Output will appear here
# Python simulated
[simulated]
CLS: PRINT "Hello"
[simulated]
disp("Hello")
[simulated]

📖 Comprehensive Syllabus

Based on SDEV 120, CCINCOML, and standard pedagogy.

Problem Solving

  • Algorithm development
  • Pseudocode
  • Flowcharting

Data & Operations

  • Binary/hex
  • Variables
  • Operators

Control Flow

  • Selection
  • Iteration
  • Boolean gates

Modularity

  • Functions
  • Scope
  • Recursion

Data Structures

  • Arrays
  • Searching/sorting

Languages

  • QBasic, Python, MATLAB, JS
👨‍🏫
Udoinyang, M. Clement (Mr. Krane)
CEO, Krane Digital Hub

Software developer, web designer, teacher, businessman. Education: PC Support – Springwood; Computer & Robotics Education – University of Uyo, Nigeria.

"Every expert was once a beginner – I build bridges from logic to code."

Ikot Ekpene, Akwa Ibom State, Nigeria

📥 Complete Course Materials

Full Textbook PDF