Back to marketplace

Programming Concepts

No description yet. This curated deck is ready for daily study.

Total cards: 20•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (20)

#1
Front (Question)

What is an algorithm?

Back (Answer)

A step-by-step set of instructions used to solve a problem or perform a task.

#2
Front (Question)

What is a variable?

Back (Answer)

A named storage location that holds a value which can change while the program is running.

#3
Front (Question)

What is a constant?

Back (Answer)

A named value that does not change while the program is running.

#4
Front (Question)

What is sequence in programming?

Back (Answer)

The order in which instructions are executed, one after another.

#5
Front (Question)

What is selection in programming?

Back (Answer)

Making decisions in code using conditions (e.g., if, elif, else).

#6
Front (Question)

What is iteration in programming?

Back (Answer)

Repeating a set of instructions — can be a fixed number of times (for) or while a condition is true (while).

#7
Front (Question)

What is a data type?

Back (Answer)

A classification of data which tells the computer how the programmer intends to use it (e.g., integer, string, boolean).

#8
Front (Question)

What are the common data types in Python?

Back (Answer)

• Integer (int): whole numbers • Float: numbers with decimal places • String (str): text • Boolean (bool): True or False

#9
Front (Question)

What is casting in programming?

Back (Answer)

Changing the data type of a value (e.g., int(“10”) to turn a string into an integer).

#10
Front (Question)

What are the comparison operators in Python?

Back (Answer)

• == (equal to) • != (not equal to) • < (less than) • > (greater than) • <= (less than or equal to) • >= (greater than or equal to)

#11
Front (Question)

What are logical operators in Python?

Back (Answer)

• and: True if both conditions are true • or: True if at least one condition is true • not: Reverses the condition (True becomes False)

#12
Front (Question)

What is a subroutine?

Back (Answer)

A block of code that can be called and reused — either a function or a procedure.

#13
Front (Question)

What is the difference between a function and a procedure?

Back (Answer)

• Function: returns a value • Procedure: performs an action but doesn’t return a value

#14
Front (Question)

What are the advantages of using subroutines?

Back (Answer)

• Avoids repetition • Makes code easier to read and test • Allows code reuse • Makes programs easier to maintain

#15
Front (Question)

What is the purpose of comments in code?

Back (Answer)

To explain what the code does — useful for documentation and understanding by others (and yourself).

#16
Front (Question)

What is a syntax error?

Back (Answer)

An error in the code that breaks the rules of the programming language — prevents the program from running.

#17
Front (Question)

What is a logic error?

Back (Answer)

An error in the program’s design that causes incorrect behaviour or output, even though the code runs.

#18
Front (Question)

What is debugging?

Back (Answer)

The process of finding and fixing errors (bugs) in a program.

#19
Front (Question)

What is an IDE?

Back (Answer)

Integrated Development Environment — a software package that provides tools for coding, such as a code editor, debugger, and interpreter/compiler.

#20
Front (Question)

Name three features of an IDE that help programmers.

Back (Answer)

• Syntax highlighting • Error messages and debugging tools • Code completion and suggestions