March 2015 Flashcards
What is a selection
A question is asked which produces a Boolean value and the action that follows depends on the answer
Define iteration
Executing the same set of instructions are given number of times or until a specified result is obtained
What datatypes could a variable be
Integer-whole number
String-any characters including none
Boolean-true or falls
Float (short for floatingpoint) also called real-decimal number
What are the different types of errors?
Syntax error - computer doesn’t understand what is written
Runtime error-the syntax is correct but the computer does not understand the instruction
Logic error-the code runs but the result is not what was expected
Less than
Less than or equal to
>
Greater than
> =
Greater than or equal to
==
Equal to
!=
Not equal to
What does a Boolean express produce
True or false
Boolean expressions-and
Both sides of the operator must be true for it to be considered true
Boolean expressions-or
Only one statement needs to be true for it to be considered true
Boolean expressions-not
Not turn the true value to false and a false value to true
What is a database
It is a structured collection of data