Unit 1 Flashcards
the process of preparing an instructional program for a device (such as a computer
Programming
set of instructions that helps the computer to perform
tasks
program
Learning a computer programming language requires
learning both its _________
vocabulary and syntax
Types of Errors
− Syntax errors
− Run-time errors
− Logical errors
used to write a program or set of instructions
Programming language
Programming language is categorized into three types
- Machine level language
- Assembly level language
- High-level language
Machine language
− lowest level of programming language
− handles binary data
− directly interacts with system
− not portable and non-readable to humans
Assembly language
− a middle-level language
− consists of a set of instructions in a specific format called
commands
− uses symbols to represent field of instructions
− very close to machine level language
− should have an assembler to translate assembly level program
to machine level program
− in human-readable format and takes lesser time to write a
program and debug it
Assembly Language
SUB AX, BX
MOV CX, AX
MOV DX, 0
High-level language
− uses format or language that is most familiar to users
− instructions in this language are called codes or scripts
− needs a compiler and interpreter to convert high-level
language program to machine level language
− examples: C++, Python, Java
− easy to write and is less time-consuming
− human-readable language
program that translates programming language instructions
one line at a time
Interpreter
translates entire program at one time
Compiler
a program by issuing a command to execute the
program statements
Run
a program by using sample data to determine
whether the program results are correct
Test
logic components in programs
Control structures