Answer:
False
Explanation:
The private member of a class is not accessible by using the Dot notation ,however the private member are those which are not accessible inside the class they are accessible outside the class .The public member are accessible inside the class so they are accessible by using the dot operator .
<u>Following are the example is given below in C++ Language </u>
#include<iostream> // header file
using namespace std;
class Rectangle
{
private:
double r; // private member
public:
double area()
{ return 3.14*r*r;
}
};
int main()
{
Rectangle r1;// creating the object
r1.r = 3.5;
double t= r1.area(); // calling
cout<<" Area is:"<<t;
return 0;
}
Output:
compile time error is generated
<u>The correct program to access the private member of class is given below </u>
#include<iostream> // header file
using namespace std;
class Rectangle
{
private:
double r; // private member
public:
double area()
{
r1=r;
double t2=3.14*r2*r2;
return(t2); // return the value
}
};
int main()
{
Rectangle r1;// creating the object
r1.r = 1.5;
double t= r1.area(); // calling
cout<<" Area is:"<<t;
return 0;
}
Therefore the given statement is False
Answer:
- from matplotlib import pyplot as plt
-
- with open("text.txt") as file:
- data = file.readlines()
- category = []
- amount = []
- for row in data:
- values = row.split(" ")
- category.append(values[0])
- amount.append(float(values[1]))
-
- figure = plt.figure()
- ax = figure.add_axes([0,0,1,1])
- ax.axis('equal')
- ax.pie(amount, labels = category, autopct='%1.2f%%')
- plt.show()
Explanation:
Firstly, we need to import matplotlib library (Line 1).
Next, open a file stream and use readlines method to read the data from the text file (Line 4). Presume the data read from the text files are as follows:
Rent 450
Gas 150
Food 500
Clothing 120
Car 600
Create two lists, category and amount (Line 5-6). Use a for loop to traverse through the read data and use split method to break each row of data into two individual items. The first item is added to category list whereas the second item is added to amount list (Line 7 - 10).
Next, create a plot figure and then add the axes (Line 12 - 13). We can use the pie method to generate a pie chart (Line 15) by setting the amount list as first argument and category list as value of labels attributes. The output pie chart can be found in the attachment.
Answer:
Service record (SRV)
Explanation:
Service records (SRV record) are data records stipulating specifications of the DNS such as the port numbers, servers, hostname, priority and weight, and IP addresses of defined or cataloged services servers.
The SRV record is the source of information and the search site about the
location of particular services as such an application i need of such services will look for a related SRV record
A configured SRV is the source of the ports and personal settings for a new email client, without which the parameters set in the email client will be incorrect.
Answer:
SURVEILLANCE-SPECIFIC DESIGN.
Explanation:
Defensible space offers a series of architectural guidelines that can be used in the design of new urban residential complexes to promote both the residential group’s territorial claim to its surroundings and its ability to conduct natural surveillance. The designs are: site interrelationship design, site design, street design and surveillance-specific design.
Surveillance-specific design can be used to increase general visibility by providing adequate lighting, by reducing or eliminating physical barriers to visibility, and by the visibility-promoting location of key areas (entrances, lobbies, elevator waiting areas, parking areas e.t.c.) so as to be directly visible from as many viewpoints as possible.
Since the data center designer requested additional lighting for the entrance to the data center as well as the removal of a object which is blocking security's view of the entrance, then it is an example of SURVEILLANCE-SPECIFIC DESIGN.
Jhon must download third party pdf viewer softwares to open the .pdf file.
For example
Adobe Acrobat Reader
Must click thanks and mark brainliest