To pass this unit, please study the 21 vocabulary words below.
- argument
- array
- callback
- constant
- for loop
- function
- global scope
- goto statement
- if else statement
- local scope
- operand
- operator
- parameter
- procedure
- regex (regular expression)
- statement
- string
- subroutine
- switch
- variable
- while loop
USA
UK
USA
UK
a value passed to a function when it is called
USA
UK
"Value1 and value2 are both arguments in the expression sum(value1, value2)."
USA
UK
USA
UK
a data structure such as a variable that holds other variables in a particular order; for example: $a = ($b, $c, $d)
USA
UK
"The programmer decided to store all her variables in an array, so she could loop through them and perform a callback function."
USA
UK
USA
UK
code that is passed as an argument to other code
USA
UK
"Programmers use callbacks in tedious situations such as asynchronous programming or running an array of values through a function designed to take a string."
USA
UK
USA
UK
a symbol used to represent data that cannot be changed once the program is running
USA
UK
"The value of pi does not change, therefore it should be represented by a constant."
USA
UK
USA
UK
a sequence of instructions set to be repeated a specified amount of times until a condition is met
USA
UK
"The student programmed the for loop to run until the value of "x" was greater or equal to 100."
USA
UK
USA
UK
a named sequence of procedural code statements that perform a certain task
USA
UK
"The CS student spent all night working on a function to compute the average rainfall in Alaska."
USA
UK
USA
UK
usable anywhere in a program
USA
UK
"The veteran programmer said using global scope variables is easier but sometimes less secure."
USA
UK
USA
UK
an instruction in older procedural programming languages that specifies that the instruction execution is to jump to a specified location, normally a line number
USA
UK
"The professor said that using goto statements is considered bad practice with the possible exception of breaking out of nested loops."
USA
UK
USA
UK
a decision making process wherein a block of code may or may not be executed based on pre-existing condition
USA
UK
"The professor told us the heart of the program logic was simply a long line of if/else statements."
USA
UK
USA
UK
usable only in a limited section of program text such as a function
USA
UK
"For security reasons the bank password variable had a local scope and was confined to a single function."
USA
UK
USA
UK
a value from which an operator derives another value
USA
UK
""2" and "1" are examples of an operand in the equation "2 + 1 = 3"."
USA
UK
USA
UK
a symbol that represents an arithmetical calculation
USA
UK
"The plus sign (+) is the operator in the mathematical expression "1 + 3 = 4"."
USA
UK
USA
UK
a variable specified inside a function or subroutine definition which may be set by the code which calls it
USA
UK
"The program returned a fatal error because a required parameter was missing."
USA
UK
USA
UK
a series of programming steps beginning in a specific place and ending in a specific place that brings about a certain desired outcome
USA
UK
"It took the programmer a week to code the required procedure but it fulfilled its purpose well for many years."
USA
UK
USA
UK
a string that describes or matches a set of strings, according to certain syntax rules
USA
UK
"Search engines use regular expressions to match many kinds of similar words, even misspelled ones."
USA
UK
USA
UK
a sentence of code in a programming language, usually ending with a semi-colon
USA
UK
"A computer program is simply a collection of valid statements which provide a result."
USA
UK
USA
UK
a series of letters and/or numbers
USA
UK
"The teacher asked us to type a search string into the Google text box and press "enter"."
USA
UK
USA
UK
an independent block of code separate from the main program, which performs a specific task necessary to the program
USA
UK
"The Pascal software program was buggy due to an incorrectly performing subroutine."
USA
UK
USA
UK
a block of code or function causing a program to change its default behavior
USA
UK
"The programmer preferred using a switch statement to many if/else statements."
USA
UK
USA
UK
a symbol used to represent data which can be changed while the program is running
USA
UK
"Without variables, programs would not be able to accept user input."
USA
UK
USA
UK
a sequence of instructions set to continue until a certain expression is false
USA
UK
"The while loop continued until the value of "x" was greater than "y"."