1/22
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
define variable + (constant)
a named location in memory, holds value, can (not) change
function for length + printing parts of a string
str.length
str.substring(start, length)
str.left(n)
str.right(n)
function to change case of string
.upper
.lower
define algorithm
a set of instructions for solving a problem
abstraction
removing unnecessary detail from a problem so you can focus on the essential components
decomposition
breaking large problems into smaller sub-problems until they are manageable
define algorithmic thinking
solving problems using sequences of steps that lead to a solution (algorithm)
sequence
statements are executed one by one in the order they are written
selection
choosing different paths in a program based on a decision
iteration
repeating parts of a program
what are the 3 boolean operators
and, or, not
5 data types + definitions
string - collection of characters
boolean - true/ false
integer - whole number
real - fractional number
character - single unit of text
switch case start + end
switch :
case “ “ :
case “ “ :
default:
endswitch
what are for loops for + syntax
count controlled loops - specific number of times
for
next
what are while loops for + syntax
condition controlled loop - while a condition is true
while
endwhile
what are do until loops for + syntax
condition controlled loop - until a condition is true
do
until
function v variables
functions return values but procedures do not
why use subroutines (4)
breaks large problems into self contained units
cuts down development time
re-used in multiple programs
program maintenance easier
local v global variable
global = accessible anywhere in program
local = only in subroutine
what is an array
allows you to hold many items of data in 1 identifier
fixed length
3 things needed to take data from file
open file
read/ write from file
close file
ocr language to learn for files
newFile(“ “)
= open(“ “)
.writeLine(“ “)
.readLine()
.close()
.endOfFile()
how does the file format work + which file format is used
stores each record on new line + each field is separated by commas
CSV