¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

chapter 6 review

Naina Minhas 19 preguntas Actualizado el 13 dic 2022

Hacer el test

Preguntas del test (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

Información

Descripción
Computer Science Test sobre chapter 6 review, creado por Naina Minhas el 16/10/2022.
Idioma
English
Visitas
4
Historial
Creado el 16 oct 2022 · actualizado el 13 dic 2022
Etiquetas
computer science
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?