Functions — Flashcards
ICSE · Class 11 · Artificial Intelligence
40 flashcards for Functions (ICSE Class 11 Artificial Intelligence) to test yourself on key terms and facts. Sample: "What is a function in Python?"
Interactive on Super Tutor
Studying Functions? Get the full interactive chapter.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for flashcards and more.
Free trial, no card needed.
What is a function in Python?
Answer
A function is a block of organized, reusable code that performs a specific task. It runs only when it is called. Functions help make a program structured and easier to manage.
Why are functions useful in programming?
Answer
Functions improve modularity, reduce repeated code, and make programs easier to understand, maintain, and debug. A large program can be divided into smaller parts, and each part can do one specific ta…
What are built-in functions?
Answer
Built-in functions are functions already present in Python and always available for use. No additional module import is needed to use them. Examples include int(), float(), input(), eval(), min(), max…
What does int() do?
Answer
int() converts a value into an integer. If a floating-point number is given, the decimal part is removed. If a non-numeric string is given, it causes an error. Examples: int("3") -> 3, int(34.8) -> 34…
What happens when int('Delhi') is used?
Answer
It results in a ValueError because 'Delhi' is a non-numeric string and cannot be converted to an integer.
What does float() do?
Answer
float() returns a floating-point number from a number or a numeric string. Examples: float(34) -> 34.0, float(22+23) -> 45.0, float(12+(1/4)) -> 12.75, float("33") -> 33.0.
What happens when float('delhi') is used?
Answer
It results in a ValueError because the string cannot be converted to a floating-point number.
What does input() do?
Answer
input() accepts an input string from the user without evaluating it. Whatever is entered is converted into a string. Program flow stops until the user gives input. The prompt is optional.
+32 more flashcards
Practise AllFrequently Asked Questions
What are the important topics in Functions for ICSE Class 11 Artificial Intelligence?
How many flashcards are available for Functions?
How should I revise Functions for Class 11 exams?
Sources & Official References
Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.
More resources for Functions
Practice Quiz
Test yourself with a quick quiz
Important Questions
Exam-style questions with answers
Revision Notes
Key points for last-minute revision
Formula Sheet
The chapter's formulas in one place
Chapter Summary
Understand the chapter at a glance
Concept Maps
See how topics connect
Study Plan
Step-by-step plan for this chapter
Syllabus
What topics to cover
For serious students
Get the full Functions chapter — start free.
Quizzes, flashcards, an AI doubt solver and a study plan for ICSE Class 11 Artificial Intelligence. Free to start, no card needed.