Quiz
chapter 6 review
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (19)
1Which of the following statements is true after the execution of the following statement?
y = abs(x)- Ay contains the absolute value of x
- Bx contains the absolute value of y
- Cx contains the absolute value of the value in y
- Dy contains the absolute value of the value in x
- ENone of the above
2What is the data type of the value returned by the random library function?
- AString
- BInteger
- CBoolean
- DReal
- ENone of these
3This statement causes a function to end and sends a value back to the part of the program that called the function.
- AEnd
- BSend
- CExit
- DReturn
4This is an example of a data type conversion function.
- Asqrt.
- BtoReal
- Csubstring
- DisNumeric
5The term ________________ is used to describe any mechanism that accepts input performs some operation that cannot be seen on the input and produces output.
- ABlack box
- BWhite cube
- CBlack cube
- DNone of the above
6Random numbers are commonly used in which type of program?
- AGames
- BStatistical analysis
- CData encryption
- DSimulations
- Eall of these
7A __________ is a module that returns a value back to the part of the program that called it.
- Astructure
- Bdecision
- Cfunction
- Dloop
8Which function accepts two strings as arguments returns 'True' if the first string contains the second string and otherwise returns 'False'?
- AContains
- BAppend
- CSubstring
- DConcatenate
- ENone of the above
9This part of a function definition specifies the data type of the value that the function returns.
- Aheader
- Bfooter
- Cbody
- DReturn statement.
10The ________ function does the same thing as using the mathematical ^ operator.
- Aabs
- Bpow
- Cround
- Dcos
- Esqrt
11The function ______ specifies the return data type name of the function and the parameter variable(s).
- ADefinition
- BBody
- CHeader
- Dstatement
12Which of the following is optional when writing a function definition?
- AFunction header
- BFunction body
- CData type
- DReturn statement
- ENone of these
13This type of error occurs when you try to assign a value of one data type to a variable of another data type.
- Atype mismatch error
- BBoolean logic error
- Crelational error
- Dbit conversion error
14This is a string inside of another string.
- Asubstring
- Binner string
- Cmini string
- Dcomponent string
15This is a prewritten function that is built into a programming language.
- Astandard function
- Blibrary function
- Ccustom function
- Dcafeteria function
16Examine the following piece of code and state the return value of the function.
Function Integer product (Integer num1 Integer num2)
Declare Real result
Set result = num1 + num2
Return result
End Function- AReal
- BInteger
- CSum
- Dresult
- ENone of these
17 What term is used in the ending terminal symbol of a function flowchart?
- AReturn
- BEnd
- CFunction End
- DFunction Return
- ENone of these
18This is a design tool that describes the input, processing, and output of a function.
- Ahierarchy chart
- BIPO chart
- Cdatagram chart
- Ddata processing chart
19 In the IPO chart the _______ column describes the data that is passed to the function as arguments.
- AOutput
- BFunction
- CProcess
- DInput
- ENone of these.
Information
- Description
- Computer Science Quiz on chapter 6 review, created by Naina Minhas on 16/10/2022.
- Author
- Naina Minhas
- Language
- English
- Views
- 4
- History
- Created on 16 Oct 2022 · updated on 13 Dec 2022
- Tags
- Rating
- No ratings yet Rate this quiz