Question
Question 1 If Number is an integer value, what would be value displayed as a result of the following assignment? (Note: if there are any
Question 1
If Number is an integer value, what would be value 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("Hello")
Write Number
Flag this Question
Question 2
If Number = 3.5, what would be the result of the following conditional statement? True or false?
Floor(Number/2) == Number/2
True |
False |
Flag this Question
Question 3
The ___________ allows for output from Print statements to occur on a new line.
Flag this Question
Question 4
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
Flag this Question
Question 5
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
Flag this Question
Question 6
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.)
Flag this Question
Question 7
The ___________ function computes square roots. (For your answer, enter only the function, not any parameters that the function can carry.)
Flag this Question
Question 8
If Number = 7, what would be the result of the following conditional statement? True or false?
Sqrt(Number) == Int(Sqrt(Number))
True |
False |
Flag this Question
Question 9
If Number = 6, what is the range of possible numbers that can result from the following?
Floor(Random() * Number)
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.)
Flag this Question
Question 10
The ___________ function converts a floating point number to an integer by dropping the fractional part of the number. (For your answer, enter only the function, not any parameters that the function can carry.)
Flag this Question
Question 11
If Number = 7, what would be the result of the following conditional statement? True or false?
Sqrt(Number * Number) == Int(Sqrt(Number * Number))
True |
False |
Flag this Question
Question 12
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("Hermione Hatfield")
Write Number
Flag this Question
Question 13
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
Flag this Question
Question 14
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.)
0 through 3
Flag this Question
Question 15
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
Flag this Question
Question 16
If Number = 25, what would be the result of the following conditional statement? True or false?
Sqrt(Number) == Floor(Sqrt(Number))
True |
False |
Flag this Question
Question 17
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() * 10) + Number
The range starts at .
The range ends at .
Flag this Question
Question 18
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.)
2 through 7
Flag this Question
Question 19
The starting value of an algorithm used to generate a range of numbers is called the _________.
Flag this Question
Question 20
If Num = 6.89, what value would be displayed as a result of the following assignment?
Set Num = Ceiling(Num)
Flag this Question
Question 21
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 .
Flag this Question
Question 22
If Num = 4.22, what value would be displayed as a result of the following assignment?
Set Num = Ceiling(Num)
Write Num
Flag this Question
Question 23
The __________ statement indicates output to the screen with the assumption that each new statement would begin on a new line.
Flag this Question
Question 24
The _____________ function takes a string or a string variable inside the parentheses and returns the number of characters in that string.
Flag this Question
Question 25
If one For loop is nested within another, then the counter variables for the two loops should be _________.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started