Study the RandomNumber. Frm code and its output first. Use your answers that you put on paper from the assignment. After you are finished, read the corrections and the explanations that go with them. Even if you got all the answers correct, please read the explanations that are provided below the problem. See moreIf you did not get 100%, click on Try Again at the bottom. Correct your paper answers as well.
The output is the same because I did it correctly.
The output is different because the numbers are random.
Rate this question:
Dim LessOne As Single
Randomize
LessOne = Rnd
LblLessOne = LessOne
Rate this question:
Dim LessTen As Single
Randomize
LessTen = 10 * Rnd
LblLessTen = LessTen
Rate this question:
Dim UpTo5 As Integer
Randomize
UpTo5 = 5 * Rnd
LblUpTo5 = UpTo5
Rate this question:
Dim UpTo100 As Integer
Randomize
UpTo100 = 100 * Rnd
LblUpTo100 = UpTo100
Rate this question:
Dim UpTo100 As Integer
Randomize
UpTo100 = 100 * Rnd
LblUpTo100 = UpTo100
Rate this question:
Randomize
Rnd
LessOne
Random
Rate this question:
Integers
Decimals (Single)
Rate this question:
0
1
2
10
Rate this question:
A random decimal number less than 10 such as 2.3482 or 9.3627
A random integer less than 10 such as 2 or 9
A random decimal number between 0 and 1 such as .23 or .93
A random integer as small or big as the computer will allow
Rate this question:
A random decimal less than 5
A random decimal from 0 to 5
A random integer from 0 to 5
A random integer from 0 to 5000
Rate this question:
300
.3
3.3
33
13
Rate this question:
UpTo33 = Rnd
UpTo33 = 33 * Rnd
UpTo33 = 10 * Rnd
UpTo33 = Rnd + 13
Rate this question:
True
False
Rate this question:
UpToTop = 10 * Rnd
UpToTop = Top * Rnd
UpToX = Top * Rnd
UpToHigh = Top * Rnd
UpToX = X * Rnd
Rate this question:
Quiz Review Timeline (Updated): May 6, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.