Define “problem-solving” in the context of computer programming.
List any four flowchart symbols.
State variable.
Define nested loops.
What is a pass statement in Python?
Specify the use of a nested if statement?
What is if-else statement in Python.
Define formal and actual arguments in Python.
Specify lambda function? Write one example.
What are default arguments in Python functions?
a) List out the various operators in python
Or
b) i) Describe input and output functions available in Python with syntax and examples.
ii) Explain Python data types with examples.
a) Discuss the various program design tools (algorithm, flowchart, and pseudocode) with suitable
examples.
Or
b) Explain in detail the problem-solving steps involved in developing a Python program with
examples(10)
write a simple Python program to print “Hello World”(6).
a) Discuss the decision-making statements (if, if-else, elif, and nested if) with syntax and suitable
examples. Or
b) i)Identify looping structures in Python (for and while) with suitable examples.
ii)Write a Python program to display a multiplication table for a given number using for and
while loops.
a) Define a function. Explain the types of functions in Python with examples.
Or
b)i) Specify lambda (anonymous) functions with examples(6).
ii)Write a Python program using functions to calculate the sum, average, and maximum of numbers
in a list(10)
a) Execute recursion funcion with a suitable example (e.g., factorial and Fibonacci series program).
Or
b)i)Implement a program to check whether a number is prime using function.
ii)Implement a Python program using functions to calculate the sum, average, and maximum of
numbers in a list.