NALANDA OPEN UNIVERSITY QUESTION, 2016, M.C.A , Part-I, Paper-I, (Problem Solving and Programming)
NALANDA OPEN UNIVERSITY QUESTION, 2016, M.C.A , Part-I, Paper-I, (Problem Solving and Programming)
2016Time: 3 hours
Full Marks: 80
Answer any five questions. All questions carry equal marks.
1. What are the rules for naming variables in C ? Design an algorithm and draw a corresponding flowchart and write a C program to divide two numbers.
2. Explain the concept of storage class in C. Draw a flowchart and write a program to calculate the first smallest divisor of a number using break statement.
3. Explain different types of decision making statements in C with examples? Write a program in C to swap the values of two variables using pointers concept.
4. What is call by value? Give examples. Write a program that initializes 3 names in an array of strings and displays them.
5. Explain recursion program with a suitable example. Write a program to print first 10 even numbers using goto statements.
6. Explain Function Prototypes with an example for each. Write a program to perform the comparison of two strings (use string function).
7. Write a program in C to sort list of n integers, using any of the sorting algorithms.
8. Write a program to test whether the given string is a palindrome or not. Write a macro to demonstrated #define, #if, #else preprocessor commands.
9. Describe different types of data types in C with examples of each.
10. Write short notes on any four of the following :-
(a) Constants in C
(b) Function in C
(c) Structures
(d) Union in C
(e) <conio.h>
Comments
Post a Comment