Answer:
A) Switch
Explanation:
In Java and most programming Languages, A Switch Statement provides a multi branch statements which provides a more flexible way for transfer of execution to the branch that fulfills the condition of the expressed value. This is a better way of handling if...elseif....else statements. In this way, a variable is tested for equality against some values. Variables used in switch expressions can only be primitives (int, byte, char), enums and strings. A switch statement has
1. A default statement (optional), appears at the end of the switch and acts as the else condition.
2. A break statement which terminates the switch when reached.
The syntax of a switch statement is given below:
switch(expression) {
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
}
Keep your eyes on the text and aim to make no mistakes
Answer:
The correct answer to the following question will be Option b ( IT infrastructure).
Explanation:
This refers to either the integrated devices, applications, network infrastructure, as well as facilities needed by an organization This system to function, run, and maintain.
- Your technology infrastructure seems to be the nervous system, which is accountable for supplying end customers with a streamlined operation.
- Total control of both your operating system infrastructure ensures you can guarantee the channel's safety is tracked.
Therefore, it will be a part of the design of Mary.
Answer:
1, I would not be able to contact anyone, or call for help.
2, Stores like Apple would lose their purpose.
3, Life would be boring and dull.
- i hope that helped at all.
Answer:
mystr = input("Enter a string ")
length = len(mystr)
while length<10:
mystr = input("Enter a string ")
length = len(mystr)
if(length>=10):
break
if len(mystr)%2==0:
print(mystr.lower())
else:
print(mystr.upper())
Explanation:
The variable mystr is used to save user's input which is received with the input function
A second variable length is used to save the length of the input string Using a while statement the user is continually prompted to enter a string while length is less than 10.
If length is greater or equal to 10. We check for even or odd using the modulo (%) operator.
We use lower() and upper() to change the case of the string