Answer: Image preloading
Explanation:
The Image Preloading process can be describes as follows:
1. Using the new keyword an instance of the image object is created.
2. The src property and the flename of the image is set be equal.
3. Then image is downloaded into the cache with displaying it.
4. The src property is set equal to the prefetched image when it is required to display the image.
Answer:
physical component
Explanation:
Well, softwares are the applications and anything installed inside the computer but hardware isn't installed, it's just been connected by wires
Answer:
is_even = 0
int_numbers = []
for n in range(4):
n = int(input('press any four integer numbers')
int_numbers.append(n)
for n in int_numbers:
if n%2==0:
print(n, 'integer is even')
is_even+= 1
else:
print(n, 'integer is odd')
print('Total even numbers =', is_even)
Explanation:
is_even = 0 (initiates a counter to record the number of even integers).
int_numbers creates a list to store the inputs entered by the user.
int(input()) : allows users to enter an integer number
int_numbers.append(n) : adds user input to list list variable created.
n%==2 : checks if entered digit leaves a remainder of 0 when divided by 2; hence an even number
is_even+= 1: counter updates by 1 for every even number confirmed.
Answer:
Following are the code to this question:
def sortIt(l): # defining a method sortIt
l.sort() # Using Sort method
return l #return list value
l= [55,66,23,10,12,4,90] #defining a list and assign a value
print (sortIt(l)) #call the method and print its return value
Output:
[4, 10, 12, 23, 55, 66, 90]
Explanation:
The description of the above python code can be given as follows:
- In the first step, A method "sortIt" is declared, that accepts a list in its parameter, inside the method an inbuilt method, that is "sort()" is used.
- This method is used to arrange all the data into ascending order. This method takes a list that is "l" and convert all value ascending order, and return its value.
- In the last step, the list "l" is defined, that stores number and pass into the method, and print is the return value.