LinkedIn Insight Programming in C-Computer Science-BSC-Nagpur-Summer-2018 - Grad Plus

Programming in C-Computer Science-BSC-Nagpur-Summer-2018

Bachelor of Science (B.Sc.) Semester—1 Examination
COMPUTER SCIENCE (Programming in C)

Optional Paper—1
Time : 3 Hours
Maximum Marks : 50

N.B. :— (1) All questions are compulsory and carry equal marks.
(2) Draw well labelled diagram wherever necessary.


EITHER

1. (a) Explain selection programming structure giving suitable example. [5M]

(b) Write limitations and advantages of flowchart. [5M]

OR

(c) Define algorithm. Draw a flowchart to find greatest of three numbers. [5M]

(d) Explain modular programming structure giving suitable example. [5M]

 

EITHER

2. (a) Explain ternary operator and illustrate its use giving suitable example. [5M]

(b) Explain break and continue statements giving suitable example. [5M]

OR

(c) Write a program to reverse the entered integer. Display both numbers on screen (1234 As 4321). [5M]

(d) List operators in C. Explain relational and logical operators. [5M]

 

EITHER

3. (a) Write a program to illustrate function with argument and return value. [5M]

(b) Define array. Write a program to transpose a given matrix of size 3 × 3. [5M]

OR

(c) What is recursive function ? Write a program to find factorial of a given number. [5M]

(d) What are strings ? Give syntax, purpose and example of :

(i) strlen ( )

(ii) strcpy ( ). [5M]

 

EITHER

4. (a) How is union defined and declared ? Illustrate by giving a suitable example. [5M]

(b) Explain opening and closing of file with example. [5M]

OR

(c) How is structure defined and declared. Illustrate giving suitable example. [5M]

(d) What is a pointer ? How is it declared and initialized ? What are the different arithmetic operations
that can be used with pointer ? [5M]

 

5. Attempt all :

(a) Draw a flowchart to find area and circumference of a circle. [2½M]

(b) Write purpose and syntax of while loop. [2½M]

(c) What is function prototype ? Explain with example. [2½M]

(d) List file modes in C and state their purpose. [2½M]


 

Scroll to Top
error: Alert: Content selection is disabled!!