Exam Papers

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

Paper Code: 13506
1506
B.Sc. (Computer Science) (Part 1)
Examination, 2022
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. Question10 is compulsory

Section-A

1. Describe various operators used in ‘C’. How binary operator is different from ternary operator? 6

2. (a) Differentiate constant and variable.3

    (b) What is identifier?1

    (c) Define basic data types with examples.2

Section-B

3. (a) Give syntax of while & do while loop.3

    (b) Write a program in ‘C’ for swapping of two numbers.4

4. (a) Write a program to check whether 2020 is a leap year or not.4

    (b) Why it is advisable to avoid use of “goto” statement?3

Section-C

5. (a) Explain the meaning of function prototype with an example.3

    (b) Write a program in ‘C’ to compute factorial of a number using function.4

6. (a) Differentiate structure from union.3

    (b) Write a program using array-concept for addition of 2-matrices.4

Section-D

7. Write a program in ‘C’ to illustrate the concept of “Call by Value” & “Call by Reference”.7

8. Explain the concept of pointer by writing a program.7

Section-E

9. Write a program for concatenation of two strings.7

10. Write short notes on any two of the following : 3.5 x 2 = 7

       (i) Binary and sequential files

       (ii) Recursion

       (iii) Type conversion

………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.

Leave a Reply

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