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