Chapter 4 Flashcards

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

What is cryptic programming?

A

Only programmer could understand the code.

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

What is spaghetti programming?

A

tangled control structure, especially one using many GOTO statements, exceptions, threads, or other “unstructured” branching constructs

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

What is structured programming?

A

One way in
One way out
Does not use GOTO

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

What is object oriented programming?

A

organized around objects rather than “actions” and data rather than logic; uses objects

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

What are the features of object oriented programing?

A

inheritance, polymorphism, encapsulation

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

What is encapsulation?

A

packing of data and functions into a single component

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

What is an example of class interaction?

A

*

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

What is OOP?

A

Object Oriented Programming

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

What are action modules called?

A

Math methods

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

What is the Math square root shortcut?

A

Math.sqrt

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

What does floor rounding mean?

A

down to nearest whole number

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

What does ceil rounding mean?

A

up to nearest whole number

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

What does round rounding mean?

A

normal rounding

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

What is the Math power shortcut?

A

Math.pow

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

What is the Math maximum shortcut?

A

Math.max

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

What is the Math minimum shortcut?

A

Math.min

17
Q

What is the absolute value shortcut?

A

Math.abs

18
Q

What is polymorphism?

A

a feature of a programming language that allows routines to use variables of different types at different times

19
Q

What is concept of inheritance?

A

special things that need to be specified that make the object unique from the class (ex. Class: car Object: Limo has many seats)

20
Q

What do attributes mean?

A

What it is; noun

21
Q

What do methods mean?

A

What it does; verb

22
Q

What is inheritance?

A

special things that need to be specified and are “inherited”