TRUE/FALSE
1. Machine language is expressed as a series of 1s and 0s.
ANS: T PTS: 1 REF: 2
2. C# programmers must use Pascal casing when creating method names to produce an executable
program.
ANS: F PTS: 1 REF: 5
3. The C# programming language was developed as an object-oriented and component-oriented
language.
ANS: T PTS: 1 REF: 9
4. When the keyword void is used in the Main() method header, it indicates that the Main()
method is empty.
ANS: F PTS: 1 REF: 13
5. The Visual Studio IDE gives you advanced features such as syntax coloring and automatic
statement completion.
ANS: T PTS: 1 REF: 29
MULTIPLE CHOICE
,1. Internally, computers are constructed from circuitry that consists of small on/off switches. The
most basic circuitry-level language that computers use to control the operation of those switches
is called ____.
a. syntax c. compiler
b. machine language d. program
ANS: B PTS: 1 REF: 2
2. A ____ programming language allows you to use a vocabulary of reasonable terms such as
“read,” “write,” or “add” instead of the sequence of on/off switches that perform these tasks.
a. high-level c. low-level
b. machine-level d. switch-level
ANS: A PTS: 1 REF: 2
3. Programmers use a computer program called a(n) ____ to translate their high-level language
statements into machine code.
a. prompt c. compiler
b. IDE d. JIT
ANS: C PTS: 1 REF: 3
4. The ____ behind any program involves executing the various statements and procedures in the
correct order to produce the desired results.
a. GUI c. methods
b. attributes d. logic
ANS: D PTS: 1 REF: 3
,5. To achieve a working program that accomplishes the tasks it is meant to accomplish, you must
remove all syntax and logical errors from the program. This process is called ____ the program.
a. debugging c. commenting out
b. compiling d. executing
ANS: A PTS: 1 REF: 3
6. When you write a(n) ____ program, you use your knowledge of a programming language to
create and name computer memory locations that can hold values, and you write a series of steps
or operations to manipulate those values.
a. object-oriented c. event-driven
b. component-oriented d. procedural
ANS: D PTS: 1 REF: 4
7. In programming languages, a variable is referenced by using a one-word name, which is called
a(n) ____, with no embedded spaces.
a. behavior c. identifier
b. bug d. attribute
ANS: C PTS: 1 REF: 4
8. For convenience, the individual operations used in a computer program often are grouped into
logical units called ____.
a. attributes c. classes
b. methods d. structures
ANS: B PTS: 1 REF: 5
, 9. When programmers adopt the style of capitalizing the first letter of all new words in an identifier,
even the first one, they call the style ____.
a. camel casing c. OOP casing
b. upper casing d. Pascal casing
ANS: D PTS: 1 REF: 5
10. A(n) ____ describes potential objects.
a. instance c. attribute
b. class d. state
ANS: B PTS: 1 REF: 7
11. A class describes the attributes and methods of every object that is a(n) ____, or example, of that
class.
a. property c. instance
b. interface d. state
ANS: C PTS: 1 REF: 7
12. ____ is the technique of packaging an object’s attributes and methods into a cohesive unit that
can be used as an undivided entity.
a. Encapsulation c. Inheritance
b. Polymorphism d. Interface
ANS: A PTS: 1 REF: 8
13. Programmers sometimes refer to encapsulation as using a ____.