Programming – Expressions, Flowcharts, Control Structures Flashcards

1
Q

what type Operators CHARACTER are these?

+ - * /

A

arithmetic

  • addtion -subtraction - multiplcation - divsion
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Operators character:

<= >= = <>

hint: relational math

A

relational operators

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

in computer programming

Logical, results for instrctions are:

A

Ture or False And, Or, Not

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

Operators Precedence

When expressions contain operators from more than one category, usually _______ _______are evaluated first, comparison __________ are evaluated next, and _______ ________ are evaluated last.

A

arithmetic operators - comparison operators- logical operators are evaluated last.

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

+

A

ADD

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

-

A

SUBTRACT

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

*

A

MULTIPLE

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

/

A

DIVIDE

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

<

A

less-than sign

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

>

A

GREATER THAN

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

<=

A

means “less than or equal to”

if “n” is “0” or anything lower, the condition will be true

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

>=

A

greater than or equal to’ and are commonly used in algebra. In computer applications <= and >= are used.

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

==

A

Checks if the values of two operands are equal or not,

if yes then condition becomes true.

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

Operators Precedence when a script runs?

A

usually arithmetic operators are evaluated first, comparison operators are evaluated next, and logical operators are evaluated last.

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

____________’s can be a combination of them with operators is called an expression.

A

varibles

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

Expressions NAME 3?

A

A Literal, a variable, a symbolic constant,

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

Expressions NAME 3 TYPES?

A

Arithmetic  Relational  Logical

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

Arithmetic Expression:

A

a number, a variable, or combination of

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

Relational Expression:

hint 4 == 4

A

Combination of two arithmetic expressions with a relational operator.

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

CONDITONAL STATEMENTS ability to test variables angainst value act in one way if the condtion is what?

A

met by the variable or another way if not.

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

Logical Expression:

(A = B) And (A > C+2) (A > C + A / B * 2 + B) Or (A <> B)

A

Combination of two relational expressions with a logical operator (A = B) And (A > C+2) (A > C + A / B * 2 + B) Or (A <> B)

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

describe And and Or operators?

hint: operands

A

are binary operators, i.e., they need two operands.

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

operand

A

data to be operated on, representing the data itself.

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

binary operators,

A

are those operators that work with two operands.

For example, a common binary expression would be a + b—the addition operator (+) surrounded by two operands..

The Not is an unary operator. It needs just one operand:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Character Representation
• Letter, numbers, and special characters use ASCII character set to be represented inside the computer.
26
ASCII
is a 7-bit character set containing 128 characters numbers 0-9, the upper/lower case Eng from A to Z.
27
what must be included in flow chart? ## Footnote hint: what steps needed to get to putput
must include needed output, the available input, and a brief explanation of how you can transform the available input to the needed output.
28
Program is a logical pattern of instructions explain Development of an Algorithm to slove a problem:
designing the problem's solution, is a step-by-step procedure for solving a problem. Programmers write algorithms that instruct the computer how to perform a task.
29
Program is a logical pattern of instructions: why do we Test the Program?
To be sure that the program will run correctly, no matter what happens
30
Program is a logical pattern of instructions If the algorithm is wrong or the program does not match the algorithm, the errors are considered \_\_\_\_\_\_\_\_\_\_\_\_?
LOGICAL ERROR
31
Program is a logical pattern of instructions if the error is using the programming language syntax, then the errors are considered as \_\_\_\_\_\_\_\_\_\_\_\_?
SYNTAX ERROR
32
Program is a logical pattern of instructions WHAT IS A BUG?
. Any errors in a program are called bugs;
33
the process of finding the bugs and correcting them is called what?
debugging
34
Program is a logical pattern of instructions: what is to Complete Documentation?
Documentation should include user instructions, an explanation of the logic of the program, and information about the input and output.
35
Program is a logical pattern of instructions what is Program Implementation:
installing the prgram on a computer test works properly. Even after completion, a program requires attention.
36
WHAT IS A Flowchart?
Represents a visual map of a program.
37
Flowchart: logic flowcharT
a flowchart that represents the flow of logic in a program
38
Flowchart: The logic flowchart is different than system flowchart WHY?
that shows the flow of data through an entire computer system (as opposed to program).
39
Pseudocode
is an English-like way of representing the solution to a problem it's translated n2 programming language.
40
It is helpful to introduce\_\_\_\_\_\_\_\_ in relation to flowcharting.
pseudocode
41
Pseudocode cannot be executed by a computer. WHY?
When using pseudocode to plan a program, you can concentrate on the logic and not to worry about the syntax of the computer language.
42
Structured Programming makes programs easier to \_\_\_\_, \_\_\_\_\_\_, read and maintain.
debug test
43
• Structured Programming
is a technique that emphasizes breaking a program into logical sections by using certain programming standards.
44
Control Structures"
- control how the program executes. - uses a limited number of Control Structures minimizing complexties of programs - lowers errors.
45
There are three basic Control Structures in Structured Programming: NAME THEM?
Sequence Selection Iteration
46
EACH CONTROL STRUCTURE HAS It is important to note that each structure has one _______ and \_\_\_\_\_\_\_\_\_.
one entry point and one exit point.
47
Structured Programming WHO INVENTED IT?
based on a theorem proved by C. Böhm and G. Jacopini in 1966
48
WHY DOES STRUCTURED PROGRAMING RESTRICT THE NUMBER OF TYPES OF CONTROL STRUCTURES?
By restricting the number of types of control structures to three, structure programming attempts to reduce program complexity.
49
Control Structures whats a Sequence?:
One statement simply follows another in sequence, series of steps to be carried out, or executed in order.
50
Control Structures – what is Selection?
is used to makE logical decisions. This Control Structure has two forms: IF-THEN-ELSE, and IF-THEN.
51
how does IF-THEN-ELSE Control Structures work?
works as follows: IF (a condition is true) THEN (do something), ELSE (do something different).
52
Control Structures – whats a Sequence?
Sequence is the natural way for a computer to execute instructions.
53
selection statements
allow a program to test several conditions, and execute instructions based on which condition is true.
54
iteration statements. WHY DO WE USE LOOPING?
So we dont have to witre same sequence of statement over and over
55
iteration structure?
executes a sequence of statements repeatedly as long as a condition holds true.
56
FLOW CHART SYMBOLS THE SHAPE: RECTANGLE THE NAME: PROCESS THE FUNCTION:
PROCESS
57
FLOW CHART SYMBOLS THE SHAPE: PARALLELOGRAM THE NAME: INPUT/OUTPUT THE FUNCTION:
REPRESENTS INPUT/OUTPUT
58
FLOW CHART SYMBOLS THE SHAPE: THE ARROW THE NAME: ARROWS THE FUNCTION:
CONNECTOR THAT SHOWS RELATIONSHIPS BETWEEN F-CHART SHAPES
59
FLOW CHART SYMBOLS THE SHAPE: OVAL THE NAME: START END THE FUNCTION
REPRESENTS A START OR END POINT
60
**For-Loop**
A counter-controlled loop iterates a specific number of times.
61
**While Loop**
is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition.
62
IPO -information processing program
model in systems analysis and software engineering for describing the structure of an information processing program.
63
operators \<\>
NOT EQAUL TO