Skip to main content
Chapter 7 of 11
Flashcards

Functions

Karnataka Board · Class 11 · Computer Science

Flashcards for Functions — Karnataka Board Class 11 Computer Science. Quick Q&A cards covering key concepts, definitions, and formulas.

44 questions22 flashcards5 concepts
22 Flashcards
Card 1Introduction to Functions

What is a function in programming?

Answer

A function is a named group of instructions that accomplish a specific task when invoked. It allows code reusability, better organization, and modular programming. Functions can accept inputs (paramet

Card 2Introduction to Functions

What is modular programming and why is it useful?

Answer

Modular programming is the process of dividing a computer program into separate independent blocks of code with specific functionalities. Benefits: increases readability, reduces code length, increase

Card 3User Defined Functions

Write the syntax for creating a user-defined function in Python.

Answer

def <Function_name>([parameter1, parameter2,...]): set of instructions to be executed [return <value>] Note: Function header ends with colon (:), parameters are optional, return statement is

Card 4Arguments and Parameters

What is the difference between an argument and a parameter?

Answer

Parameter: A variable defined in the function header that receives values when the function is called. Argument: The actual value passed to the function during the function call. Example: In def add(a

Card 5Arguments and Parameters

What are default parameters in Python functions? Give an example.

Answer

Default parameters are parameters with predefined values that are used when the function call doesn't provide corresponding arguments. Example: def greet(name, msg='Hello'): print(f'{msg}, {name}'

Card 6Functions Returning Value

What is a void function? Give an example.

Answer

A void function is a function that does not return any value using the return statement. It performs operations but doesn't send back any result. Example: def display_message(): print('Welcome to

Card 7Functions Returning Value

How can a Python function return multiple values? Show with example.

Answer

Python functions can return multiple values using tuples. The values are automatically packed into a tuple. Example: def calc_area_perimeter(length, breadth): area = length * breadth perimeter

Card 8Flow of Execution

What is the flow of execution in Python programs with functions?

Answer

Flow of execution is the order in which statements are executed: 1. Python starts from the first statement 2. Executes statements sequentially from top to bottom 3. When a function call is encountered

+14 more flashcards available

Practice All

Get detailed flashcards for Functions

Super Tutor gives you interactive content for every chapter of Karnataka Board Class 11 Computer Science — summaries, quizzes, flashcards, and more.

Try Super Tutor — It's Free

Frequently Asked Questions

What are the important topics in Functions for Karnataka Board Class 11 Computer Science?

Functions covers several key topics that are frequently asked in Karnataka Board Class 11 board exams. Focus on the core concepts listed on this page and practise related questions to build confidence.

Start by understanding all key concepts. Practise previous year questions from this chapter. Revise formulas and definitions regularly. Use flashcards for quick revision before the exam.

There are 22 flashcards for Functions covering key definitions, formulas, and concepts. Use them daily for 10–15 minutes for best results.

Sources & Official References

Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.