Week one (Ch 1-2)
float
"true" i.e. 5.6
assignment operator
=
What kind of language needs the assembler to translate for the computer?
Assembly language
CPU
Central Processing Unit; "brain" instructions from MEMORY & executes
CD
Compact disc
A python program is compiled by a python compiler... true or false?
FALSE - python interpretor
eval()
FLOAT
/
FLOAT division
round()
INTEGER
//
INTEGER division
IPO
Input, process, output: must be considered when developing software
What kind of language does the CPU understand?
Machine language
Core
Part of the processor that reads & executes
RAM
Random access memory
Most common programming errors
SYNTAX
A python interpreter is a program that executes python programs... true or false?
TRUE - translates and executes
A text file containing python code is called a ... a) source file b) module c) script file d) output file
a) source file b) module c) script file ALL THREE (same thing, different name)
System analysis & system design
analyze DATA FLOW, identify INPUT/OUTPUT design a process for obtaining OUTPUT from INPUT
A Python paragraph comment uses the style... a) /#comments#/ b) '''comments''' c) //comments// d)/*comments*/
b) '''comments'''
To run python script file named t.py, use the command... a)go python t.py b)python t.py c)execute python t.py d)run python t.py
b) python t.py
!
bang: does #20
Motherboard
bus; circuit case; built in
Four bytes have (blank) bits a) 8 b) 16 c) 32 d) 64
c) 32 bits
cd
change directory *like clicking on a folder*
cp
copy
(blank) is a device to connect a computer to a local area network (LAN) a) Regular modem b) DSL c) Cable modem d) NIC
d) NIC NIC is ALWAYS connected to LAN
To put the pen down, use a) turtle.penDown() b)turtle.penDown() c)turtle.down() d) turtle.pendown()
d) turtle.pendown()
cat
display contents
!!
does last command
Logic error
doesn't perform how it was intended to
**
exponentiation
What kind of language is english-like?
high level language
Bus
interconnection "roads" that connect all of the hardware components
Computer software
invisible instructions
ls
list contents
mkdir
make directory
What does the operating system do?
manages & controls computer's activities
man
manual
man man
manual of the manual
cd..
move up a directory
(blank) is an object oriented programming language... a) C# b) C c) C++ d)Java e) Pascal
A) C# C) C++ D) Java (all three)
Python code is interpreted, not compiled.... true or false?
True
nw
new program
whoami
owner of current login session
pwd
print working directory
ps
process status
variable
references a value stored in computer memory; value can change
%
remainder
rm
remove a file
rmdir
remove directory
Multicore
single component with 2+ independent processors
Runtime error
terminate abnormally; input error; division by 0
Classes
type/category that defines objects of the same kind with methods to manipulate them (the objects)
Computer hardware
visible, physical elements
RAM Memory is like a....
workspace! It's volatile.