PREFINAL | Expressions and Assignment Statements | PROGLANG

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/40

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:57 AM on 4/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

41 Terms

1
New cards

Expressions and Assignment statements

These statements are fundamental to programming.

2
New cards

Expression statement

This statement produces a value.

3
New cards

Assignment statement

This statement stores that value in a variable.

4
New cards

Expression

It is a combination of values, variables, operators, and function calls that result in a computed value.

5
New cards

building blocks

Expressions are crucial because they form the b________ b________ of logic in programming. Every expression returns a value that can be used within a program.

6
New cards

operands and operators

Expression is any valid combination of o________(values or variables) and o__________(such as +, -, *, /). It is evaluated by Python to produce a value.

7
New cards

multiple operations and function calls

Expressions can be as simple as a single number (10) or as complex as a mathematical formula involving m__________ o______________ and f________ c____.

8
New cards

Arithmetic Expressions

These involve mathematical operations such as addition (+), subtraction (-), multiplication (), division (/), and exponentiation (*).

9
New cards

Arithmetic Expressions

These expressions are used in scenarios requiring numerical computations.

10
New cards

Relational Expressions (or Comparison Expressions)

These evaluate to True or False using comparison operators. These utilize comparison operators like equal to (==), not equal to (!=), greater than (>), less than (

11
New cards

conditional statements and loops

Relational Expressions (or Comparison Expressions) are essential in decision-making processes, such as c____________ s_____________ and l____.

12
New cards

Comparison Expressions

Relational Expressions can also be called as what?

13
New cards

Logical Expressions (or Boolean Expressions)

These use logical operators (and, or, not) to combine Boolean values.

14
New cards

Boolean Expressions

Logical Expressions can also be called as what?

15
New cards

complex

Logical Expressions (or Boolean Expressions) are pivotal in constructing c________ conditional statements.

16
New cards

Bitwise Expressions

These manipulate bits directly using bitwise operators (&, |, ^, ~, <

17
New cards

AND

(&)

18
New cards

XOR

(^)

19
New cards

NOT

(~)

20
New cards

left shift

(<<)

21
New cards

right shift

(>>)

22
New cards

low-level

Bitwise Expressions are commonly used in l____ l________ programming, such as setting flags or manipulating binary data.

23
New cards

setting flags or manipulating binary data

Bitwise Expressions are commonly used in low-level programming, such as s_________ f______ or m_____________ binary data.

24
New cards

Assignment statements

These statements assign a value to a variable using the = operator.

25
New cards

= operator

An assignment statement assigns a value to a variable using the ____ operator.

26
New cards

Assignment statements

These statements allow the storage of values in named memory locations (variables).

27
New cards

variable name

The left-hand side of the assignment operator (=) is the v________ n_____

28
New cards

value

The right-hand side is the v____ to be stored.

29
New cards

Augmented Assignment Operators

These operators simplify modifying variables.

30
New cards

arithmetic, assignment

Augmented Assignment Operators provides a concise syntax to update variable values by combining an a_____________ operation with an a____________ operator, reducing redundancy in code.

31
New cards

Augmented Assignment Operators

These operators reduce redundancy in code.

32
New cards

+=

Augmented Assignment Operator: Addition

33
New cards

-=

Augmented Assignment Operator: Subtraction

34
New cards

*=

Augmented Assignment Operator: Multiplication

35
New cards

/=

Augmented Assignment Operator: Division

36
New cards

//=

Augmented Assignment Operator: Floor Division

37
New cards

%=

Augmented Assignment Operator: Modulus (Remainder)

38
New cards

**=

Augmented Assignment Operator: Exponentiation

39
New cards

&=

Augmented Assignment Operator: Bitwise AND

40
New cards

^=

Augmented Assignment Operator: Bitwise XOR

41
New cards
<

Augmented Assignment Operator: Bitwise Left Shift