Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. If Number = 4, what is the range of possible numbers that can result from the

ID: 3708415 • Letter: 1

Question

1. If Number = 4, what is the range of possible numbers that can result from the following? (Note, this question has 2 parts; you must answer each part correctly. Enter only the numbers in the space provided.)

          Floor(Random() * 10) + Number

The range starts at .

The range ends at .


2. Write a random generator statement that produces random integers in the following range; store the result in a variable called Range. (Do not include spaces in your answer.)

1 through 4

3. The _____________ function takes a string or a string variable inside the parentheses and returns the number of characters in that string

4. If Number = 25, what would be the result of the following conditional statement? True or false?

Sqrt(Number) == Floor(Sqrt(Number))

True

False

5. If Number is an integer value, what would be displayed as a result of the following assignment? (Note: if there are any spaces, it is assumed to be one space.)

Set Number = Length_Of(" ")

Write Number





6. If Number = 64, what would be the result of the following conditional statement? True or false?

Floor(Sqrt(Number/2)) == Sqrt(Floor(Number/2))

True

False




7. ____________ numbers are numbers that belong to a sequence, generated by a mathematical algorithm, in which each number is equally likely to occur.


8. If Number = 7, what would be the result of the following conditional statement? True or false?

Sqrt(Number) == Int(Sqrt(Number))

True

False



9. The ___________ allows for output from Print statements to occur on a new line.

Numbers that form an unpredictable sequence in which each number is equally likely to occur are called __________ numbers.





10. If Num1 = 5.6 and Num2 = 3, what value would be displayed as a result of the following assignment?

Set Number = Floor(Num1 * Num2)

Write Number






11. The following random generator code Floor(Random()*6) produces the numbers   through . (Note, this question has 2 parts; you must answer each part correctly to receive full marks. Enter only the numbers in the space provided.)




12. If Num1 = 3.2 and Num2 = 5, what value would be displayed as a result of the following assignment?

Set Number = Int(Num2 - Num1)

Write Number




13. If Number = 4, what is the range of possible numbers that can result from the following? (Note, this question has 2 parts; you must answer each part correctly to receive full marks. Enter only the numbers in the space provided.)

Floor(Random() * Number)

The range starts at .

The range ends at .


14. If one For loop is nested within another, then the counter variables for the two loops should be _________.




15. If Number = 6, what is the range of possible numbers that can result from the following?

Floor(Random() * Number) + 3

The range starts at .

The range ends at .

(Note, this question has 2 parts; you must answer each part correctly to receive full marks. Enter only the numbers in the space provided.)




16. The random generator code Floor(Random()*6) produces the numbers through . (Note, this question has 2 parts; you must answer each part correctly to receive full marks. Enter only the numbers in the space provided.)



17. It's possible to __________ out of a loop if the user has entered an incorrect value that would cause an error or a problem within the loop, or if the user has entered a required response end the program can continue without further iterations of the loop.



18. If Num = 4.22, what value would be displayed as a result of the following assignment?

Set Num = Ceiling(Num)

Write Num




19. If Number = 3.5, what would be the result of the following conditional statement? True or false?

Floor(Number*Number) == Number*Number

True

False




20. If Num1 = 5.6 and Num2 = 3, what value would be displayed as a result of the following assignment?

Set Number = Floor(Num1 / Num2)

Write Number





21. If Num = 6.89, what value would be displayed as a result of the following assignment?

Set Num = Ceiling(Num)


22. If Number is an integer value, what would be displayed as a result of the following assignment? (Note: if there are any spaces, it is assumed to be one space.)

Set Number = Length_Of("Good-bye!")

Write Number



23. The ___________ function computes square roots. (For your answer, enter only the function, not any parameters that the function can carry.)

Explanation / Answer

1. If Number = 4, what is the range of possible numbers that can result from the following? (Note, this question has 2 parts; you must answer each part correctly. Enter only the numbers in the space provided.)

Floor(Random() * 10) + Number

The range starts at "4".

The range ends at "13".

2. Write a random generator statement that produces random integers in the following range; store the result in a variable called Range. (Do not include spaces in your answer.)

1 through 4


3. The "Length_Of" function takes a string or a string variable inside the parentheses and returns the number of characters in that string


4. If Number = 25, what would be the result of the following conditional statement? True or false?

Sqrt(Number) == Floor(Sqrt(Number))

"True"


5. If Number is an integer value, what would be displayed as a result of the following assignment? (Note: if there are any spaces, it is assumed to be one space.)

Set Number = Length_Of(" ")

Write Number

"Number = 1"


6. If Number = 64, what would be the result of the following conditional statement? True or false?

Floor(Sqrt(Number/2)) == Sqrt(Floor(Number/2))

"True"

7. ____________ numbers are numbers that belong to a sequence, generated by a mathematical algorithm, in which each number is equally likely to occur.

8. If Number = 7, what would be the result of the following conditional statement? True or false?

Sqrt(Number) == Int(Sqrt(Number))

"False"


9. The "new line character OR " allows for output from Print statements to occur on a new line.

Numbers that form an unpredictable sequence in which each number is equally likely to occur are called "Set" numbers.


10. If Num1 = 5.6 and Num2 = 3, what value would be displayed as a result of the following assignment?

Set Number = Floor(Num1 * Num2)

"Number = 16"

11. The following random generator code Floor(Random()*6) produces the numbers through . (Note, this question has 2 parts; you must answer each part correctly to receive full marks. Enter only the numbers in the space provided.)

12. If Num1 = 3.2 and Num2 = 5, what value would be displayed as a result of the following assignment?

Set Number = Int(Num2 - Num1)

Write Number

"Number = 1"

13. If Number = 4, what is the range of possible numbers that can result from the following? (Note, this question has 2 parts; you must answer each part correctly to receive full marks. Enter only the numbers in the space provided.)

Floor(Random() * Number)

The range starts at "0".

The range ends at "3".

14. If one For loop is nested within another, then the counter variables for the two loops should be "integers".

15. If Number = 6, what is the range of possible numbers that can result from the following?

Floor(Random() * Number) + 3

The range starts at "3".

The range ends at "6".

(Note, this question has 2 parts; you must answer each part correctly to receive full marks. Enter only the numbers in the space provided.)

16. The random generator code Floor(Random()*6) produces the numbers through . (Note, this question has 2 parts; you must answer each part correctly to receive full marks. Enter only the numbers in the space provided.)


17. It's possible to "break" out of a loop if the user has entered an incorrect value that would cause an error or a problem within the loop, or if the user has entered a required response end the program can continue without further iterations of the loop.


18. If Num = 4.22, what value would be displayed as a result of the following assignment?

Set Num = Ceiling(Num)

Write Num

"Num = 5"

19. If Number = 3.5, what would be the result of the following conditional statement? True or false?

Floor(Number*Number) == Number*Number

True

"False"

20. If Num1 = 5.6 and Num2 = 3, what value would be displayed as a result of the following assignment?

Set Number = Floor(Num1 / Num2)

Write Number

"Number = 1"

21. If Num = 6.89, what value would be displayed as a result of the following assignment?

Set Num = Ceiling(Num)

"Num = 7"

22. If Number is an integer value, what would be displayed as a result of the following assignment? (Note: if there are any spaces, it is assumed to be one space.)

Set Number = Length_Of("Good-bye!")

Write Number

"Number = 10"


23. The "sqrt" function computes square roots. (For your answer, enter only the function, not any parameters that the function can carry.)