PROGLANG PREFINAL

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

1/82

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:26 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

83 Terms

1
New cards

Integers

These are numbers devoid of the fractional part

2
New cards

Floating Points or floats

These are numbers that contain or can contain the fractional part

3
New cards

Type

These numbers differ significantly in how they are stored in computer memory and the range of acceptable values. The characteristic of the numeric value that determines its kind, range, and application is called the t______.

4
New cards

Integers

It is a string of digits that make up the number.

5
New cards

Digits

Integers must not be interjected with any characters that are not d_______. For example, the number eleven million one hundred and eleven thousand one hundred and eleven can be written as 11,111,111 or 11.111.111, or even like 11 111 111.

6
New cards

prohibited

This provision gives it readability, especially when the number consists of many digits. However, Python does not accept this as it is p_________.

7
New cards

underscores

What Python does allow, though, is the use of u____________ in numeric literals. Therefore, the number can either be 11111111 or 11_111_111.

8
New cards

minus (-)

Negative numbers in Python are written by adding a m________ such as -11111111 or -11_111_111.

9
New cards

permissible

Positive numbers do not need to be preceded by the plus sign, but it is p____________.

10
New cards

Octal and hexadecimal numbers

These are two (2) additional conventions in Python that are unknown to the world of mathematics.

11
New cards

0O or 0o prefix (zero-o)

It will be treated as an octal value if an integer number is preceded by an ____or ______ prefix).

12
New cards

[0..7]

Octal values must contain digits taken from the ____ range only.

13
New cards

octal

0o123 is an o_______number with a (decimal) value equal to 83. The print() function does the conversion automatically.

14
New cards

83

0o123 is an octal number with a (decimal) value equal to __.

15
New cards

0x or 0X (zero-x)

a number will be treated as a hexadecimal value if it is preceded by the prefix ___ or ______.

16
New cards

hexadecimal

0x123 is a h______________number with a (decimal) value equal to 291. The print() function can also manage these values.

17
New cards

291

0x123 is a hexadecimal number with a (decimal) value equal to ___

18
New cards

print()

This function can manage/convert octal and hexadecimal values.

19
New cards

Float

It is designed to represent and store numbers with a non-empty decimal fraction.

20
New cards

fractional

Float numbers have or may have, a f____________ part after the decimal point.

21
New cards

2.5 and -0.4

For example, two and a half or minus zero point four is read as ____ and ____ by a computer.

22
New cards

commas

It is also important to note that numbers must not contain any c_______. Python does not accept the c_______ as it has its reserved meaning in Python.

23
New cards

zero

Removing the z____ if it is the only digit in front of or after the decimal point is possible. Thus, 0.4 can be written as .4, and 4.0 could be written as 4. and have its type or value unchanged.

24
New cards

point (.)

The p_______ makes a number a float.

25
New cards

E/e

This letter represents exponents incorporated into a number string such as 3E8.

26
New cards

exponents

The letter E/e represents e___________ incorporated into a number string such as 3E8.

27
New cards

integer

The exponent (value after E) has to be an i________, while the base (value in front of the E) may be an integer.

28
New cards

notation

It also must be noted that the chosen form of coding float values does not mean that Python will present it in the same way. This language may sometimes choose a different n_______.

29
New cards

1e-22

For example, the following float literal: 0.0000000000000000000001 will result in _______ when run using the print() function in Python, as it always chooses the more economical form of the number's presentation.

30
New cards

economical form

For example, the following float literal: 0.0000000000000000000001 will result in 1e-22 when run using the print() function in Python, as it always chooses the more e____________ f______ of the number's presentation.

31
New cards

Strings

These are used when processing texts and not numbers.

32
New cards

quotes ("")

A string is incomplete without q_________.

33
New cards

escape character

Assume that words inside a string need to be quoted, such as She screamed, “You need to calm down” at the top of her lungs, which is ironic. There are two (2) possible solutions. The first is based on the concept of the e_______ c___________, which is played by the backslash ().

34
New cards

backslash

The b__________ can escape quotes, too. A quote preceded by a b_________ changes its meaning – it is not a delimiter but just a quote.

35
New cards

apostrophe (')

The second solution is to use an a_____________ instead of a quote.

36
New cards

quote

Either of these characters may delimit strings, but it should be consistent in such a way that: o If a string opens with a quote, it must also be closed with a q____

37
New cards

apostrophe

Either of these characters may delimit strings, but it should be consistent in such a way that: o If a string starts with an apostrophe, it must also end with an a__________

38
New cards

embed

To e________ an apostrophe into a string, there are also two (2) possible ways: Example string: I’m not going to give up. It can be written as: print("I'm not going to give up.") or print('I\'m not going to give up.')

39
New cards

Boolean value

Each time Python is asked if one number is greater than another, it always results in the creation of some specific data, which is a B________ v________.

40
New cards

George Boole

The name “boolean”comes from G________ B_______ (1815-1864).

41
New cards

The Laws of Thought

This work by George Boole contains the definition of Boolean algebra

42
New cards

Boolean algebra

A part of algebra that makes use of only two distinct values: True and False, denoted as 1 and 0

43
New cards

Expressions and Assignment statements

These statements are fundamental to programming.

44
New cards

Expression statement

This statement produces a value.

45
New cards

Assignment statement

This statement stores that value in a variable.

46
New cards

Expression

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

47
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.

48
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.

49
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____.

50
New cards

Arithmetic Expressions

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

51
New cards

Arithmetic Expressions

These expressions are used in scenarios requiring numerical computations.

52
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 (

53
New cards

conditional statements and loops

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

54
New cards

Comparison Expressions

Relational Expressions can also be called as what?

55
New cards

Logical Expressions (or Boolean Expressions)

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

56
New cards

Boolean Expressions

Logical Expressions can also be called as what?

57
New cards

complex

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

58
New cards

Bitwise Expressions

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

59
New cards

AND

(&)

60
New cards

XOR

(^)

61
New cards

NOT

(~)

62
New cards

left shift

(<<)

63
New cards

right shift

(>>)

64
New cards

low-level

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

65
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.

66
New cards

Assignment statements

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

67
New cards

= operator

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

68
New cards

Assignment statements

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

69
New cards

variable name

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

70
New cards

value

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

71
New cards

Augmented Assignment Operators

These operators simplify modifying variables.

72
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.

73
New cards

Augmented Assignment Operators

These operators reduce redundancy in code.

74
New cards

+=

Augmented Assignment Operator: Addition

75
New cards

-=

Augmented Assignment Operator: Subtraction

76
New cards

*=

Augmented Assignment Operator: Multiplication

77
New cards

/=

Augmented Assignment Operator: Division

78
New cards

//=

Augmented Assignment Operator: Floor Division

79
New cards

%=

Augmented Assignment Operator: Modulus (Remainder)

80
New cards

**=

Augmented Assignment Operator: Exponentiation

81
New cards

&=

Augmented Assignment Operator: Bitwise AND

82
New cards

^=

Augmented Assignment Operator: Bitwise XOR

83
New cards
<

Augmented Assignment Operator: Bitwise Left Shift