Functions
ICSE · Class 11 · Artificial Intelligence
Flashcards for Functions — ICSE Class 11 Artificial Intelligence. Quick Q&A cards covering key concepts, definitions, and formulas.
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.
1,000+ Class 11 students started this chapter today
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 available
Practice AllFrequently Asked Questions
What are the important topics in Functions for ICSE Class 11 Artificial Intelligence?
How to score full marks in Functions — ICSE Class 11 Artificial Intelligence?
How many flashcards are available for Functions?
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
Practice with board exam-style questions
Revision Notes
Key points for last-minute revision
Formula Sheet
All formulas in one place
Chapter Summary
Understand the chapter at a glance
Concept Maps
See how topics connect visually
Study Plan
Step-by-step plan to ace this chapter
Syllabus
What topics to cover
NCERT Solutions
Every textbook question solved step by step
For serious students
Get the full Functions chapter — for free.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan for ICSE Class 11 Artificial Intelligence.