Computer Science- Test 1 Flashcards

(49 cards)

1
Q

analog

A

continuous, real numbers

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

digital

A

discrete, integers

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

Donald Knuth

A

“CS is not new, it was present in ancient Babylon. The only difference is our luck to have powerful computational machines.”

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

.txt

A

very simple, no margins or a lot of options

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

white space

A

enter/ tab/ space

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

transistors

A

a switch ( 1- on, 0- off)

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

Infix

A

(3+2)

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

prefix

A

(+ 3 2 )

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

postfix

A

3 2 +

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

Ctrl + Alt + T

A

opens up terminal

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

$ & >

A

commands

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

exit from a software

A

Ctrl + D
Alt + 4
Ctrl + Q
Ctrl + W

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

Cancels a process

A

Ctrl + C

Ctrl + Z

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

Run (DrRacket)

A

Ctrl + T

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

highlight

A

Ctrl + A

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

Variable

A

a name used to refer to a location in memory

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

Variable Naming

A
  • case sensitive
  • no whitespace
  • letters and numbers are ok, but can’t begin with #
  • avoid symbols
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Interpretation of (define x 6)

A

create a variable, name it x, and store the value 6 in it

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

Bottom Pane of DrRacket

A
  • Interaction

- immediate results, 1 expression at a time

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

Top Pane of DrRacket

A
  • definitions
  • nothing happens until “Run”
  • permanent
  • all expression evaluated when you click “Run”
  • black highlighting
21
Q

program

A

a list of instructions to be executed by a computer; computer executes the first instruction then proceeds to execute instructions in sequential order until it reaches the last instruction, where it stops

22
Q

programming languages allow

A
  • clarity
  • precision
  • specificity
  • probability
  • uniformity
23
Q

function call (f a b c)

A

f = name of function; a, b, c = arguments/parameters/inputs

24
Q

interpretation of (define myfxn (lambda (a b c) ()

A

create a procedure taking inputs a, b, and c, doing , and name it myfxn

25
to call a function
use its name and supply it with a meaningful value for each input (myfxn 4 5 6)
26
modular design
use a function already used to define another function
27
signature
a function's name and its inputs
28
body
the code of a function that gets evaluated when the function is called
29
black highlighting
part of a function that is not used
30
Rene Descartes
- cartesian plane (x-y axis) | - "I think, therefore I am"
31
primitive
- built in component of a language | - ex. (max a b) & (abs a)
32
Boolean operators
- each takes Boolean inputs and returns a Boolean value | - ex. (or a b), (and a b) & (not a)
33
Boolean functions
- ( = a b), (< a b), (> a b), (> = a b), (< = a b) | - a and b can be numbers or variables
34
Conditional
a language construct which allows for decision making
35
Linux
an operating software that allows applications and the computer operator to perform desired functions
36
CPU
central processing unit
37
RAM
random access memory
38
HDD
hard disk drive
39
HTML
HyperText Markup Language
40
HTTP
HyperText Transfer Protocol
41
layers of abstraction
a way of hiding the implementation details of a particular set of functionality
42
high level language
programming language that has a high level of abstraction (ex. humans)
43
Internet
- started on west coast for academic institutions, funded by the military - satillites were added, which expanded even more (Hawaii, Norway, London)
44
Terminal
place from which you issue commands
45
IMP
interface message processor; used for messaging (is a type of node)
46
TIP
terminal interface processor; issues commands/ control unit (node)
47
internet backbone
core of a network that you join
48
network
a group of two or more computers linked together
49
types of operating systems
Microsoft Windows, Linux, Android, iOS, OS X