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-A

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) Choose a correct statement about C structure elements.?

A) Structure elements are stored on random free memory locations


B) structure elements are stored in register memory locations
C) structure elements are stored in contiguous memory locations
D) None of the above.
ii) Which Data Structure is used to perform Recursion?
a) Queue b) Stack c) Linked List D) Tree
iii) What is the output of a C program with functions.void show(); void main() { show();
printf("RAINBOW "); return; } void show() { printf("COLOURS "); }
A) RAINBOW COLOURS B) COLOURS RAINBOW
C) COLOURS D) Compiler error
iv) The default parameter passing mechanism is
A. Call by value B. call by reference
C. call by value result D. None

Qs.2. Explain Selection sort with an example.


Q.s 3. What are string manipulation functions? Explain any five.
Q.s. 4. What is the difference between array of pointers and pointers of array?
Q.s. 5.What is Structure? Explain with example.
Q.s. 6. Write a program in C using functions to swap two numbers.
Q.s. 7. Write a C program to calculate the Fibonacci sequence using recursion functions
.

You might also like