0% found this document useful (0 votes)
3 views

MO18 Endsem

This document is an end semester examination paper for the BTech/IMSC program at Birla Institute of Technology, Mesra, Ranchi, for the subject CS101 Programming for Problem Solving. It consists of 5 questions, each worth 10 marks, covering topics such as computer components, flowcharts, decision control statements, arrays, and C programming. Students are instructed to attempt all questions and assume any missing data suitably.

Uploaded by

Harsh Prakash
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)
3 views

MO18 Endsem

This document is an end semester examination paper for the BTech/IMSC program at Birla Institute of Technology, Mesra, Ranchi, for the subject CS101 Programming for Problem Solving. It consists of 5 questions, each worth 10 marks, covering topics such as computer components, flowcharts, decision control statements, arrays, and C programming. Students are instructed to attempt all questions and assume any missing data suitably.

Uploaded by

Harsh Prakash
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/ 1

BIRLA INSTITUTE OF TECHNOLOGY, MESRA, RANCHI

(END SEMESTER EXAMINATION)


CLASS: BTECH/IMSC SEMESTER : I
BRANCH: CEP&P/BT/CHEM.ENGG./MECH/PROD/CIVL/FOOD TECH. SESSION : MO/18

SUBJECT: CS101 PROGRAMMING FOR PROBLEM SOLVING


TIME: 3.00 HOURS FULL MARKS: 50

INSTRUCTIONS:
1. The question paper contains 5 questions each of 10 marks and total 50 marks.
2. Attempt all questions.
3. The missing data, if any, may be assumed suitably.
4. Before attempting the question paper, be sure that you have got the correct question paper.
5. Tables/Data hand book/Graph paper etc. to be supplied to the candidates in the examination hall.
----------------------------------------------------------------------------------------------------------------------------------

Q.1(a) Give a detail discussion on different components of a computer system. [5]


Q.1(b) Develop a flowchart to multiply two given positive integers by the method of successive addition. [5]

Q.2(a) What are decision control statements? Explain with examples. [5]
Q.2(b) Write a C program to test a given number is a power of 2. [5]

Q.3(a) Why are arrays needed? How is an array represented in memory? Explain with diagram. [5]
Q.3(b) Write a C program to sort an array of integers. [5]

Q.4(a) What is call by value and call by reference? Explain with an example. [5]
Q.4(b) Write a C program to read an integer number. Print the reverse of this number using function. [5]

Q.5(a) Differentiate between Structure and Array. Explain with suitable examples. [5]
Q.5(b) Write a C program using pointer to search a value from an array. [5]

:::::14/12/2018:::::M

You might also like