Skip to main content

Test Bank for Microsoft® Visual C# 2015 An Introduction to Object-Oriented Programming, 6th Edition

Page 1

Name:

Class:

Date:

FULL TEST BANK FOR Microsoft® Visual C# 2015 An Introduction to Object-Oriented Programming, 6th Edition 1. Machine language is expressed as a series of 1s and 0s. a. True b. False ANSWER: True POINTS: 1 REFERENCES: 2 2. C# programmers must use Pascal casing when creating method names to produce an executable program. a. True b. False ANSWER: False POINTS: 1 REFERENCES: 5 3. The C# programming language was developed as an object-oriented and component-oriented language. a. True b. False ANSWER: True POINTS: 1 REFERENCES: 9 4. When the keyword void is used in the Main() method header, it indicates that the Main() method is empty. a. True b. False ANSWER: False Cengage Learning Testing, Powered by Cognero

Page 1


Name:

Class:

Date:

POINTS: 1 REFERENCES: 13 5. The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion. a. True b. False ANSWER: True POINTS: 1 REFERENCES: 30 6. 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 b. machine language c. compiler d. program ANSWER: b POINTS: 1 REFERENCES: 2 7. 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 b. machine-level c. low-level d. switch-level ANSWER: a POINTS: 1 REFERENCES: 2 8. Programmers use a computer program called a(n) ____ to translate their high-level language statements into machine code. a. prompt b. IDE c. compiler d. JIT ANSWER: c POINTS: 1 REFERENCES: 3 Cengage Learning Testing, Powered by Cognero

Page 2


Name:

Class:

Date:

9. The ____ behind any program involves executing the various statements and procedures in the correct order to produce the desired results. a. GUI b. attributes c. methods d. logic ANSWER: d POINTS: 1 REFERENCES: 3 10. 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 b. compiling c. commenting out d. executing ANSWER: a POINTS: 1 REFERENCES: 3 11. 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 b. component-oriented c. event-driven d. procedural ANSWER: d POINTS: 1 REFERENCES: 4 12. In programming languages, a variable is referenced by using a one-word name, which is called a(n) ____, with no embedded spaces. a. behavior b. bug c. identifier d. attribute ANSWER: c POINTS: 1 REFERENCES: 4 13. For convenience, the individual operations used in a computer program often are grouped into logical units called ____. a. attributes b. methods Cengage Learning Testing, Powered by Cognero

Page 3


Name:

Class:

Date:

c. classes d. structures ANSWER: b POINTS: 1 REFERENCES: 5 14. 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 b. upper casing c. OOP casing d. Pascal casing ANSWER: d POINTS: 1 REFERENCES: 5 15. A(n) ____ describes potential objects. a. instance b. class c. attribute d. state ANSWER: b POINTS: 1 REFERENCES: 7 16. A class describes the attributes and methods of every object that is a(n) ____, or example, of that class. a. property b. interface c. instance d. state ANSWER: c POINTS: 1 REFERENCES: 7 17. ____ 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 b. Polymorphism c. Inheritance d. Interface ANSWER: a POINTS: 1 REFERENCES: 8 Cengage Learning Testing, Powered by Cognero

Page 4


Name:

Class:

Date:

18. Programmers sometimes refer to encapsulation as using a ____. a. white b. black box box c. gray box d. blue box ANSWER: b POINTS: 1 REFERENCES: 8 19. ____ provides the ability to extend a class so as to create a more specific class. a. Inheritance b. Encapsulation c. Polymorphism d. Abstraction ANSWER: a POINTS: 1 REFERENCES: 8 20. ____ represent(s) information that a method needs to perform its task. a. Literal strings b. Primitive data c. Arguments d. Complex data ANSWER: c POINTS: 1 REFERENCES: 11 21. The ____ method displays output on the screen and positions the cursor on the next line. a. Write() b. Println() c. PrintLine() d. WriteLine() ANSWER: d POINTS: 1 REFERENCES: 11-12 22. A(n) ____ is a construct that acts like a container to provide a way to group similar classes. a. namespace b. method c. object d. black box ANSWER: a POINTS: 1 REFERENCES: 12 Cengage Learning Testing, Powered by Cognero

Page 5


Turn static files into dynamic content formats.

Create a flipbook
Test Bank for Microsoft® Visual C# 2015 An Introduction to Object-Oriented Programming, 6th Edition by AnswerDone - Issuu