View the step-by-step solution to:

Microsoft Visual C# 2005 - An Introduction to Object-Oriented Programming Chapter One 1. A computer program written as a series of on and off...

can you please help me how to get the answers of chapter 2?
Microsoft Visual C# 2005 - An Introduction to Object-Oriented Programming Chapter One 1. A computer program written as a series of on and off switches is written in a.machine language c.a high-level language b.a low-level language d.a compiled language 2. A program that translates high-level programs into intermediate or machine code is a(n): a.mangler c.analyst b.complier d.vortex 3. The grammer and spelling rules of a programming language constitute its ____________. a.logic c.syntax b.variables d.vortex 4. Variables are _________. a.procedures c.grammer rules b.named memory locations d.operations 5. Programs in which you create and use objects that have attributes similar to their real-world counterpart are known as ___________ programs. a.procedural c.authentic b.logical d.object-oriented 6. Which of the following pairs is an example of a class and an object, in that order? a.robin and bird and SDSU b.chair and desk d.oak and tree 7. The technique of the packaging an object's attributes into a cohesive unit that can be used as an undivided entity is ________. a.inheritance c.polymorphism b.encapsulation d.interfacing 8. Of the following languages, which is least similar to C#? a.Java c.C++ b.Visual Basic d.COBOL 9. A series of characters that appear within double quotation marks is a(n)________. a.parameter c.argument b.interface d.literal string 10. The C# method that prints a line of output on the screen and then positions the cursor on the next line is ________. a.WriteLine() c.DisplayLine() b.PrintLine() d.OutLine() 11. Which of the following is an object? a.System c.Out b.Console d.WriteLine 12. In C#, a scheme that groups similar to classes is a(n) ________. a.superclass c.namespace b.method d.identifer 13. Every method in C# contains a ______________. a.header and a body c.variable and a class b.header and a footer d.class and an object 14. Which of the following is a method?
Background image of page 01
a.namespace c.Main() b.public d.static 15. Which of the following statements is true? a.An identifier must begin with an underscore. b.An identifier can contain digits. c.An identifier must be no more than 16 characters long. d.An identifier can contain only lowercase letters. 16. Which of the following identifiers is not legal in C#? a.per cent increase c.HTML b.source code d.alternativetaxcredit 17. The text of a program you write is called __________. a.object code c.machine language b.source code d.executable documentation 18. Programming errors such as using incorrect puncuation or misspelling words are collectively known as _____________ error. a.syntax c.executable b.logical d.fatal 19. A comment in the form /* this is a comment */ is a(n) _________. a.XML comment c.executable comment b.block comment d.line comment 20. If a programmer insert using System; at the top of C# program, which of the following can the programmer use as alternative to System.Console.Out.WriteLine("Hello");? a.System("Hello") c.Console.WriteLine("Hello") b.WriteLine("Hello") d.Console.Out("Hello") Chapter Two 1. When you use a number such as 45 in a C# program, the number is a __________. a.literal constant c.literal variable b.figurative constant d.figurative variable 2. A varibel declaration must contain all of the following except a(n) ___________. type c.assigned value b.identifier d.ending semicolon 3. Which of the following is true of variable declarations? a. Two variables of the same type can be declared in the same statement. b. Two variables of the different type can be declared in the same statement. c. Two variables of the same type must be declared in the same statement. d. Two variables of the same type cannot coexist in the same statement. 4. Assume you have two varibles declard as int var1 = 3; and int var2 = 8; Which of the following would display 838? a.Console.WriteLine("{0}{1}{2}", var1, var2); b.Console.WriteLine("{0}{1}{0}", var1, var2); c.Console.WriteLine("{0}{1}{2}", var2, var1); d.Console.WriteLine("{0}{1}{0}", var2, var1); 5. Assume you have a varible declared as int var1 = 3; Which of the following would display X 3X? a.Console.WriteLine("X{0} X", var1); b.Console.WriteLine("X{0,2} X", var1); c.Console.WriteLine("X{2,0} X", var1); d.Console.WriteLine("X{0}{2} X", var1);
Background image of page 02
Show entire document
Sign up to view the entire interaction

This question was asked on Jan 28, 2013.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors and customizable flashcards—available anywhere, anytime.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access or to earn money with our Marketplace.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
  • -


    Browse existing sets or create your own using our digital flashcard system. A simple yet effective studying tool to help you earn the grade that you want!

    Browse Flashcards