You are on page 1of 2

JAGAN NATH GUPTA INSTITUTE OF ENGINEERING AND

TECHNOLOGY, SITAPURA, JAIPUR



Subject: CSP Sem/ Branch: II Sem/CS


Q1.Write a program to evaluate the following algebraic expressions
after reading necessary values from the user.
1. (ax+b)/(ax-b)
2. 2.5logx-cos30+(x^2-y^2)+sqrt(2xy)
3. (x^5+10x^4+8x^3+4x+2)

Q2.Write a C Program to find roots of quadratic equation

Q3.Write a C Program to check whether the given year is leap year or not

Q4.Write a C program to count the number of digit and print its reverse number.

Q5.Write a C Program to evaluate 1/2+3/4+5/6+..............99/100

Q6.Write a C Program to print largest number among ten numbers

Q7.Write a C Program for multiplication of two matrix

Q8.Write a C Program to accept employee details and display them using structures

Q9.Write a C Program to create student details using nested structures

Q10.What is the main difference between call by value and call by reference (address)?

Q11.What is user defined function? Explain the need of user defined functions.

Q12.What is recursion? Write a C Program to find factorial of number using recursion

Q13.What is a pointer? List the Advantage of the pointers

Q14.What is a void pointer? Write down the equivalent pointer expression for referring the same
element a[i][j][k][l]?

Q15.Write a note on following file functions
[1] fprint( )
[2] fscanf( )
[3] fgetc( )
[4] fputc( )
[5] fwrite ( ) and fread ( )


Q16.Write a C Program to read numbers from file and write even number in one file and odd
number in another file

Q17. What are the main components of a PC system unit? Explain each component?

Q18.Write short notes on:
(i) Operating system
(ii) System software and application software
(iii) Machine, Assembly and High Level Languages
(iv) ROM and RAM

Q19 what is a flow chart? Draw the various symbols used in flow chart

Q20.Write short notes on:
ASCII and BCD Codes
EBCDIC and GRAY CODE

You might also like