Unit 5 Flashcards
The _____ takes the most recently entered instruction, translates it into machine language, and executes it.
interpreter
A program written in a high-level language must be converted into ______ to be executed by the computer.
machine code
Which of the following is a disadvantage of a compiled language?
A compiled language translates the entire program.
A compiled language creates a portable program.
A compiled language is not portable.
A compiled language is not portable.
Which of the following is the correct function of a compiler?
A compiler is a program that takes one program, written in a high-level language, as input, and creates a machine language program as output.
A compiler translates the entire program, creating an executable program, which can be run at a later time.
A compiler takes the most recently entered instruction, translates it into machine language, and executes it.
A compiler translates the entire program, creating an executable program, which can be run at a later time.
Both compiled and interpreted languages are written in binary code.
True
False
False
A compiler translates the entire program, creating an executable program, which can be run at a later time, while the interpreter does this incrementally.
True
False
True
A disadvantage of a compiled language is that it is not capable of being executed on different types of computers, e.g., Mac and PC.
True
False
True
A advantage of an interpreted language is that when the program is executed it will run faster than a compiled language.
True
False
False
Interpreted language translation allows programmers to test code more quickly.
True
False
True
The term _____ is sometimes used to refer to a small program.
Script
_____ can be defined as a high-level programming language with a vocabulary and set of rules for instructing a computer to perform certain tasks.
C++
a formula or procedure for solving a problem
algorithm
Which of the following statements pertain to an algorithm?
For security reasons, programmers create algorithms that are as complicated as possible.
For each computer process there is only one correct way to write the algorithm.
An algorithm is a description of the various steps in a computer process.
An algorithm is a description of the various steps in a computer process.
Which of the following statements about algorithms is true?
Understanding algorithms is not necessary for programming computers.
When developing an algorithm for a computer system it is best to try and make it as complex as possible.
When writing an algorithm one should strive to make it as clear and simple as possible.
When writing an algorithm for a computer program there is usually only one “correct” way to write it.
When writing an algorithm one should strive to make it as clear and simple as possible.
An algorithm is a
Formula
Process
Complex Program
Task
Formula