March 2015 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a selection

A

A question is asked which produces a Boolean value and the action that follows depends on the answer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define iteration

A

Executing the same set of instructions are given number of times or until a specified result is obtained

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What datatypes could a variable be

A

Integer-whole number
String-any characters including none
Boolean-true or falls
Float (short for floatingpoint) also called real-decimal number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the different types of errors?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A

Less than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A

Less than or equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

>

A

Greater than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

> =

A

Greater than or equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

==

A

Equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

!=

A

Not equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does a Boolean express produce

A

True or false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Boolean expressions-and

A

Both sides of the operator must be true for it to be considered true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Boolean expressions-or

A

Only one statement needs to be true for it to be considered true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Boolean expressions-not

A

Not turn the true value to false and a false value to true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a database

A

It is a structured collection of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a table in a database

A

It is a collection of data about the specific entity

17
Q

What is a flat file database

A

It stores everything in the same place - a con of this can be data and consistency

18
Q

What is a relational database

A

It stores data and related tables

19
Q

What is a record in a table

A

It is a row. It contains related fields. One student would be a record.

20
Q

What is a function

A

A piece of reusable code

21
Q

What is an array

A

A group of data items of the same thing to type which is stored under one identifier in contiguous memory location

22
Q

What is exp short for

A

Expression

23
Q

What is iexp short for

A

Integer expression

24
Q

What is bexp short for

A

Boolean expression

25
Q

What is the sequence

A

Each instruction is carried out in order. No instruction can be skipped