Question: 1 A i . Explain four classifications of computational problems. ii . Explain all the steps ( phases ) in a C program development with

1A i. Explain four classifications of computational problems.
ii. Explain all the steps (phases) in a C program development with a neat diagram.
1B Write a flowchart to display perfect numbers between 1 and 500.
1C Write a C program to read N positive integers without using arrays and functions to find the 2M second largest number among them.
2A Explain the various Bitwise operators with proper example.
2B Write a program to search nth Fibonacci indexed number from the given list of 1D array.
5M
3M
Ex: 1 D Array--34,21,11,18,21,81,57,69,97,24
4th Fibonacci number i.e.2, so fetch array [2]=11
Fibonacci series: 0,1,1,2,3,5,8dotsdotsdots
2C What is the largest number of key comparisons made by binary search in searching for a key 2M in the following array? Show all the steps.
\table[[3,4,27,31,39,42,55,70,74,81,85,93,98]]
3A Write a single program to i) sort 'n' strings using selection sort method.
5M
ii)Eliminate the duplicate strings in the sorted list. [Do not use any additional array]
3B i. List the different ways of initializing pointers. Illustrate with examples.
ii. Write a code snippet to swap the contents of two pointers. Note that the content of pointers
2M
are addresses. Assume integer pointers.
1M
3C Differentiate between function declaration and function definition. Give the general syntax for defining a function
1 A i . Explain four classifications of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!