HNBGU BCA First Semester Previous Year 2017-18 Question Papers
Programming in C
Note: Attempt any five questions. Each question carries 5 marks.
- What are steps to write and execute a program written in C language?
- What is a preprocessor? Why and how preprocessor is useful in C language?
- Write a program in C language to generate a Fibonacci Series.
- What are the different loops used in C language Describe with syntax and suitable examples
- Define a function. What are various parameters passing methods?
- Distinguish between array and structure with example
- What is a Pointer? Explain operators used in pointers with example
Note: Attempt any three questions. Each question carries 15 marks.
- How many storage classes are in C language? Describe each and every storage class with syntax and suitable example.
- Define union with example/ How memory allocation is different in Union than structure? Explain
- Define multi-dimensional arrays and write a program to multiply two matrices using arrays.
- Define dynamic memory allocation. What are different methods to allocate memory in C language? Explain with suitable examples.
- Write short notes on any two of the following:
- File attributes and operators
- Bitwise operators
- Pointer to pointer
- Conditional operator
- Break and continue keyword uses
0 Comments