Comp Sci Ch. 3 Flashcards Preview

From Flashcardlet > Comp Sci Ch. 3 > Flashcards

Flashcards in Comp Sci Ch. 3 Deck (27)
Loading flashcards...
0

What are the 4 steps of program development?

Establishing requirements, creating a design, implementing the code, and testing the implementation

1

What do software requirements do?

Tell what a program is supposed to do

2

What is software design?

The central planning of a program

3

What is pseudo code?

The outline of a program

4

What is impememtation?

The least creative step. Translating the design into source code

5

What is testing?

Running the code to fix errors with multiple inputs

6

in what way is a program executed?

Linear unless specified otherwise

7

What is the order in which a program is executed called?

Flow of control

8

How are conditional statements tested?

Booleans

9

What is executed with multiple if/ else if statements?

Just one of the statements

10

What is a block statement?

The text between the brackets in a method or condition

11

How do you format code in eclipse?

Highlight it, then hit control-L

12

Can you put if statements in if statements?

Yes

13

Where does a whole statement go?

The outermost layer of code

14

What does ! Mean?

Not

15

What does && mean?

And

16

What does || mean?

Or

17

What are the logical operators for booleans?

&&, ||, ect.

18

What is a unary operator?

Uses one operand, like the not (!)

19

What does != mean?

Not equal

20

What is a binary operator?

Uses 2 operands, like &&

21

What is a logical not operation aka?

Logical negation/logical compliment

22

How can logic expression outputs be displayed?

A truth table

23

Why do logical operators have a lower precedence than the relational or arithmetic operators?

They do the math first

24

What has a higher precedence: logical not or logical and/or?

Not

25

What is always executed with booleans?

Whatever is true

26

What is a short circuited operator?

When it is cut off because the first part is satisfied