Basic Programming Concept Using C 2013 – BSc Computer Science Part 1

Paper Code: 13506
1506
B.sc. (Computer Science) (Part 1)
Examination, 2013
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 the input and output statement of C.

(b) Explain with example the Bitwise Operators.

2. (a) Write a C programme to find sum of the digit of a number.

(b) Explain the relational operators, logical operators and equality operators with examples.

3. (a) Explain with example the switch statement.

(b) Explain the following with example:

  1. Break statement
  2. Continue statement

4. (a) Write a program to generate the following series:

1

1    2

1    2    3

1    2    3    4

1    2    3    4    5

(b) Write a programme to generate Fibonacci series.

Section-B

5. (a) Explain function prototypes. Also explain user defined function with example.

(b) Write a programme to find factorial of a given number using function.

6. (a) What is an Array? How can array be declared? Explain one-dimensional array.

(b) Write a programme that prints the elements of (2*2) matrix.

7. (a) Explain with example the runtime error and logical error.

(b) Write a programme to read a string and print the reverse of the string.

8. (a) What is Structure? How is initialization of structure done? Explain with example.

(b) Differentiate union with structure. Explain with example.

Section-C

9. (a) What is Pointer? How can pointers be passed on to functions as the variables?

(b) Differentiate between array of pointers and pointers to pointer.

10. (a) Explain the commands in files:

  1. Rewind()
  2. Fseek()
  3. Remove()

(b) Explain Binary and Sequential files wit example.

………….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.
Related Post
Leave a Comment

This website uses cookies.