When should my headlights be turned on?
Why shouldn't one take medication before driving?
Why must you use a turn signal?
I'm not sure about that last one because I forgot but I think its right.
Answer:
b.1
Explanation:
When we are using while loop to compute the product of several values we need to initialize the value holding the product to 1 because when we multiply something with 1 it will give the same number.
If we initialize it with 0 the product will come out to be 0 because anything multiplied by 0 is 0.
we cannot initialize it with NULL because it is not a pointer.
We need to initialize the number since it contains garbage values so it will give product with that value.
Answer:
The constructor signature is defined as the constructor name followed by the parameter list.
Explanation:
In object oriented programming, a class constructor is a special method that will run automatically whenever a new object is created from the class. The constructor name is same with the class name. Besides, the class constructor is often used to initialize the attributes with initial values. Those initial values are held by the parameter list of the constructor.
One example of the constructor defined in a Java class is as follows:
// class name
public class BankAccount {
// attribute names
private String holder;
private double amount;
// constructor name
public BankAccount(String holder, double amount) // parameter list
{
this.holder = holder;
this.amount = amount
}
}
Answer:
total=0
pet=input("what pet do you have? ")
while pet!= "rock":
total=total+1
print("you have a "+pet+" with a total of "+ str(total)+ " pet(s)")
pet=input("What pet do you have? ")
Explanation: Just copy and paste above again just copy and paste this will get you a 100 percent i made another account just to give yall edhesive answers if yall need help with any edhesive just comment below