Chapter 1

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/27

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

28 Terms

1
New cards

Value

Data that cannot be simplified further and belongs to some type of data.

2
New cards

Types

A defining shape of data, and it describes a set of valid values which follow a set of restrictions.

3
New cards

Operators

Describe computations which can be performed on a set number of values of a given type.

4
New cards

Expressions

A set of values and operators which evaluate to become a single value.

5
New cards

Booleans

Represents the logical value true or false

6
New cards

! (NOT)

Bool → Bool

The logical negation operator. It flips true to false, and vice versa.

7
New cards

&& (AND)

(Bool, Bool) → Bool

Boolean operator that return true only when both operands are true. Otherwise it returns false.

8
New cards

|| (OR)

(Bool, Bool) → Bool

A Boolean operator that returns true when either operand is true. Otherwise, it returns false.

9
New cards

Ints (integer)

A whole number who’s value is between -2,147,483,68 and 2,147,483,647.

10
New cards

uint (unsigned Int)

A positive whole number which is a value between 0 and 4,294,967,295.

11
New cards

Addition of Integers

(int, int) → int

This returns the sum of two integers

12
New cards

Subtraction of Integers

(int, int) → int

This returns the difference between two integers.

13
New cards

Multiplication of Integers

(int, int) → int

This returns the product of two integers.

14
New cards

Integer Division

(int, int) → int

This returns the quotient of two integers, discarding any remainder.

15
New cards

Modulo (%)

(int, int) → int

This returns the remainder of a division between two integers.

16
New cards

Floating-Point Representation

A type which defines a valid range for its whole value, along with a precision which determines what fractionals are possible.

17
New cards

Double

A 64-bit floating-point number used to approximate real numbers. It has a range of approximately ±1.7976931348623157E+308 and a precision of 15-16 decimal digits.

18
New cards

Float

A 32-bit floating-point number used to approximate real numbers. It has a range of approximately ±3.4028235E+38 and a precision of 7 decimal digits.

19
New cards

Decimal

A 128-bit floating-point number designed for precise representation of decimal fractions. It has a range of approximately ±7.9228162514264337593543950335 and a precision of 28-29 decimal digits.

20
New cards

Comparison

An operation that takes two values and produces a boolean by checking their relationship.

21
New cards

LessThan Comparison (<)

(number,number)→bool

This returns true if the first number is smaller than the second.

22
New cards

Greater Than Comparison (>)

(number,number)→bool

This returns true if the first number is larger than the second.

23
New cards

Less Than or Equal To Comparison (<=)

(number,number)→bool

This returns true if the first number is smaller than or equal to the second.

24
New cards

Greater Than or Equal To Comparison (>=)

(number,number)→bool

This returns true if the first number is larger than or equal to the second.

25
New cards

Equals Comparison (==)

(number,number)→bool

This returns true if both numbers represent the same value.

26
New cards

Not Equals Comparison (!=)

(number,number)→bool

This returns true if the numbers represent different values.

27
New cards

Char

A 16-bit value type representing a single text character with a value between 0 and 65,535.

28
New cards

Character Addition

(char,int)→int

This returns the numeric result of adding a character’s code and an integer