Programming – Expressions, Flowcharts, Control Structures Flashcards Preview

CS 3 INTRO TO PROGAMING > Programming – Expressions, Flowcharts, Control Structures > Flashcards

Flashcards in Programming – Expressions, Flowcharts, Control Structures Deck (63)
Loading flashcards...
1

what type Operators CHARACTER are these? 

+  -  *   /

arithmetic

- addtion -subtraction - multiplcation - divsion 

2

Operators character: 

 <=  >=   = <> 

hint: relational math 

 relational  operators

3

in computer programming 

Logical, results for instrctions are: 

Ture or False And, Or, Not

4

Operators Precedence

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

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

5

+

ADD

6

-

SUBTRACT

7

*

MULTIPLE

8

/

DIVIDE

9

<

less-than sign

10

>

GREATER THAN

11

<=

means "less than or equal to"

 

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

12

>=

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

13

==

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

 

if yes then condition becomes true.

14

Operators Precedence when a script runs? 

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

15

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

varibles 

16

Expressions NAME 3?

A Literal, a variable, a symbolic constant, 

17

Expressions NAME 3 TYPES?

Arithmetic  Relational  Logical

18

Arithmetic Expression:

a number, a variable, or combination of 

19

Relational Expression:

 

 

hint 4 == 4

Combination of two arithmetic expressions with a relational operator. 

20

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

 met by the variable or another way if not.

21

Logical Expression:

 

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

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

22

describe And and Or operators?

 

hint: operands

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

 

23

operand

 data  to be operated on, representing the data itself.

24

binary operators,

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:

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?

 

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