Computer Programming Basics: Keywords, Commands, and Syntax

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

39 Terms

1
New cards

base 16

hexadecimal

2
New cards

a few basic commands which the computer can execute directly

machine code

3
New cards

Interactive Development Environment

IDE

4
New cards

Do one small thing that the problem requires; Test it; If it does not work, fix it and go back to step 2; If it does work, then go back to step 1

successive refinement

5
New cards

a process which tries every possible combination to produce a result

brute force algorithm

6
New cards

a step-by-step process which is guaranteed to produce a specific result

algorithm

7
New cards

symbols which are easier to read and interpret than machine code

mnemonics

8
New cards

Example of a high-level language

FORTRAN

9
New cards

what symbols are allowed, and in what kinds of combinations

syntax

10
New cards

what the symbols mean in certain combinations and contexts

semantics

11
New cards

a piece of software (a program) that converts a program specified in a text file (called the source code) into something that can be run on a computer

compiler

12
New cards

a tool that reads and executes code line-by-line

interpreter

13
New cards

command to display some text on the computer screen

print

14
New cards

assignment operator

=

15
New cards

marks that surround a string of characters

quotation marks

16
New cards

command to get a value from the user

input

17
New cards

display what the user typed in

echo

18
New cards

a (usually) unseen marker which tells the program where to write the next output character

cursor

19
New cards

causes the cursor to move to the next line

newline character

20
New cards

var1 = 5; var2 = 3; var3 = 4; var4 = 2; var5 = var1 - var2 + var3 * var4; print(var5)

11

21
New cards

What is a prompt?

The text that precedes a user input

22
New cards

Why is it important to move the cursor?

If we don't, all output will be on one line, which will look weird

23
New cards

special characters

escape sequences

24
New cards

includes less common characters such as Greek letters, specialized math symbols, etc

extended character set

25
New cards

converting data into the input into another data type

type casting

26
New cards

format an integer

%d

27
New cards

any series of characters which are used primarily to format output

padding

28
New cards

\n

newline

29
New cards

using a plus sign when printing character strings

concatenation

30
New cards

adding spaces to make output line up

padding

31
New cards

assignment operator

=

32
New cards

marks that surround a string of characters

quotation marks

33
New cards

command to get a value from the user

input

34
New cards

a (usually) unseen marker which tells the program where to write the next output character

cursor

35
New cards

What is the output of the following code if the input is 7? No output

36
New cards

What is the output of the following code if the input is "CMPSC 101"?

CMPSC 101 rules!

37
New cards

var1 = 11; var2 = 11.11; var3 = 42; var4 = int(var2/var2); var5 = int(var4)/3; var6 = int(var5)/1; print(var1, var2, var3, var4, var5, var6)

11 11.11 42 1 0 0.0

38
New cards

Var1 = 10; Var2 = 3; result = Var1 / Var2; print(result)

3.333

39
New cards

Var1 = 10; Var2 = 3; total = Var1 // Var2 + Var1 % Var2

4