Reference no: EM132340248
Question 1
The function ________ comprises one or more statements that are executed when the function is called.
- Definition
- Header
- Body
- Datatype
- None of these
Question 2
What term is used in the ending terminal symbol of a function flowchart?
- Return
- End
- Function End
- Function Return
- None of these
Question 3
Examine the following piece of code and determine the data type of the function's return value.
Function Real sum (Integer num1, Integer num2)
Declare Integer result
Set result = num1+ num2
Return result
End Function
- Real
- Integer
- Sum
- result
- None of these
Question The function ________ specifies the return data type, name of the function, and the parameter variable(s).
- Definition
- Body
- Header
- Statement
- None of these
Question 5
The ________ function does the same thing as using the mathematical ∧ operator.
- sqrt
- abs
- round
- pow
- cos
Question 6
Which of the following errors occur when a real value is attempted to be assigned to an integer variable?
- Integer value
- Type mismatch
- Conversion
- Assignment
- None of these
Question 7
Which of the following statements is true after the execution of the following statement?
Set needANumber = random(5,10)
- A random number is generated between 5 and 10.
- The random number is assigned to the variable needANumber.
- The numbers 5 and 10 are the arguments of the random number function.
- All of these
- None of these
Question 8
Which function returns a string within a string?
- Append
- Concatenate
- Contains
- Substring
- None of these
Question 9
Which of the following statements is true after the execution of the following statement?
Y = abs(x)
- y contains the absolute value of x
- x contains the absolute value of y
- x contains the absolute value of the value in y
- y contains the absolute value of the value in x
- None of these
Question 10
The variable r would contain the value ________ after the execution of the following statement.
Declare Integer i = 12
Declare Real r
Set r = toReal (i)