Functions and Procedures

A function or procedure is a reusable block of code, usually given a name, that performs a specific task, which a program can call from multiple places instead of repeating the same instructions. Some languages formally distinguish the two, a function typically returns a value while a procedure does not, but many modern languages, including the ones commonly used to teach programming, use only one term, function, to cover both cases.

This explanation is AI-generated and can occasionally be wrong.

Vibistic AI

🔒 We never store your messages. The free built-in AI runs through Vibistic's own server, on Cloudflare's own AI infrastructure. You can also add your own API key to send messages straight from your browser to your AI provider instead.

  • Ask a question about Functions and Procedures, like "can you give me another example?"

Your notes

Test your knowledge

This test is AI-generated and can occasionally be wrong. If something looks off, use Report below.

No API key configured yet. Clicking below will ask whether to add one or take a free version of this test when one is available.