You are on page 1of 6

Shri.

ShamraoPatil (Yadravkar) Educational & Charitable Trust’s


Sharad Institute of Technology, College of EngineeringYadrav- (Ichalkaranji)
(An Autonomous Institute)

Question Bank

Problem solving using C programming

Chapter 1

 Explain Algorithm with its characteristics.

 Define Flow chart and list symbols of flow chart with their use.

 Examples on Algorithm and Flow chart.

 Why C is called a mid-level programming language?

 Which are the features of the C language?

 Illustrate basic structure of C programming.

 In C, What is the #line used for?

 Why header file are included in C programming?

 Explain role of compiler and compilation process.

 What are the basic data types associated with C?

 What is a token?

 What are reserved words with a programming language?

 Explain variable w.r.t. following points. a)Definition b) Rules to declare variable


name c) Declaration of variable d) Initialization of variable
 Explain concept of constant with example.

 What is the use of printf( ),scanf( ) , getchar( ), putchar( ) functions?

 Compare the following.

i) & and &&

ii) = and = =

iii) Compiler and interpreter

iv) getchar() and scanf()

v) ++ a and a++

 Write a program to swap two numbers without using the third variable?

 Describe the newline escape sequence with a sample program?

 C program to find the Sum and Average of Three Numbers.

 C Programs to find Quotient and Remainder.

 What is typecasting?

 Explain ternary operator.

Chapter 2

 What are the general description for loop statements and available loop types in
C?

 What is a nested loop?

 What are the valid places to have keyword “Break”?

 What is an infinite loop?

 What is difference between for loop, while loop, do while loop.


 Explain following with example.

i) If else ii)if else ladder iii)nested if else iv)switch v)while loop vi)do while

 C Program to Print First 10 Even Natural Numbers


 C Program to Print First 10 Odd Natural Numbers
 C Program to find Largest of Three Numbers
 C Program to Print First 10 Natural Numbers in Reverse
 C Program to find Sum of Even and Odd Numbers from 1 to n.
 Write a program to check palindrome number in C Programming?
 Calculate factorial of given no using for loop.
 Display following pattern.
1
12
123

Chapter 3

 What is an array in C?

 Explain types of array with syntax and example.

 Program to traversing 1D array.

 Program to calculate addition of elements of array.

 Program to find largest number from array.

 Program to traversing 2D array.

 Program to calculate addition of two 2 matrices.

 Explain string handling functions with example.

 Explain one dimensional arrayw.r.t. following points


i)declaration ii) initializationiii) access elements of array

 Explain two-dimensional array w.r.t. following points

i) declaration ii) initialization iii) access elements of array

 Compare a) scanf and gets b) printf and puts.

 Illustrate following string handling functions with example.

i)strlen() ii)strcmp() iii)strcpy() iv)strlen()

 Program to Find smallest no from array.

 Program to Calculate addition of two 2-d array.

 Program to Calculate transpose of matrix.

 Program to To check word is palindrome or not.

Chapter 4

 What is the use of the function in C?

 What is a built-in function in C?

 What is scope of a variable? How are variables scoped in C?

 How do we can pass array elements to a function?


 Give the difference between a) scanf and gets b) printf and puts.

 What is difference between actual parameters and formal parameters?

 What is recursion in C?

 What is the difference between the local variable and global variable in C?
 What is the difference between global int and static int declaration?

 C Programs to Perform Arithmetic Operations using Functions.


 Define function and types of function.
 Explain variable storage class.
 Explain function aspects-i)Function Declaration ii)Function Call iii)Function
Defination

 Program to calculate multiplication of two nos using without argument and

 without return.

 Program to calculate division of two nos using without argument and with return.

 Program to calculate area of rectangle using with argument and without return.

 Program to calculate area of triangle using with argument and with return.

 Program to calculate square and cube of no. using two different functions.

 Program to calculate factorial of no using recursion.

 Program to calculate sum of 1 to n nos using recursion

Chapter 5

 What is difference between structure and union?

 What is a structure? How it differentiates from an array?

 Design a structure bank having the following information;

Name of customer, address of customer, account number, balance.

 Write a program using this structure to read and print the data of a 5 customers.

 Explain Union with syntax and explain major difference between structure and union
 Program to implement Student structure take data from user and display.

Chapter 6

 What is the difference between call by value and call by reference in C?

 What is the usage of the pointer in C?

 Explain pointer w.r.t definition, declaration, initialization, access members.

 Illustrate pointer expression.

 Illustrate Pointer array

 Illustrate Atructure and pointer.

 Program on structure and pointer.

 Program to display address and value of different data types using pointer.

 Program to calculate division of two nos using pointer.

 Program to calculate sum of elements of array using pointer. 39. Program to


implement call by reference.

You might also like