0% found this document useful (0 votes)
802 views1 page

Programming For Problem Solving-I - Set-I - CSE-K-Q, AI-B, IT-C-E, ECE-B-D, CE-A, EEE-A&B & ME-A - I-I - R22 - Mar-2023

The document is an exam paper for the course "Programming for Problem Solving-I" at Anurag University. It contains two sections - Section A with 5 short answer questions worth 2 marks each (total 10 marks), and Section B with 5 essay questions worth 8 marks each (total 40 marks). The questions in Section A cover topics like data types in C, output of a sample program, difference between while and do-while loops, definition of functions and types of functions, and character arrays and strings. Section B questions include writing a program to check if a number is Armstrong number, explaining operator precedence and associativity, writing programs to check palindrome numbers and print reverse of a number, explaining user-
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)
802 views1 page

Programming For Problem Solving-I - Set-I - CSE-K-Q, AI-B, IT-C-E, ECE-B-D, CE-A, EEE-A&B & ME-A - I-I - R22 - Mar-2023

The document is an exam paper for the course "Programming for Problem Solving-I" at Anurag University. It contains two sections - Section A with 5 short answer questions worth 2 marks each (total 10 marks), and Section B with 5 essay questions worth 8 marks each (total 40 marks). The questions in Section A cover topics like data types in C, output of a sample program, difference between while and do-while loops, definition of functions and types of functions, and character arrays and strings. Section B questions include writing a program to check if a number is Armstrong number, explaining operator precedence and associativity, writing programs to check palindrome numbers and print reverse of a number, explaining user-
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

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.

You might also like