Answer:
Option c is correct.
Example :
public class Subject
{
public static void main(String [] args)
{
int ar[]={5,4,6,7,8};
System.out.println("the number of array elements are: ",ar.length);
}
}
Explanation:
The above program is created in java language in which Subject is a class name.Inside Subject class , there is main method.
Inside the main method, there is An array named 'ar' which data type is an integer and we have assigned the value to this array.
in the next line, we are printing the total no. of the element in the array with the length function which displays the length of an array or variable.
Answer:
- def getLargest(number_list):
- new_list = []
-
- for x in number_list:
- if(isinstance(x, int)):
- new_list.append(x)
-
- largest = max(new_list)
-
- return largest
Explanation:
Firstly, create a function <em>getLargest()</em> that take one input parameter, <em>number_list</em>.
The function will filter out the float type number from the list by using <em>isinstance() </em>method (Line 5). This method will check if a current x value is an integer. If so, the x value will be added to <em>new_list</em>.
Next, use Python built-in <em>max</em> function to get the largest integer from the <em>new_list </em>and return it as output.
Answer:
Bill Gates
Explanation:
Bill Gates is known as one of the richest entrepreneurs in the world. He is responsible for creating the largest computer and technology business in the world, Microsoft. In the company's early days, no one would have thought that it would change both America and the world from that point on.
When Gates first created Microsoft,
Middle class Americans could now purchase a personal computer that would not put a set back in their bank account.As soon as personal computers started hitting the mainstream market, the demand for improvement began. People wanted their machines to boot up faster, have larger memory, have improved programming, and be easier to use. Luckily Gates already knew the people would have these needs, so development was already underway.
Answer:
for count in range (5,8): numA=numA+count print(numA)
Explanation:
Answer: A. Validation rule
Explanation:
Validation rules can be used to ensure that fields are populated because they can verify if the data being inputted meet the requirements of the administrators by returning a 'True' or 'False' response after testing. If the result is false, the user will be unable to move on until they adjust the field.
For example, Field length checks on websites are a Validation rule where you are only allowed to input a set number of characters and anything less or more will be denied, such as in the case of inputting phone numbers.
By including a Validation Rule that the LeadSource field of the Lead record be populated when a Lead is converted, the developer will be able to make sure that a user populates the Lead Source field prior to converting a Lead.