O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Chapter 6 (Functions)

Usuário eliminado O usuário eliminou as informações de disciplina Inglês 28 flashcards

Flashcards do conjunto (28)

  1. 1This is a prewritten function that is built into a programming language.Library Function
  2. 2This term describes any mechanism that accepts input, performs some operation that cannot be seen on the input, and produces output.Black Box
  3. 3This part of a function definition specifies the data type of the value that the function returns, the name of the function, and any parameter variables used by the function to accept arguments.Header
  4. 4This part of a function definition is comprised of one or more statements that are executed when the function is called.Body
  5. 5In pseudocode, this statement causes a function to end and sends a value back to the part of the program that called the function.Return
  6. 6This is a design tool that describes the input, processing, and output of a function.IPO Chart
  7. 7This type of function returns either "True" or "False". Used to test a condition.Boolean
  8. 8True/False: "toReal" is an example of a data type conversion function in pseudocode.True
  9. 9This type of error occurs when you try to assign a value of one data type to a variable of another data type.Type Mismatch Error
  10. 10This is a string within another string.Substring
  11. 11A module that returns a value back to the part of the program that called it.Function
  12. 12What does "IPO" stand for?Input, Processing, and Output
  13. 13The process of configuring programming languages for a specific country is known as _____.Localization
  14. 14The process of appending one string to the end of another string is known as _____.Concatenation
  15. 15_____ means that uppercase characters are distinguished from the lowercase characters.Case-Sensitive
  16. 16_____ means that the case of the characters within a string is ignored.Case-Insensitive
  17. 17How does a function differ from a module?A function ends up returning a value back to to where it was called when it finishes, unlike a module which doesn't return any value and just goes back to where it was called.
  18. 18True/False: When creating a flowchart for a program that has a function, you draw a separate flowchart for each function.True
  19. 19What does the starting terminal read in a separate flowchart for a function? What does the ending terminal read?The starting terminal usually shows the name of the function, along with any parameters that the function has.
    The ending terminal reads "Return" followed by the value or expression that is being returned.
  20. 20True/False: In most programming languages you can pass as many arguments into a function as you need, but you can return only one value from a function.True
  21. 21True/False: IPO charts provide only brief descriptions of a function's input, processing, and output, as well as the specific steps taken in the function.False: IPO chart don't show the specific steps taken in a function.
  22. 22True/False: The decision of whether to use an IPO chart, a flowchart, or both is often left to the programmer's personal preference.True
  23. 23A _____ function is a function that returns either "True" or "False". It is useful for simplifying complex conditions that are tested in decision and repetition structures.Boolean
  24. 24Most programming languages provide several _____ functions. These functions typically accept one or more values as arguments, perform a mathematical operation using the arguments, and return the result.Mathematical Library
  25. 25True/False: The code for a library function must appear in a program in order for the program to call the library function.False: Library functions are built into most programming languages which means that they don't require a separate program to be called.
  26. 26True/False: In many languages it is an error to assign a real number to an integer variable.True
  27. 27True/False: In some languages you must use a library function to raise a number to a power.True
  28. 28True/False: Complex mathematical expressions can sometimes be simplified by breaking out part of the expression and putting it in a function.True

Informações

Descrição
O usuário eliminou as informações de disciplina FlashCards sobre Chapter 6 (Functions), criado por Usuário eliminado em 12-01-2021.
Criado por
Usuário eliminado
Visualizações
18
Histórico
  • Criado por Andrew Lewis · 14 dez 2020
  • Copiado por Andrew Lewis · 12 jan 2021
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?