Freeway Logo
Login

Create an account to unlock exclusive features.

Freeway Study v20.0

Programming Principle And Algorithm – BCA Semester 1 Notes & PYQs

Explore CCSU / BCA / SEMESTER-1 syllabus and study material.

Video 1 of 22

Video Playlist

22 videos • 0 watched

Progress0/22 videos

About Programming Principle And Algorithm

Programming Principles and Algorithms is where most BCA students write their first real programs. It teaches the C language along with something more important: how to break a problem into clear steps before writing any code. Almost every later programming subject, including data structures, C++, Java and Python, builds on what you learn here.

What the units cover

  • Introduction to C: the history and features of C, the structure of a C program, compiling and running it, data types, variables, constants and keywords, and input and output using printf and scanf.
  • Operators: arithmetic, relational, logical, assignment, increment and decrement, bitwise and conditional operators, with precedence and associativity.
  • Control structures: if, if-else, nested if and switch for decisions; while, do-while and for loops; and break, continue and goto.
  • Introduction to problem solving: understanding a problem, writing an algorithm, drawing a flowchart and writing pseudocode before coding.
  • Simple arithmetic problems: classic programs such as swapping two numbers, finding the largest of three numbers, factorial, Fibonacci series, prime numbers, sum of digits and reversing a number.
  • Functions: defining and calling functions, arguments and return values, call by value, scope of variables, and recursion.

How to study it

You cannot learn programming by reading. Type every program yourself, run it, then change it: what happens if the input is zero, negative or very large? Fixing your own errors is how you actually learn C.

For written exams, practise writing programs on paper too. Use proper indentation, declare every variable, and add a line of comment for the logic. When asked for an algorithm or flowchart, follow the standard flowchart symbols and number your steps.

Topics worth practising

  • Structure of a C program and data types
  • Operator precedence questions, such as predicting the output of an expression
  • Difference between while and do-while loops
  • Programs for factorial, Fibonacci, prime check and palindrome
  • Recursion, with factorial as an example
  • Algorithm and flowchart for a simple problem

Use the notes and video lectures on this page to learn each concept, and the previous year papers to practise writing complete programs on paper.

Programming Principle And Algorithm syllabus – units covered

  1. Introduction To C Language
  2. Operators
  3. Control Structures
  4. Introduction To Problem Solving
  5. Simple Arithmetic Problems
  6. Functions

Study material available for Programming Principle And Algorithm

Be a Part of Our Learning Community

Share your notes to help others succeed, or ask us anything you're stuck on – we're here to support you.