csc115

C Programming

Medium Exam Preparation: 2 days
Question Papers (7)
logo

Community

FM: 60 PM: 24

C Programming

2074 Boards

Section A

Answer any two questions.

1

Discuss structure of a C Program with suitable example.

10

2

Discuss different types of if statements with example of each. Differentiate if statement with switch statement.

10

3

What is structure? How is it different from array? Create a structure student having data members name, roll-number and percentage. Complete the program to display the name of student having percentage greater than or equal to 60.

10

Section B

Answer any eight questions.

4

What is algorithm? How is it different from flow chart?

5

5

What is type conversion? Discuss type casting with suitable example.

5

6

Discuss increment and decrement operators with example.

5

7

Write a program that computes the sum of digits of a given integer number

5

8

What is function? Discuss the benefits of using function.

5

9

Write a program to find sum and average of 10 integer numbers stored in an array.

5

10

Define pointer. Discuss the relationship between pointer and one-dimensional array

5

11

Write a program to read and print data stored in a file input.txt.

5

12

Why do we need graphics functions? Write a program to draw a circle.

5