GoConqr has a new look! Let us know what you think.

Quiz

chapter 6 review

Naina Minhas 19 questions Updated 13 Dec 2022

Take the quiz

Questions in this quiz (19)

  1. 1Which of the following statements is true after the execution of the following statement?
    y = abs(x)
    1. Ay contains the absolute value of x
    2. Bx contains the absolute value of y
    3. Cx contains the absolute value of the value in y
    4. Dy contains the absolute value of the value in x
    5. ENone of the above
  2. 2What is the data type of the value returned by the random library function?
    1. AString
    2. BInteger
    3. CBoolean
    4. DReal
    5. ENone of these
  3. 3This statement causes a function to end and sends a value back to the part of the program that called the function.
    1. AEnd
    2. BSend
    3. CExit
    4. DReturn
  4. 4This is an example of a data type conversion function.
    1. Asqrt.
    2. BtoReal
    3. Csubstring
    4. DisNumeric
  5. 5The term ________________ is used to describe any mechanism that accepts input performs some operation that cannot be seen on the input and produces output.
    1. ABlack box
    2. BWhite cube
    3. CBlack cube
    4. DNone of the above
  6. 6Random numbers are commonly used in which type of program?
    1. AGames
    2. BStatistical analysis
    3. CData encryption
    4. DSimulations
    5. Eall of these
  7. 7A __________ is a module that returns a value back to the part of the program that called it.
    1. Astructure
    2. Bdecision
    3. Cfunction
    4. Dloop
  8. 8Which function accepts two strings as arguments returns 'True' if the first string contains the second string and otherwise returns 'False'?
    1. AContains
    2. BAppend
    3. CSubstring
    4. DConcatenate
    5. ENone of the above
  9. 9This part of a function definition specifies the data type of the value that the function returns.
    1. Aheader
    2. Bfooter
    3. Cbody
    4. DReturn statement.
  10. 10The ________ function does the same thing as using the mathematical ^ operator.
    1. Aabs
    2. Bpow
    3. Cround
    4. Dcos
    5. Esqrt

Information

Description
Computer Science Quiz on chapter 6 review, created by Naina Minhas on 16/10/2022.
Language
English
Views
4
History
Created on 16 Oct 2022 · updated on 13 Dec 2022
Tags
computer science
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?