R22
QP Code: R22A11CS01
Anurag University
B Tech I Year I -Semester End Examinations, Feb/March-2023
Course: Programming for Problem Solving-I
(Common to CSE-K-Q, AI-B, IT-C-E, ECE-B-D, CE-A, EEE-A&B & ME-A)
Time: 150 Min. Max Marks: 50
Section – A (Short answer type questions)
• Answer all questions: (5 x 2 =10Marks)
1. Explain about primitive data types in C language
2. Discover the output of following program ignore syntactical Error?
int main()
{
int i=10;
printf(“%d %d %d”, i++,i,++i);
return 0;
}
3. Differentiate between while and do-while loop.
4. What is the function? List the types of functions
5. Define Character Array and read a String value
Section—B (Essay answer type questions)
• Answer all questions: (5 x 8 =40 Marks)
6. A) Explain structure of “C” program along with an sample program
OR
B) What is flowchart? Draw the flowchart to find whether the given number is
amstrong number or not
7. A) Explain the concept of operator precedence and associatively in C language
OR
B) What are the different types of operators used C language with suitable
examples?
8. A) Write a C program to print the reverse of a given number and also to check
whether a given number is palindrome number or not
OR
B) Write syntax for switch case and correlate break and default in switch
9. A) Categorize types of user defined function along with example programs
OR
B) What is Recursion? Write a C program to print fibonacci series upto n term.
10. A) i) Develop a C program to find minimum element and maximum element in an
Array.
ii) write a program to print a transpose matrix using arrays.
OR
B) List and explain the string handling functions using the C language.