Back to marketplace

2.2 Programming Techniques COMPLETE

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

Total cards: 24•Content version: v3•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

Identifier

Back (Answer)

Describe the data being stored

#2
Front (Question)

Short Identifier

Back (Answer)

Easier to spell correctly each time they are used

#3
Front (Question)

Long Identifier

Back (Answer)

Can be used if they are more descriptive e.g. firstName

#4
Front (Question)

True or False: Identifiers can be the same as reserved words

Back (Answer)

False, identifiers cannot be the same as reserved words such as print or while

#5
Front (Question)

Can variables change whilst a program is running?

Back (Answer)

Yes

#6
Front (Question)

Can constants change whilst a program is running?

Back (Answer)

No

#7
Front (Question)

How are values assigned to variables?

Back (Answer)

Values are assigned in assignment statements using the = symbol e.g. firstName = “David”

#8
Front (Question)

How are values assigned to constants?

Back (Answer)

Constants are assigned as cost Pi = 3.142 for example. They can then be used in calculations

#9
Front (Question)

Can identifiers for variables and constants change throughout a program?

Back (Answer)

No - they must be consistent throughout the program

#10
Front (Question)

What is used in camel case?

Back (Answer)

Upper and lower case characters (FirstName or PricePerKilo). The first word can be lower case

#11
Front (Question)

What is used in snake case?

Back (Answer)

Underscores are used to link words (first_name or price_per_kilo)

#12
Front (Question)

What is an assignment?

Back (Answer)

The association of a piece of data with a variable or constant, e.g. index = 0

#13
Front (Question)

Can an assignment be done as an input?

Back (Answer)

Yes (e.g. name = input(“Please enter your name”).

#14
Front (Question)

When can a variable be output?

Back (Answer)

At any time throughout the program

#15
Front (Question)

What is the function of the operator +?

Back (Answer)

Addition

#16
Front (Question)

What is the function of the operator -?

Back (Answer)

Subtraction

#17
Front (Question)

What is the function of the operator *?

Back (Answer)

Multiplication

#18
Front (Question)

What is the function of the operator /?

Back (Answer)

Division

#19
Front (Question)

What is the function of the operator MOD?

Back (Answer)

Modulus division. Returns the remainder after the division of one number by another (26 MOD 4 = 2)

#20
Front (Question)

What is the function of the operator DIV?

Back (Answer)

Quotient division. Returns the quotient or the lowest integer (26 DIV 4 = 6)

#21
Front (Question)

What is the function of the operator ^?

Back (Answer)

Exponential powers of (3^3 = 27)

#22
Front (Question)

MDIBAS - This is an anagram for the order of operations in a calculation. What is the correct order and what does each letter stand for?

Back (Answer)

B - Brackets I - Indices D - Division M - Multiplication A - Addition S - Subtraction

#23
Front (Question)

What is the function of the comparison operator ==?

Back (Answer)

Equal to - checks if two values are equal. Two equal signs are used to distinguish it from assigning a value to a variable

#24
Front (Question)

What is the function of the comparison operator !=?

Back (Answer)

Not equal to - checks if two values are not equal to each other