Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Bsc math previous exam quetions
1. B.Sc / BA (part |||) 2016
1. What is basic structure of C language? Explain it.
2. Explain the difference between unary and binary operators?
3. Explain the term gets() and puts() functions?
4. What is control statement ? Write different types of control statement with example.
5. Write a C program to print largest number in five numbers using while loop.
6. (a) Write a C program to calculate sum of series 1+2+3+4+5+6+…………+n terms.
(b) Explain
(1) Function prototype
(2) Recursion
(3) Array of character.
B.Sc / BA (part |||) 2015
1. Define main function in C programming ?
2. Define scanf and printf library functions in c programming ?
3. Define Strings and Pointers ?
4. Describe following
1. Breack and continue
2. Array
5. Write a C program for calculating area of a triangle of sides a , b and c using formula:
area = sqrt{s(s-a) (s-b) (s-c)}
where s = a+b+c/2
6. Write a c program to calculate factorial of any number.
7. What is the difference between strcmp(), strncmp() and strcmpi() .
2. B.Sc / BA (part |||) 2013
1. Define switch statement.
2. Write a c program to calculate sum of series.
x1/1 + x2/2 + x3/3 + x4/4 + ………………………………+ n.
3. Write a c program to calculate transpose matrix of given number.
4. Brief the string function and how will you compare them.
B.Sc / BA (part |||) 2012
1. Define all control statement with example.
2. Write a program to calculate sum of series.
x1/1! + x2/2! + x3/3! + x4/4! + ………………………………+ n terms.
B.Sc / BA (part |||) 2011
3. What is nested loop ?
4. Define Recursion ?
5. Write a c program to calculate sum of two numbers.
6. Explain the following.
1. Declaration of two dimensional array.
2. Arithmetic operations on pointers.
7. Write a c program to finding roots of quadratic equations and draw flow chart also.