0% found this document useful (0 votes)
3 views

42 Programming for Problem Solving

PPS IMPORTANT QUESTIONS

Uploaded by

21nehasharma25
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
3 views

42 Programming for Problem Solving

PPS IMPORTANT QUESTIONS

Uploaded by

21nehasharma25
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 4
qe Reg.No. [AUTONOMOUS INSTITUTION AFFILIATED TO ANNA UNIVERSITY, CHENNAI) © VIVEKANANDHA COLLEGE OF ENGINEERING FOR WOMEN We Elayampalayam — 637 208, Tiruchengode, Namakkal Dt., Tamil Nadu. Question Paper Code: 5036 B.E./ B.Tech. DEGREE END-SEMESTER EXAMINATIONS — AUG. / SEP. 2023 ‘rst Semester UI9CS101 - PROGRAMMING FOR PROBLEM SOLVING (Regulation 2019) (Common to All Branches) Time: Three Hours ‘Maximum: 100 Marks Answer ALL the questions Knowledge Levels [KI Remembering | K3 Applying KS - Evaluating (KL) K2— Understanding | K4— Analyzing K6 - Creating 1 PART-A (10 x 2 = 20 Marks) QNo. Questions Marks KL CO 1. Draw the flowchart for finding the roots of quadratic equation. 2 Ki cor 2. Write an algorithm to find sum and average of N numbers. 2. K2 col 3. Whats the output of given program if user enters value 99? 2 K3 coz #include void main {int isprintf("Enter a number: scanf("%d", &i);// 99 is given as input. ifli%5 = O){printf("nNumber entered is divisible by 5"); }} 4. Write the syntax for nested if and else-if ladder. 2 K2 Co2 5. Howto declare and initialize a Two-dimensional array? 2 K2 CO3 6. Write the syntax and purpose of malloc( ) function. 2 K2 CO3 7. Define function. List the different types of functions. 2 Ki Co4 8. List the string handling functions. 2 Kl Co4 9. Write aC program to create a structure variable with five student’s. 2 K2 COS details. 10. State the significance of bitfields in enumerated data type. 2 KI COs QNo. Hea) i ii. ii, bi PART-B (5 x 13 = 65 Marks) Marks KL CO Questions Draw the flowchart for finding the maximum value in the list. Write an algorithm and pseudo code for Factorial of a given number. (oR) Write an-algorithm and flowchart to find whether the given number is prime or not. Explain the different symbols used for flowchart with your own example. (OR) Explain formatted input and output statements used in © with syntax and example. Write a C program to swap the two variables without using third variables. (OR) ‘Write a C program to check whether the given number is (Odd or Even. Describe decision making and branching statements with proper syntax and example. 13. a) Illustrate arrays and multidimensional arrays with an example program. 5 aa) i (oR) Describe different arithmetic operations on pointers with proper examples. Enlighten the functions used to allocate and free memory dynamically. Write a C program to generate the Fibonacci series of a given number using recursion. Explain the call-by-reference parameter passing technique with example. (OR) b) Explain the following string handling functions with example: a. strepy( b. stremp() c. streat() d.strlen() e. stmeat() 6 13 2B K2 col col coz coz co3 cos cos cos 15. a) » QNo. 16. a) b) Write a program to maintain a record of n employee detail using 13. K3_ COs an array of structures with three fields (id, name, salary) and print the details of employees whose salary is above 5000. (OR) Mlustrate the Structure and nested structure with necessary 13 K2 COS example program, PART-C (1.x 15 = 15Marks) Questions Marks KL CO Write a C program to maintain a record of n students details 15 K3_ COS using an array of structures with four fields(roll no, name, ‘marks and grade). Assume appropriate data type for each field. Print the marks of the student given the student name as input. (OR) Illustrate the following concepts with your own example 15 K2_ Cos Bitfields ii, Unions iii, Array of Pointers.

You might also like