C# Unit 1

  1. Variables are ___________.




    B. named memory locations
  2. Programming errors such as using incorrect punctuation or misspelling words are collectively known as __________ errors.




    D. syntax
  3. Every method in C# contains a ___________.




    D. header and a body
  4. In C#, an identifier ______________.




    D. can contain digits
  5. Which of the following languages is least similar to C#?




    C. machine language
  6. Which of the following pairs is an example of a class and an object, in that order?




    A. University and Yale
  7. Which of the following is a class?




    C. Console
  8. Programs in which you create and use objects that have attributes similar to their real-world counterparts are known as _________ programs.




    B. object-oriented
  9. If a programmer inserts using static System.Console; at the top of the a C# program, which of the following can the programmer use as an alternative to System.Console.WriteLine("Hello"),?




    D. WriteLine("Hello");
  10. The text of a program you write is called ____________.




    A. source code
  11. A series of characters that appears within double quotation marks is a(n) ___________.




    D. literal string
  12. Which of the following is a method?




    A. Main()
  13. The grammar and spelling rules of a programming language constitute its ____________.




    D. syntax
  14. A comment in the form /* this is a comment */ is a(n) ______.




    C. block comment
  15. In C#, a container that groups similar classes is a(n) ____________.




    D. namespace
  16. A program that translates high-level programs into intermediate or machine code is a(n) _________________.




    A. compiler
  17. The technique of packaging an object's attributes into a cohesive unit that can be used as an undivided entity is ________.




    C. encapsulation
  18. Which of the following identifiers is not legal in C#?




    A. per cent increase
  19. The C# method that produces a line of output on the screen and then positions the cursor on the next line is __________.




    B. WriteLine()
  20. Programming languages such as C#, Java, and Visual Basic are _____________ languages.




    A. high-level
Author
jdavis123
ID
357931
Card Set
C# Unit 1
Description
Updated