Module 1 "Introduction to Programming" Flashcards
____________is a multistep process for creating a program.
Programming
It is a way of giving computers instructions about what they should do next.
Programming
It is a way of giving computers instructions about what they should do next. These instructions are known as ____.
code
Programming is important for (2)
learning to innovate
create eco- friendly solutions for global problems
________ is important for speeding up the input and output processes in a machine.
Programming
A ______ is a list or sequence of instructions that tell a computer what to do.
computer program
Everything a computer does is done by using a _______.
computer program
A computer program is written in a ___________.
programming language
A _________ is a type of written language that tells computers what to do in order to work.
programming language
_______ are used to make all the computer programs or software.
programming language
Each PL has its own grammar called _____. It consists of rules governing the structure and content of the statement that should be followed.
syntax
A programmer writes _______ using a programming language to create programs.
source code
______ is a well-written set of instructions and statements to develop a program.
Source code
Source code can be written in ____ or _____
low-level or high-level language
Source code must be translated to machine language (binary form) using a
_______.
language translator.
______ 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
_______ translates all statements at one time. It provides all the error messages – called diagnostics- at once.
Compiler
What level—-
* uses instructions tied directly to one type of computer.
* often cryptic and not human-readable.
Low-level Language
What level—-
* uses English-like instructions and can be run on a variety of computer types.
High-level language
Within a computer, all data is represented by microscopic electronic switches that can be either ____ or ____.
OFF or ON.
- OFF switch is designated by a 0.
- ON switch is designated by a 1.
Instructions written in 0s and 1s are called _____ or ______
machine language or machine code.
Each class of computer has its own particular ________
machine language
Assembly language programs must be translated into machine instructions, using an ________
assembler.
A ________ is a style, or “way,” of programming to solve problem using some programming language.
programming paradigm
It is an approach or method to solve a problem using tools and techniques that are available to us following some approach.
programming paradigm
It is also a way to classify programming languages based on their features.
programming paradigm
_________, the programmer concentrates on the major tasks that the program needs to perform.
Procedure-oriented program
__________ requires the programmer to focus on the objects that the program can use to accomplish its goal. The objects can take on many different forms.
Object-oriented program
When we want to develop a program using any programming language, we follow a sequence of steps. These steps are called _________
phases in program development.
The ________ is a set of steps or phases that are used to develop a program in any programming language.
program development life cycle
5 steps of program development
RA
SD
C
TD
DM
- Requirement Analysis
- System Design
- Coding or Writing The Program
- Testing and Debugging
- Documentation and Maintenance
__________ is a description of what a system should do
Requirement
Problem Analysis in REQUIREMENT requires performing the following steps
- Define the problem and the users.
- Determine the desired outputs.
- Determine the input to achieve the desired outputs.
- Determine the processes involve.
- Check the feasibility of implementing the program.
- Document the analysis.
The program design process describes the ______ for the solution of the problem.
algorithm
______ is the step-by-step sequence of instructions that describe how data will be processed to produce the desired output.
algorithm
To formulate the algorithm, a programmer may choose between _____ or _____.
pseudocodes or flowcharts
_______ written in normal Human language statements to describe the logic and processing flow.
Pseudocode
______ is a visual representation of the sequence of steps and decisions needed to perform a process
Flowchart
Steps are linked by ______ lines and _________ arrows.
connecting
directional
In Flowchart, each step in the sequence is noted within a ________.
diagram shape
Construction of code requires performing the following steps:
- Select the appropriate programming language.
- Follow the syntax.
Program testing involves running various tests, such as desk checking and debugging – called ________
alpha testing
Program testing involves running various tests, such as _______ and ______
desk checking and debugging
Testing and debugging requires the following steps:
Pdc
Dtp
Rrd
- Perform desk-checking
- Debug the program
- Run real data
______ is performed by real users of the software application in a real environment.
Beta Testing
_______ is manually testing the solution design to make sure that it is free of errors and that the logic works.
Desk checking
_______ means detecting, locating, and removing all errors in a computer program
Debugging
Types of Errors(3)
- Syntax Error
- Run-time Error
- Logical Error
______ is the most common error and incorrect use of programming language statements.
Syntax Error
_______ is a software error that occurs while a program is being executed.
Run-time Error
_______ is a mistake in a program’s source code that results in incorrect or unexpected behavior.
Logical Error
_______ is a written detailed description of the programming cycle and specific facts about the program.
Documentation
_______ is any activity designed to keep programs error-free, up-to-date and in good working condition
Maintenance
give example of Interpreter
JavaScript, Python, Ruby
give example of Compiler
C, C++, Java
often cryptic and not human-readable
Low-level Language
Low-level Language example
machine language, assembly language