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)

Assignment is changing the value stored inside a variable. The value stored must match the data type of the variable

#3
Front (Question)

What is input?

Back (Answer)

Input is collecting data, usually through the keyboard

#4
Front (Question)

What is input in pseudocode?

Back (Answer)

OUTPUT “enter [something]..” variable = USERINPUT

#5
Front (Question)

What is output?

Back (Answer)

Output is putting data onto the screen, usually as text

#6
Front (Question)

What is output in pseudocode?

Back (Answer)

OUTPUT “text”

#7
Front (Question)

What are the data types?

Back (Answer)

Character Real String Integer Boolean

#8
Front (Question)

What is Character data?

Back (Answer)

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

#9
Front (Question)

What is Real data?

Back (Answer)

Real data is fractional numbers. Eg. ‘0.55’

#10
Front (Question)

What is String data?

Back (Answer)

String data is text data. Eg. “Hello”

#11
Front (Question)

What is Integer data?

Back (Answer)

Integer data is whole numbers. Eg. ‘12’

#12
Front (Question)

What is Boolean data?

Back (Answer)

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

#13
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.

#14
Front (Question)

What is casting?

Back (Answer)

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

#15
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.

#16
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”

#17
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

#18
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

#19
Front (Question)

What are operators?

Back (Answer)

Operators are symbols that represent a specific function within a program

#20
Front (Question)

What are the Arithmetic operators?

Back (Answer)

Integer division Modulo operator Basic Operators

#21
Front (Question)

What is the integer division operator?

Back (Answer)

The integer division operator returns the quotient (whole part) of a division. Eg. 5 DIV 2 would give 2.

#22
Front (Question)

What is the Modulo operator?

Back (Answer)

The modulo operator gives the remainder of the division of two numbers. Eg. 5 MOD 2 would be equal to 1.

#23
Front (Question)

What are the basic operators?

Back (Answer)

Addition is done using a + sign. Subtraction is done using a - sign. Division is done using a / sign. Multiplication is done using a * sign. Exponentiation is done using a ^ sign.

#24
Front (Question)

What is the relational operator?

Back (Answer)

Relational operators compare two values, and produce a True or False value.