Resources for Programmers — Unit test Answers

25 verified answers
21
Free Preview

How is an interpreter different from a compiler?

A
An interpreter translates and executes code line by line, while a compiler translates all code at once so that it is ready to be executed at any time.
B
An interpreter translates all code at once so that it is ready to be executed at any time, while a compiler translates and executes code line by line.
C
An interpreter translates programming code into binary language, while a compiler does not.
D
An interpreter translates binary language into programming language, while a compiler translates programming language into binary language.
23

What is one difference between IDLE and Eclipse?

A
IDLE is a multi-language IDE, while Eclipse is a language-specific IDE.
B
IDLE is a language-specific IDE, while Eclipse is a multi-language IDE.
C
IDLE is proprietary software, while Eclipse is open-source software.
D
IDLE is open-source software, while Eclipse is proprietary software.
24

Which of the following describes an iteration in a computer program?

A
a set of instructions that causes a number to be printed
B
a set of instructions that causes the program to stop running
C
a set of instructions that can be executed multiple times
D
a set of instructions that does not execute any code
25

An argument is different from a parameter in that an argument

A
refers to a piece of data to be supplied.
B
is a placeholder for a constant value.
C
is the data passed into a parameter.
D
is always variable.

Did you find these answers helpful?