Kca102 Problem Solving Using C
Kca102 Problem Solving Using C
MCA
(SEM I) THEORY EXAMINATION 2024-25
PROBLEM SOLVING USING C
TIME: 3 HRS M.MARKS: 100
Note: Attempt all Sections. In case of any missing data; choose suitably.
SECTION A
1. Attempt all questions in brief. 2 x 10 = 20
Q no. Question CO Level
a. Define keyword and identifier. 1 K1
b. How Logical error is different from Syntax error? 1 K2
c. Write a C program to check number is an even number or odd number. 2 K2
d. Write a program in C language to print al natural numbers from 1 to 100. 2 K2
e. Define Pointer to Pointer. 3 K2
f. Why continue statement is required in C programming? Also write an 3 K2
example of continue statement.
g. How can user make an array of pointers to struct in C language. 4 K2
h. What is the size of the structure pointer in C? 4 K2
i. What are the ways in which a user interacts with a GUI? 5 K3
2
j. In which type of files are library functions stored? 5 K3
13
90
2.
SECTION B
_2
24
2. Attempt any three of the following: 10 x 3 = 30
P2
5.
a flowchart to check number is prime number or not.
5D
.5
b. Define switch case statement. Write a C program to check character is a 2 K2
17
vowel or not.
P2
SECTION C
02
recursive function.
b. What are the different conditional statements used in c programming 2 K2
language? Write a C program to check either the year is a leap year or
not.
1|Page
QP25DP2_290 | 07-Mar-2025 9:02:39 AM | 117.55.242.132
Printed Page: 2 of 2
Subject Code: KCA102
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0
MCA
(SEM I) THEORY EXAMINATION 2024-25
PROBLEM SOLVING USING C
TIME: 3 HRS M.MARKS: 100
5. Attempt any one part of the following: 10 x 1 = 10
a. Differentiate between string and character. Write a C program to check s 3 K2
A palindrome string or not.
b. What are the different parameter passing techniques? Explain each 3 K2
technique with suitable example.
2
explain how to pass a file as a command line argument in C?
13
90
2.
_2
24
P2
5.
5D
.5
17
P2
|1
Q
AM
9
:3
02
9:
5
02
-2
ar
M
7-
|0
2|Page
QP25DP2_290 | 07-Mar-2025 9:02:39 AM | 117.55.242.132