Back to marketplace

Unit 4- Variables Conditionals, and Functions

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)

Expression:

Back (Answer)

-a combination of operators and values that evaluates to a single value Alternate Definition: A programming statement that can consist of a value, a variable, an operator, or a procedure call that returns a value.

#2
Front (Question)

What do expressions always do?

Back (Answer)

Evaluate/return to a single value!

#3
Front (Question)

What symbol is an assignment operator?

Back (Answer)

=

#4
Front (Question)

Assignment operator definition

Back (Answer)

allows a program to change the value represented by a variable

#5
Front (Question)

Arithmetic operator:

Back (Answer)

part of most programming languages and include addition, subtraction, multiplication, division, and modulus operators (Which we haven’t learned yet)

#6
Front (Question)

Variable:

Back (Answer)

a named reference to a value that can be used repeatedly throughout a program.

#7
Front (Question)

Boolean Value:

Back (Answer)

a data type that is either true or false.

#8
Front (Question)

Comparison Operators:

Back (Answer)

<, >, <=, >=, ==, != indicate a Boolean expression

#9
Front (Question)

Function (Procedure)

Back (Answer)

a named group of programming instructions.

#10
Front (Question)

• Function Call

Back (Answer)

a command that executes the code within a function

#11
Front (Question)

Boolean Expression:

Back (Answer)

evaluates to either true or false

#12
Front (Question)

Concatenation:

Back (Answer)

joins together two or more strings end-to-end to make a new string.

#13
Front (Question)

Conditional Statement:

Back (Answer)

affect the sequential flow of control by executing different statements based on the value of a Boolean expression.

#14
Front (Question)

Evaluate:

Back (Answer)

Expressions are evaluated to produce a single value.

#15
Front (Question)

Logical operator:

Back (Answer)

NOT !, AND &&, and OR ||, which evaluate to a Boolean value.

#16
Front (Question)

Relational operator:

Back (Answer)

used to test the relationship between two variables, expressions, or values. A comparison using a relational operator evaluates to a Boolean value. For example: =, ≠, >, <, ≥, and ≤ -THE SAME AS A COMPARISON OPERATOR

#17
Front (Question)

Selection:

Back (Answer)

determines which parts of an algorithm are executed based on a condition being true or false

#18
Front (Question)

String:

Back (Answer)

an ordered sequence of characters.

#19
Front (Question)

What does getText/getNumber do?

Back (Answer)

Usually used in an onevent, gets input data from a specified UI element

#20
Front (Question)

What does a concatenation operator do?

Back (Answer)

Combines multiple strings into one

#21
Front (Question)

What does a \n new line operator do?

Back (Answer)

creates a new line of text

#22
Front (Question)

what is an assignment operator

Back (Answer)

(=) Gets the value of a variable, and changes the value of a variable in a program

#23
Front (Question)

Comparision operator

Back (Answer)

evaluates whether an expression setting 2 variales equal to each other is true or false (boolean, ==)

#24
Front (Question)

What is an if-else statement?

Back (Answer)

a conditional garunteed exactly 1 of 2 instructions of code will execute