Programming Concepts

Krish Beachoo

CSEC,NCSE

Aug 9, 2021

Estimated reading time:


Learn about Programming Concepts




Sequence

Sequence is a control structure where instructions are written in the order they should take place.

Looping

Looping or repetition or iteration is a control structure used to repeat a certain process a number of times eg while loop, for loop, repeat-until

Selection

Selection or conditional is a control structure used in problems with instructions to be carried out if a certain condition is met. The choice will depend on whether the condition is true or false. Eg if-then-else

Conditions

Variables

Values that change during the execution of a program.

Constants

Data that do not change during the execution of a program.

Arithmetic, Relational, and Logical Operators

Arithmetic operators are utilized for conducting mathematical operations, such as addition (+), subtraction (-), division (/), and multiplication (*).

Relational operators are employed to compare values and produce results based on the comparison. Examples of relational operators include greater than (>), less than (<), greater than or equal to (>=), less than or equal to (<=), not equal to (<>), and equal to (=).

Logical operators enable the comparison of multiple conditions and yield results based on logical relationships. These operators include AND, OR, and NOT.

Algorithm

An algorithm refers to a step-by-step sequence of clear and precise instructions that, when followed, leads to a solution for a given problem.

Test

Error

Error Detection and Debugging

Error detection and debugging involve the identification and resolution of existing and potential errors within a program. Many programming languages provide tools like debug utilities or debuggers, which aid in detecting syntax errors and locating logic errors.

⚠️ Did you spot an error? Contact Us!
Please include the title of the note, the respective Notebook and the error to speed up the process.

Read Next

Dont't forget to check out our Instagram Page!
edukatte_tt