Exam Papers

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

Paper Code: 13506
1506
B.Sc. (Computer Science) (Part 1)
Examination, 2024
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 the Data types used in “C” Programming with an example.6

2. (a) Differentiate between variabled and keywords.3

    (b) Explain with an example operator precedence.3

Section-B

3. (a) Give syntax of printf and scanf with an example.3

    (b) Write a program in “C” convert the given temperature in Fahrenheit to Celsius using the following conversion forumula: C = F-32/1.8.4

4. (a) Write a program to check weather 2023 is a leap year or not.3

    (b) Write a program to find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 7.4

Section-C

5. (a) Describe the Arrays and Strings with an example.3

    (b) Explain with an example standard library string functions.4

6. (a) Describe with an example Declaration and initialization of structures.3

OR

    (b) Differentiate between structure and nested Structures.3

    (c) Write a program using array-concept for product of 2-matrices.4

Section-D

7. Write a program using a do-while loop to calculate and print the first m Fibonacci numbers.7

8. What is Dynamic Memory allocation? Explain it with an example.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) Pointers

       (ii) Scope and storage classes

       (iii) Binary and sequential files

………End………

Thank you: Gourish Rajput 🙂

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.