21) A(n) __________ is a simple variable that tends to store the actual value of
ID: 675507 • Letter: 2
Question
21) A(n) __________ is a simple variable that tends to store the actual value of a variable. A. parameter B. value type variable C. reference type variable D. accessor 22) A(n) __________ is relevant data that is passed to a method or procedure for processing. A. parameter B. value type C. reference type D. accessor 23) A(n) __________ is the definition of the properties and methods written by the programmer. A. object B. class C. constructor D. accessory 24) When programming the following line of code, which of the following would be the best data type to use? <> myNumber = 0.974658; A. String B. Double C. Triple D. Float 25) What keyword is associated with creating objects? A. Create B. Constructor C. New D. Start 26) In the following line of code, at runtime the value written to the console will be formatted as which of the following? Console.WriteLine("Book Price: {0,C}", "109.99"); A. "Book Price: 109.99" B. "Book Price: $109.99" C. "Book Price: 109" D. "Book Price: .99" 27) A __________ is called to initialize a new instance of a class. A. constructor B. destructor C. creator D. new 28) The __________ operator is used to create an object from a class. A. construction B. instantiation C. new D. designation 29) When programming a parameter, you must specify a name and a: A. constructor. B. class. C. data type. D. method. 30) A __________ is the equivalent of an attribute that helps define an object. A. constructor B. class C. property D. method 31) A default constructor has how many parameters? A. 0 B. 1 C. 2 D. Any number 32) Which of the following accessors allows the programmer to store a value in a property? A. Get B. String C. Set D. Double 33) Although not required, documentation using __________ enables the programmer to visually display an OOP design methodology. A. UML B. the comment feature C. member access operators D. XML 34) Which of the following terms refers to the data represented by an object’s instance variables? A. Behaviors B. Attributes C. Methods D. Information 35) When programming the following line of code, which of the following would be the best data type to use? <> myNumber = 18.97; A. String B. Double C. Triple D. Float 36) A __________ describes the mechanisms that perform tasks; they are considered an action, or verb, in OOP. A. constructor B. class C. property D. method 37) A(n) __________ is an in-memory representation of the properties and methods designed by the programmer. A. object B. class C. constructor D. accessor 38) A(n) __________ is typically a more complex variable that tends to store a memory location of an object's data rather than directly storing the data itself. A. parameter B. value type variable C. reference type variable D. accessor 39) The get and the set in a property are referred to as the: A. parameters. B. value types. C. reference types. D. accessors. 40) Every C# app is composed of at least one: A. public method. B. data member. C. public class declaration. D. imported class.
Explanation / Answer
21. variable
22. parameter is passed to method
23. class
24. double
25. new(works as a malloc function)
26. Book Price: $109.99(C stands for currency)
27. Constructor
28. new
29. data type
30. property
31. 0
32. set
33. comment feature
34. attributes
35. float
36. method
37. accesor
38. reference type variable
39. accesors
40. public method
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.