Not sure what quizScore1-5 is, but here it is. Also, I'm not entirely sure what language you're working with here, but null can't be returned as an integer. If it were a string, for example, it'd be possible as string is an object reference type.
public int getData(int dataNumber)
{
if (dataNumber == 1)
return quizScore1;
else if (dataNumber == 2)
return quizScore2;
else if (dataNumber == 3)
return quizScore3;
else if (dataNumber == 4)
return quizScore4;
else if (dataNumber == 5)
return quizScore5;
else
return 0;
}
The user cannot close all the programs if he closes the open virtual desktop.
<h3>What are virtual desktops?</h3>
A virtual desktop is a computer operating system that does not run directly on the endpoint hardware from which a user accesses it. The desktop environment is separated from the physical device used to access it.
I call it a false desktop.
It is use to separate your work activities.
Therefore, the user cannot close all the programs if he closes the open virtual desktop.
learn more on virtual desktop here: brainly.com/question/14332029
#SPJ12
Answer:
Awww what happened? Sometimes its hard for me to keep a promise.
Explanation:
The two access modes that are used when opening a file for input and output when pickling are rb and wb.
<h3>What is pickling?</h3>
Pickle is generally used in Python to serialize and deserialize a Python object structure. In other words, it is the act of transforming a Python object into a byte stream in order to save it to a file/database, maintain program state across sessions, or transport data over a network. By unpickling the pickled byte stream, the original object hierarchy can be recreated. This entire procedure is comparable to object serialization in Java or .Net.
When a byte stream is unpickled, the pickle module first makes an instance of the original object before populating it with the right data. To accomplish this, the byte stream only carries data relevant to the original object instance.
To learn more about python visit:
brainly.com/question/13437928
#SPJ4
Answer: (C) to reduce or eliminate future bank panics.
Explanation:
The Federal Reserve System being the central reserve system in the US was created with the primary objective of reducing and eliminating bank panics in periods of recessions and depressions and other bank related matters.