D278 Programming and Scripting
1. What does a programmer do first to use an existing Include the library
programming library?
2. What relationship is common among a program- Functions all relate to the
ming library's functions? same purpose.
3. What is an advantage of using a programming li- The code has already been
brary? tested.
4. Which language is dynamically typed? Python
5. Which language is not built on object-oriented de- C
sign principles?
6. A language substantially supports a programmer Object-oriented
creating items like person, teacher, and students.
Each item has internal data and some operations.
Which characteristic describes that language?
7. A programmer wants a compiler to report an error Statically typed
if an integer variable is assigned with a string.
Which kind of language should the programmer
use?
8. A language uses tags around text to indicate how Markup
that text should be formatted.
Which characteristic describes a language having
such tags?
9. What is a characteristic of a compiled language? Converts to machine lan-
guage before running
, D278 Programming and Scripting
10. What is a characteristic of an interpreted language? Runs easily on different kinds
of machines
11. What is an advantage of interpreted programs? They can be modified at run
time.
12. Which characteristic specifically describes a markup Tags surround text to describe
language? desired formatting.
13. Which characteristic specifically describes interpret- They can be run one state-
ed languages? ment at a time.
14. Which characteristic specifically describes interpret- They can run on any machine
ed languages? having the right interpreter.
15. A car drove 200 miles using 10 gallons of fuel.Which Division
operation should be used to compute the miles per
gallon, which is 20?
16. Which operator should be used to determine if a %
number is evenly divisible by 5?
17. A variable should hold a person's height in me- Float
ters.Which data type should the variable be?
18. A variable should hold the names of all past U.S. String array
presidents.
Which data type should the variable be?
19. A program uses the number of seconds in a minute Constant integer secondsPer-
in various calculations. Minute
1. What does a programmer do first to use an existing Include the library
programming library?
2. What relationship is common among a program- Functions all relate to the
ming library's functions? same purpose.
3. What is an advantage of using a programming li- The code has already been
brary? tested.
4. Which language is dynamically typed? Python
5. Which language is not built on object-oriented de- C
sign principles?
6. A language substantially supports a programmer Object-oriented
creating items like person, teacher, and students.
Each item has internal data and some operations.
Which characteristic describes that language?
7. A programmer wants a compiler to report an error Statically typed
if an integer variable is assigned with a string.
Which kind of language should the programmer
use?
8. A language uses tags around text to indicate how Markup
that text should be formatted.
Which characteristic describes a language having
such tags?
9. What is a characteristic of a compiled language? Converts to machine lan-
guage before running
, D278 Programming and Scripting
10. What is a characteristic of an interpreted language? Runs easily on different kinds
of machines
11. What is an advantage of interpreted programs? They can be modified at run
time.
12. Which characteristic specifically describes a markup Tags surround text to describe
language? desired formatting.
13. Which characteristic specifically describes interpret- They can be run one state-
ed languages? ment at a time.
14. Which characteristic specifically describes interpret- They can run on any machine
ed languages? having the right interpreter.
15. A car drove 200 miles using 10 gallons of fuel.Which Division
operation should be used to compute the miles per
gallon, which is 20?
16. Which operator should be used to determine if a %
number is evenly divisible by 5?
17. A variable should hold a person's height in me- Float
ters.Which data type should the variable be?
18. A variable should hold the names of all past U.S. String array
presidents.
Which data type should the variable be?
19. A program uses the number of seconds in a minute Constant integer secondsPer-
in various calculations. Minute