4.3 introduction to Programming Flashcards

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

Fundamental Operations of a Computer

A

–> Add Data
–> Retrieve Data
–> Store Data
–> Compare Data
–> Complex operations are composed of multiple simple operations.

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

Syntax

A

Structure of programming language

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

Semantics

A

Refers to the meaning of every construction that is possible in the language

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

Grammar

A

Meta-language that is used used to define the syntax of a language

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

Reserved keywords

A

Special words in a language which have a defined function

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

The need for higher-level languages

A

–>Each computer has its own machine language which consists of 0s and 1s.
–>Machine language is hard to understand and debug
–> Assembly languages replace binary code with symbols called “MNEMONICS”

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

The need for a translation process from a higher-level language to a machine-executable language

A

–> Most applications are written in high-level languages
–> Translation is required in order to execute
–> The high-level code is called the source code/program
–> The translated code is called the object program

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

Compiler

A

–>Executes the translation only once
–> All errors are are communicated to the programmer after the code is checked

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

Interpreter

A

Goes through the translation process every time the program is run.
refers to the process of reading each line

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

Java Virtual Machine

A

This combines Compiler and Interpreter
It is compiled into bytecode
If the Java Machine Interpreter is installed the code can be run on any machine

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

Variable

A

used to store data, stored value can be changed during the code execution

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

Constant

A

Things and quantities that do not change during the program execution

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

Operator

A

Used to manipulate operands

(eg. 2+3, the number 2 and 3 are operands and the + is an operator)

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

Object

A

Comprised of data and actions/ methods (operations which can be performed by the object)

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

Characteristics and Applications of a Collection

A

–> Need to group and store data that will be used
–> Consists 0 or more elements such as objects, values,
–> Collections allow duplicate elements and may contain ordered or unordered elements

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

Advantages of Collection

A

–>Methods of the collection are predefined
–>Performance is increased due to data management capabilities provided by the collection