Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The visibility level of a class field should be. Question 1 options: A) private B) static C) secure D) public Question 2 (1 point) A

The visibility level of a class field should be. Question 1 options: A) private B) static C) secure D) public Question 2 (1 point) A field can be of any data type that is legal in the language you are using. Question 2 options: True False Question 3 (1 point) A class field is also known as a(n): Question 3 options: A) attribute B) characteristic of the class C) static variable D) dynamic variable Question 4 (1 point) A class is analagous to a(n) Question 4 options: A) architect B) house C) blueprint D) drafting table Question 5 (1 point) An object is a(n) Question 5 options: A) blueprint B) variable C) instance of the class D) primitive Question 6 (1 point) This is a method that is automatically called when an instance of a class is created. Question 6 options: A) void B) mutator C) constructor D) accessor Question 7 (1 point) If you write a constructor for a class, it must initialize all class fields. Question 7 options: True False Question 8 (1 point) This keyword is used to indicate a field belongs to a class, and not an instance. Question 8 options: A) protected B) static C) parameter D) void Question 9 (1 point) The new keyword makes a call to a class's constructor. Question 9 options: True False Question 10 (1 point) Each instance of a class has its own set of fields. Question 10 options: True False Question 11 (1 point) A class can have only one constructor. Question 11 options: True False Question 12 (1 point) To find the classes that you need for an OO application, you identify all of the verbs in a description of a problem. Question 12 options: True False Question 13 (1 point) A method of a class is anything that an instance can do or have done to it. Question 13 options: True False Question 14 (1 point) A method of a class cannot take in any parameters and cannot return any data. Question 14 options: True False Question 15 (1 point) You should create your classes so that all fields of an instance can be accessed from other parts of the program. Question 15 options: True False Question 16 (1 point) A method of a class should never interact with the user. Question 16 options: True False Question 17 (1 point) A constructor must have a return type. Question 17 options: True False Question 18 (1 point) The class constructor that runs is determined by the parameters passed. Question 18 options: True False Question 19 (1 point) Identify the keyword that an object can use to refer to itself. Question 19 options: a) me b) appoint c) this or self d) that

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions