Answer:
Option d (Auto Size) is the correct answer.
Explanation:
In a C# programming language, when a user needs to create a Windows Forms Label, then he needs to specify the property of label that how the label will look like and where the label fits and what is the size of that label. Following are the property which has a different meaning and a user need to specify when he creates a label--
- Fit states that the label to fix in the size.
- Text align states that the item of the toolbar is fixed in the center.
- The Middle center states that the item is fixed in the middle.
- Auto Size helps that the size of the control can be automatically resized.
The above question asked about that property which is used to automatically resize the control. So the answer is Auto size which is described above. Hence Option d is the correct answer while the other is not because--
- Option a state about 'Fit' property which is used to fix the label size.
- Option b states about 'Text align' property which is used to fix items of the toolbar in the center.
- Option c states about 'Middle center' property which is used to fix the item in the middle.
Answer:
negatives = []
zeros = []
positives = []
while True:
number = input("Enter a number: ")
if number == "":
break
else:
number = int(number)
if number < 0:
negatives.append(number)
elif number == 0:
zeros.append(number)
else:
positives.append(number)
for n in negatives:
print(n)
for z in zeros:
print(z)
for p in positives:
print(p)
Explanation:
Initialize three lists to hold the numbers
Create a while loop that iterates until the user enters a blank line
Inside the loop:
If the number is smaller than 0, put it in the negatives list
If the number is 0, put it in the zeros list
Otherwise, put the number in the negatives list
When the while loop is done, create three for loops to print the numbers inside the lists
That is program ............