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

C Programming Sep 2020 (2018 Scheme)

Good

Uploaded by

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

C Programming Sep 2020 (2018 Scheme)

Good

Uploaded by

mutturajshejole
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
For More Question Papers Visit - www.pediawikiblog.com 18CPS13/23 First/Second Semester B.E. Degree Examination, Aug./Sept.2020 C - Programming for Problem Solving Time: 3 hrs. Max. Marks: 100 Note: Answer any FIVE full questions, choosing ONE full question from each module. Module-1 Define Computer. Explain the generations of computer. (08 Marks) List the input devices of computer and explain any two input devices. (06 Marks) Define Algorithm. Write an algorithm to find the area and perimeter of a rectangle. (06 Marks) OR Explain the basic structure of C program, with an example. (08 Marks) What is an Operator? List and explain any 4 types of operator. (08 Marks) Evaluate the following expressions i) 100% 20<= 20-5 + 100% 10-20==5>=1!=20. i) at=b* 5, where a=3,b=Sande=8. (04 Marks) Module-2 Explain formatted input output functions in C with examples. (06 Marks) What are different types of conditional statements? Explain if, if else and nested if with syntax and examples (08 Marts) Write a C program to find the sum of natural numbers from | to N using while loop. (06 Marks) OR List the differences between while and do — while loop along with syntax and example. (06 Marks) Write a C program to find all possible roots of quadratic equation and print them with appropriate messages. (08 Marks) Explain break and continue statements with example. (06 Marks) Modute-3 What is an array? Write syntax for declaring two dimensional array and initialize the same with suitable examples. (08 Marks) Write a C program to find biggest of n numbers using arrays (06 Marks) List the differences between Linear and binary search (06 Marks) OR Explain any 4 string manipulation library functions with examples. (08 Marks) Write a C program to find transpose of a given matrix, (06 Marks) Write an algorithm for linear search (06 Marks) Module-4 Define Function, What are the advantages of user defined functions? (06 Marks) plain types of functions based on parameters. (08 Marks) Define Recursion. Write a C program to find factorial of a number using recursion.(06 Marks) For More Question Papers Visit - www.pediawikiblog.com 10 oe For More Question Papers Visit - www.pediawikiblog.com OR Define the following : Actual parameter ii) Formal parameter i) Global variable iv) Local variable. (06 Marks) Write a C function isprime (num) that accepts an integer argument and returns 1 if the argument is prime. 0 otherwise, Write a C program that invokes this function to generate prime numbers between given range. (08 Marks) Write a C program to generate Fibonacci series using recursive function, (06 Marks) Module. What is a Structure? Explain structure with syntax and example (08 Marks) Differentiate between Structures and Unions. (04 Marks) Write a C program to maintain record of n students using structures with 4 fields (Rollno, marks. name and grade). Print the names of students with marks > = 70. (08 Marks) oR What is a Pointer? Explain how pointer variable is declared and initialized. (06 Marks) What is Preprocessor directive? Explain #define and include preprocessor directive (06 Marks) Explain call by value and call by reference with functions (08 Marks) For More Question Papers Visit - www.pediawikiblog.com

You might also like