Answer:
d) daco = new Banana;
Explanation:
Dynamically allocated variables have their memory allocated in the heap memory.We declare a dynamical variable like this:-
int *a=new int ;
It means a pointer a is created on the stack memory which hold the address of the block that hold the value of variable a in heap memory.
We already have the pointer daco. We just have to initialize with keyword new.
It will be like daco=new Banana; which matches the option d.
Answer:
Explanation:
The following is written in Java. It continues asking the user for inputs until they enter a -1. Then it saves all the values into an array and calculates the number of values entered, the highest, and lowest, and prints all the variables to the screen. The code was tested and the output can be seen in the attached image below.
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int count = 0;
int highest, lowest;
ArrayList<Integer> myArr = new ArrayList<>();
while (true) {
System.out.println("Enter a number [0-10] or -1 to exit");
int num = in.nextInt();
if (num != -1) {
if ((num >= 0) && (num <= 10)) {
count+= 1;
myArr.add(num);
} else {
System.out.println("Wrong Value");
}
} else {
break;
}
}
if (myArr.size() > 3) {
highest = myArr.get(0);
lowest = myArr.get(0);
for (int x: myArr) {
if (x > highest) {
highest = x;
}
if (x < lowest) {
lowest = x;
}
}
System.out.println("Number of Elements: " + count);
System.out.println("Highest: " + highest);
System.out.println("Lowest : " + lowest);
} else {
System.out.println("Number of Elements: " + count);
System.out.println("No Highest or Lowest Elements");
}
}
}
Answer:
1.Use passwords that can't be easily guessed, and protect your passwords.
2.Minimize storage of sensitive information.
3.Beware of scams.
4.Protect information when using the Internet and email.
5.Make sure your computer is protected with anti-virus and all necessary 6.security "patches" and updates.
7.Secure laptop computers and mobile devices at all times: Lock them up or carry them with you.
8.Shut down, lock, log off, or put your computer and other devices to sleep before leaving them unattended, and make sure they require a secure password to start up or wake-up.
9.Don't install or download unknown or unsolicited programs/apps.
Secure your area before leaving it unattended.
10.Make backup copies of files or data you are not willing to lose.
Explanation:
TensorFlow and Pytorch are examples of Supervised Machine Learning (ML), in addition, both support Artificial Neural Network (ANN) models.
<h3>What is a Supervised Machine Learning?</h3>
Machine learning (ML) is a subcategory of artificial intelligence that refers to the process by which computers develop pattern recognition or the ability to continually learn or make predictions based on data, and then make adjustments without being specifically programmed to do so.
In the supervised machine learning, the computer is given a labeled dataset that allows it to learn how a human does a task. This is the least complex model as it attempts to replicate human learning.
see more about computing at: brainly.com/question/2175764
#SPJ1