You are on page 1of 1

RTC INSTITUTE OF TECHNOLOGY

(Approved by AICTE, New Delhi, and Affiliated to Jharkhand


University of Technology & Ranchi University, Ranchi)
Anandi, Ormanjhi, Ranchi-835219, Jharkhand

MSE-II [UnderJUT] Session-2023-24 Question SET-C

Semester:I Course:B. Tech Branch: All Branch

Subject: Programming for Problem Solving Code:ESPP1


Answer any five questions [Question No. 1iscompulsory].Duration : 90 Minutes
Each question is of equal weightage[4Marks]. F.M: 20 Marks

Qs.1 MCQ Type [Choose correctanswer]


(i)What are the Types of Arrays.?
A) int, long, float, double B) struct, enum C) char D) All the above
(ii)An array Index starts with.?
A) -1 B) 0 C) 1 D) 2
(iii) The default parameter passing mechanism is
A. Call by value B. call by reference C. call by value result D. None
(iv)What is the output of C Program with Functions?
int main() { void show() { printf("HIDE"); } show(); return 0;}
A) No output B) HIDE
C) Compiler error D) None of the above

Qs.2 Explain linear search with example.


Qs.3. What is array? Explain the declaration and initialization of one dimensional and two
dimensional arrays with an example

Qs.4What is function? Write a program to calculate area of triangle using function.

Qs.5Write a c-program using function to check whether the given number is prime or not.
Qs.6What is Recursion? Write a C program to find the factorial of a number using recursion.

Qs.7.Write a program to maintain a record of students using structure.

You might also like