GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

chapter 6 review

Naina Minhas 19 Fragen Aktualisiert am 13 Dez 2022

Quiz starten

Fragen in diesem 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

Informationen

Beschreibung
Computer Science Quiz am chapter 6 review, erstellt von Naina Minhas am 16/10/2022.
Sprache
English
Aufrufe
4
Verlauf
Erstellt am 16 Okt 2022 · aktualisiert am 13 Dez 2022
Schlagwörter
computer science
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck