0% found this document useful (0 votes)
25 views2 pages

BPOPS103 Module-3 Functions&Arrays Question-Bank

The document is a question bank for a programming course focused on functions and arrays in C. It includes various questions related to user-defined functions, recursion, arrays, and their applications in C programming. The questions cover topics such as function definitions, argument passing techniques, and array operations.

Uploaded by

shrinivasas744
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

BPOPS103 Module-3 Functions&Arrays Question-Bank

The document is a question bank for a programming course focused on functions and arrays in C. It includes various questions related to user-defined functions, recursion, arrays, and their applications in C programming. The questions cover topics such as function definitions, argument passing techniques, and array operations.

Uploaded by

shrinivasas744
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Principles of Programming using C [BPOPS103]

QUESTION BANK

Module III : Functions & Arrays


1 What is function ? Explain the difference between user defined and library
functions
2 Explain the different elements of user defined functions in detail

Explain function call, function definition and function prototype with


examples
3 What is function? Write a function to find the sum of two numbers
4 Explain two categories/types of argument passing techniques, with examples
Differentiate between call by value and call by reference with examples

5 Explain the classification of user defined functions


Define a function. List and explain the categories of user defined functions

What is function? Explain the type of functions based on parameters

What is function? Explain different classification of user defined functions


based on parameter passing and return type with examples
6 Write a C function isprime(num) that accepts an integer argument and returns 1 if the argument
is a prime or 0 otherwise. Write a program that invokes this
function to generate prime numbers between the given ranges
Write a c-program using function to check whether the given number is prime
or not.
7 Write a program in „C‟ using functions to swap two numbers
Write a program in C using functions to swap two numbers using global
variables concept and call by reference concept.
8 What are actual parameters and formal parameters? Illustrate with example
9 Write a C program to find the factorial of a number using functions
10 Write a program to find GCD and LCM of two numbers using concept of
functions
11 Give the scope and life time of the following
(i)External variable (ii) Static variable (iii) Automatic variable (iv) Register variable

12 What are the three possibilities of defining a user defined functions in „C‟?
13 What is Recursion? Write a C program to compute polynomial co-efficient
nCr using recursion
Write a C program for evaluating the binomial coefficients using a function
factorial(n)
Write a C program to find the binomial co-efficient a number using recursion

14 Define a recursion . Write a C recursive function for multiplying two integers


where a function call is passed with two integers m and n
15 Write a C program to check a number is a prime or not using recursion
16 Write a C program to find the factorial of a number using recursion

17 Explain recursion. and write a program to find nth term of Fibonacci series

Write a C program to calculate the Fibonacci sequence using recursion


functions
Write a c-program using functions to generate the Fibonacci series.

18 What is recursion? Explain. Write a c-program using recursive function for


Binary to Decimal Conversion.

Arrays Questions
19 What is array ? Explain the declaration and initialization of one dimensional and two dimensional
array with an example
Define array.Explain with suitable example how to declare and initialize 1D
array
20 Write a C program to read N integers into an array A and to find the
(i)sum of odd numbers,(ii) sum of even numbers,(iii) average of all numbers. Output the results
computed with appropriate headings
21 Write a C program to search an element using linear and binary techniques

Write a C program for [consider integer data]


(i) Bubble sort (ii) Linear search
Write a C program to read N numbers into an array & perform Linear search

Write an algorithm and develop a C program that reads N integer numbers and
arrange them in ascending order using selection Sort
Write an algorithm and develop a C program to search an integer from N
numbers in ascending order using binary searching technique
22 Write a C program to find the transpose of a given matrix

23 Write a C program that accepts (3×3 ordered matrices A and B),and compute
the following (i)summation of Two numbers (ii) Subtraction of Two numbers
24 Write a C program to find the sum and average of n integer numbers

25 Write a C program to find the largest element in an array

26 Write a C program to find the greatest number from two dimensional array

27 Write a C program to sort the elements by passing array as function argument

You might also like