Back to marketplace

Programming

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

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

Card preview (24)

#1
Front (Question)

What is a data type?

Back (Answer)

Specification is what type of value a variable has.

#2
Front (Question)

What are the five data types?

Back (Answer)

Integer Real/float Character String Boolean

#3
Front (Question)

What is an integer?

Back (Answer)

A numerical data type for whole numbers 2/4 bytes

#4
Front (Question)

What is a real/float ?

Back (Answer)

A numerical data type for decimal numbers 4/8 bytes

#5
Front (Question)

What is a character?

Back (Answer)

A single alphanumerical symbol 1 byte

#6
Front (Question)

What is a string?

Back (Answer)

A data type for one or more alphanumerical characters. * can be a number or string 1 byte for each character

#7
Front (Question)

What is a Boolean?

Back (Answer)

A data type that can only take one of two values - TRUE or FALSE 1 bit-1 byte

#8
Front (Question)

What is the difference between constants and variables?

Back (Answer)

Variables can be changed throughout out the program.

#9
Front (Question)

What is iteration?

Back (Answer)

Loops controlled by conditions

#10
Front (Question)

What are types of indefinite iteration?

Back (Answer)

Only rely on a condition(can be infinite): Repeat until- condition at end, run at least once While- condition at the start of loop Do while

#11
Front (Question)

What is selection?

Back (Answer)

Causes the program to make a choice and flow in a given direction

#12
Front (Question)

What is a variable?

Back (Answer)

A named piece of memory that holds a value , can change as the program is running

#13
Front (Question)

What is a constant?

Back (Answer)

A named piece of memory where the value cannot be changed while a program runs

#14
Front (Question)

What is a type of selection?

Back (Answer)

An if else statement

#15
Front (Question)

What is definite iteration?

Back (Answer)

A loop that repeats a set number of times - usually a for loop

#16
Front (Question)

What is a nested statement ?

Back (Answer)

An iteration or selection made up of multiple statements inside each other

#17
Front (Question)

What is the need for meaningful identifiers?

Back (Answer)

Suitable names for variables, makes it easier for the next person to work on the code to understand

#18
Front (Question)

How do you find the length of a string?

Back (Answer)

LEN(string) *starts from 1 🐍len(string)

#19
Front (Question)

How do you find the position of a string?

Back (Answer)

POSITION(string,character) *includes the 0 🐍 string.index(‘x’)

#20
Front (Question)

How do you take a certain part of the string?

Back (Answer)

SUBSTRING(x ,y ,string) *includes the 0 *does include last number 🐍string[x : y] *does not include last number

#21
Front (Question)

How do you concatenate strings?

Back (Answer)

+ Does not include spaces Normally done with variables 🐍everything has to be a string

#22
Front (Question)

How do you change one data type to another?

Back (Answer)

STRING_TO_INT (“your mom”) STRING_TO_REAL (“your mom “) INT_TO_STRING (69) REAL_TO_STRING (9.58) 🐍 str() int() float()

#23
Front (Question)

How do you get the quotient (whole number)?

Back (Answer)

DIV 🐍//

#24
Front (Question)

How do you get the remainder?

Back (Answer)

MOD 🐍%