Unit 5 Flashcards

1
Q

The _____ takes the most recently entered instruction, translates it into machine language, and executes it.

A

interpreter

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

A program written in a high-level language must be converted into ______ to be executed by the computer.

A

machine code

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

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

A compiled language is not portable.

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

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

A compiler translates the entire program, creating an executable program, which can be run at a later time.

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

Both compiled and interpreted languages are written in binary code.

True

False

A

False

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

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

A

True

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

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

A

True

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

A advantage of an interpreted language is that when the program is executed it will run faster than a compiled language.

True

False

A

False

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

Interpreted language translation allows programmers to test code more quickly.

True

False

A

True

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

The term _____ is sometimes used to refer to a small program.

A

Script

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

_____ can be defined as a high-level programming language with a vocabulary and set of rules for instructing a computer to perform certain tasks.

A

C++

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

a formula or procedure for solving a problem

A

algorithm

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

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.

A

An algorithm is a description of the various steps in a computer process.

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

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.

A

When writing an algorithm one should strive to make it as clear and simple as possible.

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

An algorithm is a

Formula
Process
Complex Program
Task

A

Formula

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

(n-tier) Translates the final results into a user-friendly format

A

Presentation Tier

17
Q

(n-tier) The level where data processing occurs.

A

Logic Tier

18
Q

(n-tier) Information is stored here until it needs to be retrieved for a specific application.`

A

Data Tier

19
Q

Natasha prints out the quarterly report of sales figures. Which step of the N-tier development would this be?

A

Presentation tier

20
Q

Harold inputs the new customer list for January. Which step of the N-tier development would this be?

A

Data tier

21
Q

Nancy needs to determine the annual rate of increase in sales over last year. Which step of the N-tier development would this be?

A

Logic tier