NSCT – Functions / Methods MCQs

20 min Score: 0 Attempted: 0/20 Subscribe
1. What is a function in programming?





2. What is another name for a function in some languages?





3. Why are functions used in programming?





4. What is the part of a function where input values are received called?





5. What is the value returned by a function called?





6. Which keyword is commonly used to send a value back from a function?





7. What is a function that does not return a value called?





8. What is a function without parameters called?





9. What is a function with input parameters called?





10. What is it called when a function calls itself?





11. Which of the following is a benefit of using functions?





12. Where is the code of a function written?





13. How is a function executed in a program?





14. What is a function prototype?





15. Can functions be called from other functions?





16. Which of the following can functions NOT do?





17. What is the main difference between a function and a procedure?





18. Can functions help in reducing code repetition?





19. Which term describes the use of a function without knowing its internal details?





20. Can functions be defined inside other functions in some programming languages?





All Copyrights Reserved 2025 Reserved by T4Tutorials