0% found this document useful (0 votes)
17 views2 pages

Bcom 5 Sem Programming in C Theory 21100129 Feb 2021

Uploaded by

alanraj620
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

Bcom 5 Sem Programming in C Theory 21100129 Feb 2021

Uploaded by

alanraj620
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

QP CODE: 21100129 21100129 Reg No : .....................

Name : .....................

B.COM DEGREE (CBCS ) EXAMINATION, FEBRUARY 2021


Fifth Semester
Complementary Course - CO5CMT08 - PROGRAMMING IN"C" (THEORY)
B.Com Model II Computer Applications, B.Com Model III Computer Applications
2017 Admission Onwards
C963D924
Time: 3 Hours Max. Marks : 60
Part A
Answer any ten questions.
Each question carries 1 mark.

1. Give two examples for keywords in C language.

2. Explain the logical operators in C language.

3. What is meant by escape sequence?

4. What are the two types of control statements?

5. Draw a flow chart for 'if…...else' statement.

6. Define Array in C.

7. What is a string?

8. Explain the need of return type 'void' in function.

9. Define global variable.

10. Define header files.

11. Define a structure book with members – id, title and price.

12. What is a pointer ?

(10×1=10)
Part B
Answer any six questions.
Each question carries 5 marks.

13. Explain the methods to add comments in a C program.

14. Describe the functions involved in formatted input output operations with suitable examples.

Page 1/2 Turn Over


15. Write C program to find the largest of three different numbers ?

16. Explain the do….while loop ?

17. Explain the concept of multidimensional array with example.

18. Write a user defined function to find largest among three numbers?

19. Explain 'call by value' with an example?

20. How to define a union?

21. What is the output of following program?

#include < stdio.h >


int main()
{
int *ptr, a=5;
ptr = &a;
*ptr += 1;
printf("%d, %d", *ptr, a);
return 0;
}

(6×5=30)
Part C
Answer any two questions.
Each question carries 10 marks.

22. Write algorithm and draw flow chart to find the biggest of ten numbers given as input.

23. What are jump statements in C language and how these works?

24. Write a C program to check whether the string is palindrome or not?

25. Write a C program to find sum of digits using function?


(2×10=20)

Page 2/2

You might also like