You are on page 1of 2

Printed Pages: 2

Rajshree Institute of Management & Technology, Bareilly


Department of Computer Science
B.Tech.,1st Year, Pre-University Examination
(Even Semester, 2022-23)
Programming For Problem Solving (BCS-201)
Roll No.

Time: 3 Hours Total Marks: 70


समय:३ घण्टे पर्ू णांक:७०
Note:1. Attempt all Sections. If require any missing data; then choose suitably.
2. The question paper may be answered in Hindi Language, English Language or in the mixed
language of Hindi and English, as per convenience.
टटप्पर्ी:1. सभी प्रश्नों कण उत्तर दीटिए। टकसी प्रश्न में,आवश्यक डेटण कण उल्लेख न होने की टथिटि में उपयक्त ु डेटण थविः मणनकर प्रश्न को हल
करें ।
2. प्रश्न पत्र कण उत्तर टहदिं ी भणषण, अिंग्रेिी भणषण यण सटु वधणनसु णर टहन्दी एविं अिंग्रेिी टमटिि भणषण में टकसी भी भणषण में टदयण िण सकिण है ।
S.NO CO Questions Marks
SECTION A
1. Attempt all questions in brief. सभी प्रश्नों को संक्षप
े में हल करें। (7x2=14)
Write down the difference between compiler and interpreter.
a) CO1 2
कंपाइलर और इंटरप्रेटर के बीच अंतर लललिए।
Write an algorithm to calculate the area and circumference of a circle.
b) CO1 2
ककसी वृत्त के क्षेत्रफल और पररधि की गणना करने के ललए एक एल्गोररदम ललिें ।
What is the importance of break and default in switch?
c) CO2 2
स्ववच में ब्रेक और धिफॉल्ट का क्या महत्व है?
Write down the syntax of else if ladder and switch case.
d) CO2 2
Else-if ladder और स्ववच केस का ससंटैक्स ललिें ।
Write down the syntax of both entry and exit controlled loops.
e) CO3 2
प्रवेश और कनकास दोनों कनयंकत्रत लूपों का ससंटैक्स ललिें ।
Differentiate between structure and union.
f) CO4 2
Structure एवं Union में अंतर बताइये।
Write a program in C to check whether an entered alphabet is in uppercase or
lowercase, using Macros.
g) CO5 2
यह जांचने के ललए कक,वणणमाला में दजण ककया गया अपरकेस या लोअरकेस में है C में मैक्रोज़ का उपयोग
करके एक प्रोग्राम ललिें ।
SECTION B
2. Attempt any three of the following: कनम्नलललित में से कोई तीन प्रश्नों कण उत्तर दीटिए। (3x7=21)
Explain components of digital computer with proper block diagram.
a) CO1 7
धिसजटल कंप्यूटर के घटकों को उधचत ब्लॉक आरेि के साथ समझाइए।
Define operator precedence and associativity. Explain all the operators with proper
b) CO2 example. ऑपरेटर प्राथकमकता और सहयोगीता को पररभाकित करें। सभी ऑपरेटरों को उधचत उदाहरण 7
सकहत समझाइये।
Differentiate between call by value and call by reference with proper example.
c) CO3 7
उधचत उदाहरण के साथ कॉल बाय वैल्यू और कॉल बाय रेफरेंस के बीच अंतर बताएं ।
Write a program in C to multiply two matrices A and B of orders mXn and pXq,
d) CO4 7
respectively and store the output in third matrix C.
Printed Pages: 2

क्रमशः mXn और pXq क्रम के दो मैकटिक्स A और B को गुणा करने के ललए C में एक प्रोग्राम ललिें और
आउटपुट को तीसरे मैकटिक्स C में संग्रहीत करें।
Explain different file handling functions with example. Write a program in C to copy the
contents of one file into another file.
e) CO5 कवभभन्न फाइल हैंिललंग फंक्शंस को उदाहरण सकहत समझाएँ । एक फाइल की सामग्री को दस
ू री फाइल में 7

कॉपी करने के ललए C में एक प्रोग्राम ललिें ।


Section C
Attempt all questions, selecting any ONE part from each question.
प्रत्येक प्रश्न में से ककसी एक भाग का चयन करते हुए सभी प्रश्नों का प्रयास करें। (5x7=35)
Explain operating system and its functions, and also define primitive data types along
with their range, memory size and format specifiers.
3. a) CO1 7
ऑपरेकटंग ससवटम और उसके कायों को समझाएं , और primitive data types को format specifiers के
साथ उनकी सीमा, मेमोरी आकार को भी पररभाकित करें।
Explain storage classes in C with proper example.
b) CO1 7
C में वटोरेज क्लास को उधचत उदाहरण सकहत समझाइये।
Write a program in C to check whether the entered roots are real, equal or imaginary and
calculate the real and equal roots for each case. Also draw the flowchart.
4.a) CO2 यह जांचने के ललए C में एक प्रोग्राम ललिें कक क्या दजण ककए गए रूट वावतकवक, बराबर या काल्पकनक हैं और 7

प्रत्येक मामले के ललए वावतकवक और बराबर रूट की गणना करें। फ़्लोचाटण भी बनाएं .
Write a program in C to input two operands and then perform different arithmetic
operations like, addition, subtraction, multiplication and division, using switch case.
b) CO2 दो ऑपरेंि को इनपुट करने के ललए एक प्रोग्राम ललिें और कफर स्ववच केस का उपयोग करके कवभभन्न 7

अंकगभणतीय ऑपरेशन जैसे जोड़, घटाव, गुणा और भाग करें।


Write a program in C to check whether an entered integer is palindrome or not. Also draw
5.a) CO3 the flowchart. 7
यह जांचने के ललए एक प्रोग्राम ललिें कक दजण ककया गया पूणाांक पैललंििोम है या नहीं। फ़्लोचाटण भी बनाएं .
Define recursion. Write a program in C to print the Fibonacci series up to nth term.
b) CO3 7
पुनरावतणन को पररभाकित करें. फाइबोनैधच श्ृंिला को nवें पद तक मुकित करने के ललए C में एक प्रोग्राम ललिें ।
Write a program in C to sort n elements of an array.
6.a) CO4 7
ककसी ऐरे के n तत्वों को सॉटण करने के ललए C में एक प्रोग्राम ललिें ।
Define structure. Write a program in C to create a database of 30 students and display
the details of those who have scored marks more than 50.
b) CO4 संरचना को पररभाकित करें. 30 छात्रों का िेटाबेस बनाने और 50 से अधिक अंक प्राप्त करने वालों का कववरण 7

प्रदभशणत करने के ललए सी में एक प्रोग्राम ललिें ।


Explain preprocessors in C with example.
7.a) CO5 7
C में प्रीप्रोसेसरों को उदाहरण सकहत समझाइये।
a) (I). Differentiate between malloc() and calloc().
b) मॉलोक() और कॉलोक() के बीच अंतर बताएं ।
b) CO5 7
c) (II). What is command line argument?
d) कमांि लाइन तकण क्या है?

You might also like