This site is 100% ad supported. Please add an exception to adblock for this site.

computer class notes

Terms

undefined, object
copy deck
programming instructions
compile,
run,
debug(user screen)
debug(add watch)
run(trace)
syntax
grammar
(valid combination of lexicons)
operator
subset of special characters
- + *
semantic
meaning
assignment statement
identifier:= expression
programming flow chart
PROGRAM
|
compile
|
COMPILER--->ERROR---syntax,lexicon,---semantic
|
create
|
.EXE FILE
|
run
readln statement
readln(identifier)
lexicons
keywords, identifiers, strings, integer constants, special characters, comments
expression
combination of integer constants, identifiers, operators, and parentheses
programming
sequential executions
data/input
output
declare
decision
iteration/repeat loop
variable
a cell in the computer's memory and is capable of holding an integer
string
combination of any characters using any symbol, letter or digit on the keyboard but must be surrounded by single quotes
program form
program identifier;
var identifier-list:integer;
begin
statement-list
end.
identifiers
cannot be keywords, can be any combination of letter(s) and/or digits, must start w/a letter
writeln statement
writeln(item1, item2, item3, ...)

items can be string or identifier
integer constant
must be counting numbers w/zero and negative numbers
special characteristics
characters that have its own meaning like . , ; : = < > <> <= >= := ( ) + - * /
keywords
preserved words, own purpose
exs:
WRITELN READLN
PROGRAM
VAR INTEGER REAL
BEGIN END DO
IF THEN ELSE WHILE
comment
similar to a string surrounded by curly braces {} w/any character

Deck Info

19

permalink