# Basic Programming Concept Using C 2015 – BSc Computer Science Part 1

#### Paper Code: 13506 1506 B.Sc. (Computer Science) (Part 1) Examination, 2015 Paper No. 2.3 BASIC PROGRAMMING CONCEPTS USING C

##### Time: Three Hours] [Maximum Marks: 34

Note: Attempt five questions in all selecting at least one question from each Section.

Section-A

1. (a) Explain different data types using in C.

(b) Explain the following:

1. Nested loops
2. Variables and constants

2. (a) Explain with example break statement and continue statements.

(b) Write a programme in C to generate Fibonacci series.

3. (a) Explain Bitwise operator and Relational operators.

(b) Write a programme in C to find the roots of a quadratic equation.

4. (a) What is Array? Explain different types of array with example.

(b) Using recursion find the factorial of a positive number.

Section-B

5. (a) Explain user defined function and library function with examples.

(b) Write a C programme to count the vowels from a given string.

6. (a) Differentiate between array of pointer and pointer to pointer.

(b) What do you mean by array of structure? Explain with example.

7. (a) Explain the following:

1. Malloc () function
2. Calloc () function
3. Realloc () function

(b) Write a C programme to check whether a given number is prime or not prime.

8. (a) What are enumerated data types? Explain their declaration and use in programming.

(b) Write a programme in C to prepare bank account of the person by maintaining input/output file.

Section-C

9. (a) Explain the following:

1. Mode of files
2. Fgets () and fputs ()

(b) What is pre-processor? Which pre-processor is used to define a macro?

10. Write short notes on any two of the following:

1. Function prototype
2. Call by value and call by reference
3. Union
4. Control statement in C

………….End…………

#### Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

This site uses Akismet to reduce spam. Learn how your comment data is processed.