Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
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
Download now
Download
Save 42 Programming for Problem Solving For Later
Download
Save
Save 42 Programming for Problem Solving For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
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
Download now
Download
Save 42 Programming for Problem Solving For Later
Carousel Previous
Carousel Next
Save
Save 42 Programming for Problem Solving For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 4
Search
Fullscreen
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 COsQNo. 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 cos15. 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
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6134)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brene Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (935)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8215)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2923)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4973)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
3.5/5 (2061)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1988)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2641)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1994)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2544)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)