HL IB Computer Science

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

1/43

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

44 Terms

1
New cards

Primitive Type

basic data types inherent to java:

  • int for integers

  • boolean for true/false values

  • double for decimal numbers

  • char for single characters

  • string for text

2
New cards

Initializing vs Declaring a variable

Declaring a variable means defining its name and type without assigning a value,

while initializing a variable involves assigning a value to it at the time of declaration.

3
New cards

Modulus Operator

written as % or mod and returns the remainder of division between two integers.

4
New cards

Division operator

written as / or div and returns an integer (decimal values are chopped off)

5
New cards

Overflow

When a calculation relies on a number outside the acceptable number range

6
New cards

variable.nextLine/Int/Double()

allows users to input string/int/double values

7
New cards

Class

the template through which objects are creates. formal blueprint for creating objects

8
New cards

Object

variable of a data type that is user defined. every object has a state and behaviour

9
New cards

Instance

A created object with defined attributes

10
New cards

State

the data that is associated with an object or class at a given time

11
New cards
12
New cards

object oriented programming (OOP)

the use of object and class types in programming

13
New cards

concatenation

the process of joining two or more strings together to form a single string. Primitives can be concatenated with string types

14
New cards

Truth Tables

used in logic for comparing boolean expressions

15
New cards

Linear search

an algorithm that searches data sets in a sequential order, checking each value from the 0th index to the end of the data to see what index a specific element can be found at

16
New cards

Selection Sort

a sorting algorithm that swaps the smaller value left in an array with the current index value.

17
New cards

Insertion Sort

A sorting algorithm that shifts the already sorted section of an array to place the current array value in the correct index

18
New cards

Network Protocols

Protocols for sharing data on the internet that define rules and conventions for communication between network devices

19
New cards

Data privacy

the appropriate use of data based on circumstances

20
New cards

data security

the integrity, confidentiality, and availability of data

21
New cards

recursion

an iterative process where a method calls itself

22
New cards

base case

the simplest version of

23
New cards

Binary search

a search that starts at the middle of a sorted array or and eliminates half of the array in teach iteration until the desired value is found or all elements have been eliminated

24
New cards

precondition

assumptions we make about what must be true before a method is called

25
New cards

postcondition

what should be true after a method is called

26
New cards

sequential programming

programs that are executed once through from start to finish without others executing

27
New cards

parallel and distributed programming

completes multiple tasks simultaneously

28
New cards
29
New cards
30
New cards
31
New cards
32
New cards
33
New cards
34
New cards
35
New cards
36
New cards
37
New cards
38
New cards
39
New cards
40
New cards
41
New cards
42
New cards
43
New cards
44
New cards