Back to marketplace

2 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 declaration?

Back (Answer)

Declaration is telling the computer what the identifier (name) should be and what type of data should be stored for a variable.

#2
Front (Question)

What is assignment?

Back (Answer)

The allocation of data values to variables, constants, arrays and other data structures so that the values can be stored.

#3
Front (Question)

what is a variable

Back (Answer)

Value that can change during the running of a program. By convention we use lower case to identify variables (eg a=12)

#4
Front (Question)

what is a constant?

Back (Answer)

Value that remains unchanged for the duration of the program. By convention we use upper case letters to identify constants. (e.g. PI=3.141)

#5
Front (Question)

what are data structures?

Back (Answer)

a data structure refers to a way of organizing and storing data in a computer so that it can be accessed and used efficiently. e.g. arrays, 2-D arrays, data types.

#6
Front (Question)

what do we use to show indices in python? e.g. if someone wants to find out the answer to 2^3

Back (Answer)

2 ** 3, which equals 8

#7
Front (Question)

What is input?

Back (Answer)

Input is collecting data, usually through the keyboard it is data sent to a computer to be processed

#8
Front (Question)

What is input in pseudocode and in python?

Back (Answer)

psuedocode: name <— USERINPUT python: name = str(input(“Enter your name: “)) psuedocode: variable = USERINPUT

#9
Front (Question)

What is output?

Back (Answer)

Output is putting data onto the screen, usually as text it is processed info that is sent out from a computer

#10
Front (Question)

What is output in pseudocode and in python?

Back (Answer)

psuedocode: OUTPUT “text” python: print(“text”)

#11
Front (Question)

What are the data types?

Back (Answer)

Character Real String Integer Boolean

#12
Front (Question)

What is Character data?

Back (Answer)

Character data is a single letter of text data Eg. ‘a’

#13
Front (Question)

What is Real data?

Back (Answer)

Real data is decimal numbers. Eg. ‘0.55’

#14
Front (Question)

What is String data?

Back (Answer)

String data is text data (multiple characters). Eg. “Hello”

#15
Front (Question)

What is Integer data?

Back (Answer)

Integer data is whole numbers. Eg. ‘12’

#16
Front (Question)

What is Boolean data?

Back (Answer)

Boolean data is a true or false value. Eg. ‘True’ or ‘False’

#17
Front (Question)

What does the type of data determine?

Back (Answer)

The type of the data determines how it is stored and what you can do with the data.

#18
Front (Question)

What is casting?

Back (Answer)

Casting is the process of converting data from one type to another.

#19
Front (Question)

What are the reasons for casting?

Back (Answer)

One of the most common reasons for casting is output. Output must be formatted as a string, and so we may need to convert a certain piece of data to a string. All input also comes as a string, and must then be converted to other data types.

#20
Front (Question)

How do you cast to a string?

Back (Answer)

Casting to a string can be done by using the str function Eg. str(3) gives “3”

#21
Front (Question)

How do you cast to an integer?

Back (Answer)

Casting to an integer can be done using the int function. Eg. int(3.4) gives 3

#22
Front (Question)

How do you cast to a real?

Back (Answer)

Casting to a real can be done using the real function. Eg. real(“3.4”) gives 3.4

#23
Front (Question)

What are operators?

Back (Answer)

Operators are symbols that represent a specific function within a program

#24
Front (Question)

What are the Arithmetic operators?

Back (Answer)

Integer division Modulus/modulo operator Basic Operators