Answer the following statements true (T) or false (F)
1) Variables or methods declared with access modifier private are accessible only to members of the class in which they’re declared.
2) Variables declared in the body of a particular method are known as instance variables and can be used in all methods of the class.
3) A property declaration must contain both a get accessor and a set accessor.
4) The body of any method or property is delimited by left and right braces.
5) Local variables are initialized by default.
1) True.
2) False. Such variables are called local variables and can be used only in the method in which they’re declared.
3) False. A property declaration can contain a get accessor, a set accessor or both.
4) True.
5) False. Instance variables are initialized by default.
You might also like to view...
introduced an example of an equity trading system that handles purchases and sales of stocks and shares. Two possible cyberattacks that might affect this system are (1) an unauthorised user places malicious orders to move prices and (2) an intrusion that corrupts the database of transactions that have taken place. For each of these cyberattacks, identify resistance, recognition and recovery strategies that might be used.
What will be an ideal response?
What difference does it make whether a payment is made at the beginning or end of a month?
What will be an ideal response?
A web server is a computer that relays a request for a client to a server computer
Indicate whether the statement is true or false.
A minimum spanning tree is a spanning tree in which the total weight of the lines is guaranteed to be the minimum of all possible trees in the graph.
Answer the following statement true (T) or false (F)