Answer:
def countup():
pass
def countdown():
pass
x = int(input("Choose a number: "))
if x >= 0:
countup()
if x < 0:
countdown()
Explanation:
I start by getting a user input which is saved to variable called "x." I then make if statements to see whether is greater than, equal to, or less than 0. After that, I call the functions.
What type of output are u looking for
Answer:
while(is_sunny=="n")
Explanation:
The loop keeps repeating itself until a certain condition is met.
Here while loop keeps executing until value of is_sunny is not equal to 'n'
When the value of is_sunny is not equal to n then the loop stops.
So lets explain this logic with a chunk of code:
#include <iostream> //to use input output functions
using namespace std; //to identify objects like cin cout
int main() { //start of main function
string is_sunny = "n"; //value of is_sunny is set to n
cout<<"Enter value of is_sunny: "; // prompts user to enter value of is_sunny
cin>>is_sunny; // reads value of is_sunny from user
while(is_sunny=="n") // keeps iterating until value of is_sunny is not equal to n
{ cout<<"keep executing until is_sunny is not equal to n"<<endl;//display this message with each iteration
cout<<"Enter value of is_sunny: "; //keeps prompting to enter is_sunny
cin>>is_sunny; } } //keeps reading value of is_sunny from user
Now if the user keeps entering "n" as value of is_sunny then the loop keeps repeating. When the user enters any string other than n then the loop breaks. The output of the program is attached.
Answer:
(B) plug and play
Explanation:
If a device does not require a driver, it is <u>plug and play</u>. Plug and Play (PnP) is a combination of hardware and software support that enables a computer system to recognize and adapt to hardware configuration changes with little or no intervention by a user, including the loading of appropriate drivers.
Answer:
Block Inheritance.
Explanation:
Block Inheritance:-It is used to block the inheritance of the GPOs.If in the setting Block inheritance is enabled the inheritance of GPOs will get blocked.This is the way to block GPOs inheritance as they can be inherited by default .So the for the case given Block Inheritance is best suited.