0% found this document useful (0 votes)
489 views

Panimalar Engineering College Internal Assessment - Iii Cs8251 Programming in C

The document is an exam paper for an internal assessment test in Programming in C for first year Computer Science Engineering students. It contains 3 parts with a total of 100 marks - Part A contains 10 multiple choice questions worth 2 marks each (20 marks total), Part B contains 5 long answer questions worth 13 marks each (65 marks total), and Part C contains 1 long question with 5 subparts worth 15 marks total requiring students to write C programs to implement string functions without using built-in functions.

Uploaded by

NAVEEN R
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
489 views

Panimalar Engineering College Internal Assessment - Iii Cs8251 Programming in C

The document is an exam paper for an internal assessment test in Programming in C for first year Computer Science Engineering students. It contains 3 parts with a total of 100 marks - Part A contains 10 multiple choice questions worth 2 marks each (20 marks total), Part B contains 5 long answer questions worth 13 marks each (65 marks total), and Part C contains 1 long question with 5 subparts worth 15 marks total requiring students to write C programs to implement string functions without using built-in functions.

Uploaded by

NAVEEN R
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

PANIMALAR ENGINEERING COLLEGE

INTERNAL ASSESSMENT – III

CS8251 PROGRAMMING IN C
Year/Sem. : I/II Branch: CSE

Date: 08/07/2021 Time: 8:30am to 11:30am

Duration: 3Hrs Max. Marks: 100

Answer all the questions

Part – A(10 *2=20 Marks)

1. Differentiate break and continue statements.


2. Is main a keyword in C. List out few keywords.
3. Given a=1,b=2,c=3,d=4 what is the value of this expression: ++b / c + a * d++
4. Write down the prototype of scanf() and printf() functions in C.
5. List out any four string handling built in functions with prototype.
6. What is recursion?
7. Define structure.
8. What is the output of the following program:
#include<stdio.h>
enum days {Sunday=100, Monday,Tuesday=24,Wednesday};
void main()
{
int a=Wednesday;
printf (“%d”, a);
}
9. What is the use of typedef?
10. Differentiate sequential access and random access.

PART – B (5*13=65 Marks)

11. a. Explain different categories of operators in C and their precedence and also
the data types supported by C.
(Or)

b. Explain decision making and looping statements in C with examples.

12. (a) What is an Array? Write C programs to demonstrate matrix addition,


subtraction and multiplication
(Or)

(b) Explain binary search procedure. Write a C program to perform binary

search.

13. (a) Discuss how can you evaluate Mean, Median and Mode for an array of
numbers and Write a C program.
(Or)
(b) (i) What is Pointer? Explain Call by value and Call by reference in pointers
with examples. (7)
(ii) Explain how an array can be passed to a function. (6)

14. (a) Define structure in C. Write a C program to using structures to prepare


students mark statement.
(Or)
(b) Define dynamic memory allocation in C. Write a short note on Singly
linked list with a program.

15. (a) (i) Explain File processing in C. List out the built-in functions associated
with files. (7)
(ii) What is command line argument? Write a C program to calculate
factorial value using command line arguments. (6)
(Or)
(b) Explain random access in files along with the functions used with suitable
examples.

Part – C ( 1 * 15 = 15 Marks)
16. Write C programs to implement the following without using built-in
functions:
a. String length
b. Comparison of two strings
c. Concatenation of two strings
d. Reversing a string
e. Checking weather a string is a Palindrome.

You might also like