0% found this document useful (0 votes)
10 views6 pages

CHAPTER WISE QUESTIONS

The document is a question bank for a C programming course, covering topics such as basic programming concepts, control structures, arrays, functions, and pointers. It includes various types of questions, categorized by marks, that require definitions, explanations, program implementations, and flowchart drawings. The document serves as a comprehensive resource for students to prepare for exams and understand fundamental programming principles in C.

Uploaded by

crickzealoteditz
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)
10 views6 pages

CHAPTER WISE QUESTIONS

The document is a question bank for a C programming course, covering topics such as basic programming concepts, control structures, arrays, functions, and pointers. It includes various types of questions, categorized by marks, that require definitions, explanations, program implementations, and flowchart drawings. The document serves as a comprehensive resource for students to prepare for exams and understand fundamental programming principles in C.

Uploaded by

crickzealoteditz
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/ 6

PIC Important Question Bank

Chapter 01:- Basic in C Programming


1) Question for 2 marks

a) State the use of following symbols used for flowchart drawing :

(i) (ii) (iii) (iv)

b) Define Algorithm.

c) Draw and label symbols used in flow chart

d) Draw flowchart for checking whether given number is even or odd.

e) List any four keywords used in ‘C’ with their use.

f) State the Relational operators with example.

2)Question for 4 marks

a) State the use of printf( ) & scanf( ) with suitable example.

b) *Explain how formatted input can be obtain, give suitable example.

c) Draw a flowchart for checking whether given number is prime or not.

d) Implement a program to demonstrate logical AND operator.

e) Write an algorithm to determine whether a given number is divisible by 5 or not.

f) Explain increment and decrement operator.

g) Explain conditional operator with example.

h) Write algorithm and draw flow-chart to print even numbers from 1 to 100.

i) *Write a program to accept marks of four subjects as input from user. Calculate and display total and percentage
marks of student.

j) Explain any four bit-wise operator used in ‘C’ with example.

k) State the importance of flow chart.

l)*Describe the following terms : (i) Keyword (ii) Identifier (iii) Variable (iv) Constant

m)Write an algorithm to determine the given number is odd or even.

3)Question for 6 marks

b) Enlist different format specifiers with its use.


chapter 2:- Control Structure
1) Question for 2 marks
a) State any four decision making statements
b) *State use of while loop with syntax.
c) *Give syntax of if-else ladder.
d) Write the syntax of switch case statement.
e) *State any two differences between while and do-while statement.
f) Draw flow chart for addition of two numbers.

2) Question for 4 marks


a) Develop a simple ‘C’ program for addition and multiplication of two integer numbers.
b) Develop a program to accept an integer number and print whether it is palindrome or not.
c) Design a program to print a message 10 times.
d) Explain do – while loop with example.
e) Write a program to accept the value of year as input from the keyboard & print whether it is a leap year or
not.
f) *Write a program to accept a string as input from user and determine its length. [Don’t use built in library
function strlen( )]
g) Draw flowchart for checking weather given number is prime or not.
h) *Write a program to sum all the odd numbers between 1 to 20.
i) Draw flowchart for finding largest number among three numbers.
j) Write a program to take input as a number and reverse it by while loop
k) Explain nested if-else with example.
l) Illustrate the use of break and continue statement with example.
m) *Write a program to add, subtract, multiply and divide two numbers, accepted from user using switch
case.
n) *Write a program to read two strings and find whether they are equal or not.

3) Question for 6 marks


a) *Design a programme in C to read the n numbers of values in an array and display it in reverse order.
b) *Write a program using switch statement to check whether entered character is VOWEL or
CONSONANT.
c) Write a program to accept ten numbers and print average of it.
d) *Write a program to calculate sum of all the odd numbers between 1 to 20.
e) *Write a function to print Fibonacci series starting from 0, 1.
f) a) Draw a flowchart of Do-while loop and write a program to add numbers until user enters zero.
Chapter 03:- Array And Structure
1) Question for 2 marks

a) Define Array.

b)* State difference between array and string.

c) *Declare a structure student with element roll-no and name.

2)Question for 4 marks

a)* Develop a program using structure to print data of three students having data members name, class, percentage.

b) Explain one dimension and two dimension arrays.

c) Differentiate between character array and integer array with respect to size and initialization.

d) *With suitable example, explain how two dimensional arrays can be created.

e) Describe generic structure of ‘C’ program.

f) Write a program to accept 10 numbers in array and arrange them in ascending order.

g)*Write a program to declare structure student having rollno, name & marks. Accept & display data for 3 students.

h)* Illustrate initialization of two dimensional array with example.

3) Question for 6marks


a) *Give a method to create, declare and initialize structure also develops a program to demonstrate nested structure.

b) **Write a program for addition of two 3  3 matrices.

c)Write a program to declare structure employee having data member name, age, street and city. Accept data for two
employees and display it.

d) Define Array. Write a program to accept ten numbers in array. Sort array element and display.

e) Write a program to sort elements of an array in ascending order.


Chapter 04:- Function
1) Question for 2 marks
a) *State any four math functions with its use.
b) Give the significance of and header files.
c) *Write syntax and use of pow( ) function of header file. Draw and label symbols used in flow chart.
d) Distinguish between call by value and call by reference.
e) *State the syntax & use of strlen ( ) & strcat ( ) function.

2) Question for 4 marks


a) Explain following functions : getchar( ) putchar( ) getch( ) putch( ) with suitable examples.

b) Explain any four library functions under conio.h header file.

c) *List the categories of functions and explain any one with example.

d) *Develop a program to find factorial of a number using recursion.

e) *Write a program to sweep the values of variables a = 10, b = 5 using function

f) Explain User defined function with example.

g) *Explain strlen( ) and strcpy( ) function with example

h) *Write a program to swap two numbers using call by value.

i) Write a program to reverse the number 1234 (i.e. 4321) using function.

j) Explain any two string functions with example.

3) Question for 6 marks

a) Develop a program to find diameter, circumference and area of circle using function.

b)*If the value of a number (N) is entered through keyboard. Write a program using recursion to calculate and display
factorial of number (N).

c) *Write a program to perform addition, subtraction, multiplication and division of two integer number using
function.

d) Explain recursion with suitable example. List any two advantages.

e) *Calculate factorial of a number using recursion.


Chapter 5 Pointer
1) Question for 2 marks

a) Give any four advantages of pointer.

b) *Define pointer. Write syntax for pointer declaration.

c) *State the syntax to declare pointer variable with example.

2) Question for 4 marks

a) Explain how to pass pointer to function with example.

b) *State four arithmetic operations perform on pointer with example.

d) *Explain meaning of following statement with reference to pointers : int *a, b; b = 20; *a = b; A = &b;

e) *Explain pointer arithmetic with example.

3) Question for 6 marks


a) Implement a program to demonstrate concept of pointers to function.

b) *Develop a program to swap two numbers using pointer and add swapped numbers also print their addition.

c) Write a program to Print values of variables and their addresses.

d)*Write a program to accept two numbers from user and perform addition, subtraction, multiplication and division
operations using pointer.

e) *Write a program to print reverse of a entered string using pointer.

f) *Write a program to compute the sum of all elements stored in an array using pointers.

You might also like