Programming Flashcards

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

What is a program? What is programming?

A

Program is software; operating info used by a computer, a logical pattern of instructions
Programming is the process of creating a set of instructions for the computer to perform

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

What are the three language translators?

A
  1. Assembler - converts Assembly language into machine language
  2. Compiler - converts one language to another (usually to machine language)
  3. Interpreter - translate line by line as it executes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Four generations of programming language

A

1st GL - machine language (0s and 1s, low level)
2nd GL - assembly language (has a little more English)
3rd GL - high-level = general purpose programming (python, VB, C/C++)
4th GL - very high-level = used for specific applications like databases (SQL)

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

What is a variable?

A

A variable is a space in RAM where you can store and retrieve something

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

Variable steps

A
1. Declare the variable 
DIM variablename 
2. Declare the data type (integer, string,...) 
DIM variablename As Integer
3. Assign a value to the variable 
Variablename=4 

*note: you can only assign ONE value to each variable; any new assignments will replace old ones

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

Assigning value to variables syntax:

  1. Getting data FROM a textbox
  2. Showing/ sending data TO a textbox
A
  1. Variable = textbox.text
  2. Textbox.text = variable

Right side = your “solid” “original” TRUE amount that you WANT to send to the left!

X=4
4 is the legit number that you WANT X to be.

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