Anda di halaman 1dari 2

Subject Code: ACCP06 Scheme no.

: 18/06/19-018

COMMITTEE OF EXAMINATION
Department of Computer Science

A Complete Computer programming in “C” Examination, June – 2019

NAME : VENGALA LAKSHMI RAVAMMA

BATCH NO. : 01

QUESTION PAPER SET NO. : CE-B

EXAM TYPE : THEORY

MODE OF EXAM : OFFLINE

REGISTERED NO. : 061905

MAXIMUM MARKS : 75

PART – A

Note: Answer all the questions.


This section contains TEN questions.
Each question carries TWO marks.

1. What is an operating system? What is its purpose?


2. Programming using C is structured. Why? Justify your answer.
3. Mention the typical applications of pointers in developing a program.
4. Differentiate a text file and a binary file.
5. What is a function prototype? Give an example.
6. Write an algorithm to swap the contents of two variables.
7. What are the advantages and disadvantages of assembly language?
8. Why is it necessary to mention the size of an array while declaring an array?
9. Explain about fseek( ) function with an example.
10. Write a C program using functions to check whether the given year is leap year or not.

PART – B

Note: Answer any FIVE questions.


Each question carries FOUR questions.

1
18/06/19-018 CE-061905
11. How does an algorithm differ from a flowchart? Draw a flowchart and write an
algorithm to find the greatest of three numbers.
12. What is an array? What are the different types of arrays? Explain with examples.
13. What is a file pointer? Explain the steps involved in sequential file operations.
14. Define recursion. Mention the advantages and limitations of recursion.
15. What are the storage classes in C? Explain with an example.
16. Write a C program to find the length of a string using string function.
17. Which statement is a multiway selection statement? Give reasons to that.

PART – C

Note: Answer any FIVE questions.


Each question carries SEVEN marks.

18. Describe about command-line arguments. Explain with a complete C program.


19. Classify the datatypes in C and explain with an example.
20. Write a C program to check whether the given no. is Armstrong or not.
21. Explain the various parameter passing mechanisms with an example.
22. Write a C program to find the factorial of ‘N’ using while and do-while loops.
23. Explain about dynamic memory management functions.
24. Define structure. Write the syntax for structure declaration. Explain how to access the
members of structures. Mention the use of dot (.) operator.

__________

2
18/06/19-018 CE-061905

Anda mungkin juga menyukai