csc115

C Programming

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

Community

FM: 60 PM: 24

C Programming

2075 Boards

Section A

Answer any two questions.

1

What is looping statement? Discuss different looping statements with suitable example of each.

10

2

Define array? What are the benefits of using array? Write a program to add two matrices using array.

10

3

Why do we need data files? What are the different file opening modes? Write a program that reads data from a file “input.txt” and writes to “output.txt” file.

10

Section B

Answer any eight questions.

4

Discuss different logical operation in detail.

5

5

What is break statement? Discuss with example. How the break statement is different from continue statement?

5

6

Write a program to check whether a number entered is even or odd.

5

7

Write a program to calculate sum of first 10 odd numbers.

5

8

What is preprocessor directives? Discuss # define directive with example.

5

9

Discuss any five string library functions.

5

10

What is dynamic memory allocation? Discuss the use of malloc() in dynamic memory allocation with example.

5

11

What is structure? Create a structure rectangle with data members length and breadth.

5

12

Write short notes on:

Benefits of data files
Graphics functions

5