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

Problem Solving C

Uploaded by

For Study
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)
77 views2 pages

Problem Solving C

Uploaded by

For Study
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

5

70364

6
C 4351 (Pages : 2) Name.........................................

Reg. No.....................................

3
SECOND SEMESTER (CBCSS—UG) DEGREE EXAMINATION, APRIL 2021
B.C.A.

1
BCA 2B 02—PROBLEM SOLVING USING C

Time : Two Hours Maximum : 60 Marks


Section A (Short Answer Type Questions)
Answer at least eight questions.
Each question carries 3 marks.
All questions can be attended.

5
Overall Ceiling 24.
1. What are identifiers ? How to declare variables ?
2. What is the use of symbolic constant ?

6
3. Which statement used for skipping of loop in C ?
4. Explain else-if ladder with suitable example.

3
5. Discuss the limitations of using getchar() & scanf() functions for reading strings ?
6. Write a program to enter check whether the given number is divisible by 8.

1
7. Explain formatted output statements in C
8. What is the difference between "=" and "==" ? Explain.
9. Differentiate array and structure.
10. Explain the use of formal arguments. Explain.
11. How to open a data file in C ?
12. What is the purpose of calloc() function ? Explain.

5
(8 × 3 = 24 marks)
Section B (Short Essay Type Questions)

6
Answer at least five questions.
Each question carries 5 marks.
All questions can be attended.
Overall Ceiling 25.

3
13. Explain the different types of Tokens in C with relevant program examples.
14. Arithmetic expressions, precedence of arithmetic operators and Type conversion in Expressions.

1
Explain each with examples.
Turn over

70364
5
70364

6
2 C 4351

15. When and why we use looping statements in C ? Write a program to find the average of positive

3
numbers from a list of numbers using loop and continue statement.
16. What is a NULL character ? Why is it important ? Explain any three string handling functions in
detail.

1
17. Write a program to find second largest and smallest element from a list of numbers without use an
array.
18. Is it possible to pass structure variable to function ? Explain how to pass structure members as an
argument ? With examples.
19. Write a C program to swap two numbers using call by value method.

(5 × 5 = 25 marks)
Section C (Essay Type Questions)

5
Answer any one question.
The question carries 11 marks.

6
20. a) Explain different input and output statements used in C.
b) What is the difference between call by value and call by reference ? Explain with the help of
an example.

3
21. a) Write a C program to multiply two matrices, use user defined functions and pass parameters.
b) What do you mean by scope of a variable ? What are local and global variables ? Give examples.

1
(1 × 11 = 11 marks)

3 65
1
70364

You might also like