KEMBAR78
Mca 1 Sem Problem Solving Using C Kca102 Jan 2024 | PDF | Pointer (Computer Programming) | Scope (Computer Science)
0% found this document useful (0 votes)
2K views2 pages

Mca 1 Sem Problem Solving Using C Kca102 Jan 2024

Aktu mca paper

Uploaded by

hahor14721
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)
2K views2 pages

Mca 1 Sem Problem Solving Using C Kca102 Jan 2024

Aktu mca paper

Uploaded by

hahor14721
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

Printed Page: 1 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 2023-24
PROBLEM SOLVING USING C
TIME: 3HRS M.MARKS: 100

Note: 1. Attempt all Sections. If require any missing data; then choose suitably.
SECTION A

1. Attempt all questions in brief.


Q no. Question Marks
a. Differentiate between compiler & interpreter. 2
b. Describe rules of declaring identifiers. 2
c. Differentiate between actual argument and formal argument. 2
d. Predict how long the following loop runs?
2
for (int x = 1; x = 3; x++)
e. Write the data structure used in implementing recursion. 2
f. There is a two-dimensional array of type integer. Write the statement to display
2
the base address of the array.
g. How is a null pointer created? 2
h. On successful execution of the below code predict the result, if address of
variable ‘a’ is 210?

2
90
void main( )

13
{
_2

2.
float a, *b; 2
P2

24
b = &a;
b = b+3;

5.
4D

printf (“%d”, b);


.5
P2

}
17
i. Explain the use of rectangle() functions. 2
Q

|1

j. Though we can write our program without File handling, what is the need of file
2
handling in C?
AM

SECTION B
1

2. Attempt any three of the following:


:2

a. What is the use of a flow chart? List out the symbols used in a flow chart. Draw
55

10
a flow chart to find whether the given year is a leap year or not.
8:

b. How switch stamen is different from else – if ladder?


Construct a program in C to print the bellow pattern.
24

*
20

**
10
1/

***
****
/2

*****
|3

The number of lines to print to be entered by the user.


c. Illustrate the concept of recursion and base condition of recursion. Construct a
10
recursive function to find the factorial of an input number N..
d. How a structure is different from an array? Write a C program to store employee
details such as Empid, Name, Salary and Age for 50 employees and display the
10
employee details who are getting salary more than 15000.

1|Page
QP24DP2_290 | 3/21/2024 8:55:21 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 2023-24
PROBLEM SOLVING USING C
TIME: 3HRS M.MARKS: 100

e. Develop a C program to copy the contents of one file to another file. The file
10
name must be pass through command line arguments.
SECTION C
3. Attempt any one part of the following:
a. Explain the different data types supported by C language? Explain primitive data
10
types in terms of memory size, format specifier and range.
b. What do you mean by operator precedence and associativity? Explain all bit-
10
wise AND, bit-wise OR and bit-wise XOR operators with suitable example.
4. Attempt any one part of the following:
a. Write a program to check the input number is an Armstrong number or not. 10
b. Identify the use of modular programming? Write a program by using user define
function to check given number is prime or not. 10
Porotype of function should be like this int is_prime(int).
5. Attempt any one part of the following:
a. Illustrate the different ways to initialize a string during compile time as well as

2
90
during run time. Write a program to count the number of words and number of 10

13
characters in an input string.
_2

2.
b. Define a pointer. How do you declare and initialize a pointer? Write a program
10
P2

24
to add the contents of an integer array using pointer.
6. Attempt any one part of the following:

5.
4D

.5
a. Define scope, visibility, and lifetime of a variable. Explain in detail about all
P2

17
storage classes supported in C language with reference to scope and lifetime, 10
Q

visibility, and default value.


|1

b. How a structure is different from union? Discuss the concept of nested structure.
10
Write a program for your illustration.
AM

7. Attempt any one part of the following:


1

a. What are the drawbacks of static memory allocation? Write a program to allocate
:2

space dynamically to store N numbers. Find the sum and average of these 10
55

numbers.
8:

b. What is the use of initgraph() function? Write a program to display 50 concentric


10
circles.
24
20
1/
/2
|3

2|Page
QP24DP2_290 | 3/21/2024 8:55:21 AM | 117.55.242.132

You might also like