[M1S1] Flashcards
a multistep process for creating a program
programming
a way of giving computers
instructions about what they
should do next.
programming
instructions given to a computer
codes
what is programming important for?
for learning to innovate, create ecofriendly solutions for global
problems, and for speeding up the input and
output processes in a machine.
a list or sequence of instructions that
tell a computer what to do.
computer program
Everything a computer does is done by using what?
computer program
a computer program is written in what?
a programming language
a type of written language that
tells computers what to do in order to work
PL
are used to make all the computer
programs or software.
PL
Each PL has its own grammar called what?
syntax
consists of rules
governing the structure and content of the statement that should
be followed.
syntax
a well-written set of instructions and
statements to develop a program
source code
what does a programmer write using a programming language in order to create a program?
source code
2 ways a source code can be written
low-level or high-level
language.
a source code must be translated to what? using what?
machine language
(binary form) using a language translator.
types of language translators
assembler, interpreter, compiler
translates a program written from an assembly
language to a low-level language.
assembler
translates each statement or one line at a time and
executed immediately after translation.
interpreter
examples of interpreter
JavaScript, Python, Ruby
translates all statements at one time. It provides all
the error messages – called diagnostics- at once
compiler
examples of compiler
C, C++, Java
uses instructions tied
directly to one type of
computer
Low-level Language
Low-level Language is often what?
cryptic and not human-readable
examples of Low-level Language
machine language, assembly language
uses English-like
instructions and can be
run on a variety of
computer types.
high-level language
examples of high-level language
Visual Basic, C, C++, Java
within a computer, what represents all data that ca be either on or off
microscopic electronic switches
Instructions written in 0s and
1s are called what
machine language or machine code
Each class of computer has its
own particular machine
language
true
must be translated into machine
instructions, using an assembler.
Assembly language programs
A programming language with
symbolic names for opcodes,
and decimals or labels for
memory addresses
assembly laguage
a style, or “way,” of
programming to solve problem using some programming
language.
programming paradigm
an approach or method to solve a problem using tools
and techniques that are available to us following some
approach.
programming paradigim
a way to classify programming languages based on
their features.
programming paradigim
a program where the programmer concentrates
on the major tasks that the program needs to perform.
Procedure-oriented program
a program where the
programmer must instruct the computer every step of the way,
from the start of the task to its completion.
Procedure-oriented program
a program that requires the programmer to
focus on the objects that the program can use to
accomplish its goal.
Object-oriented program
a program where the objects can take on many different
forms.
Object-oriented program
in a procedural programming, rotate(shapeNum) and playsound(shapeNum) are what?
functions
in object-oriented programming, shape is considered as what? and circle, rectangle and polygon are called what?
class, objects