0% found this document useful (0 votes)
46 views2 pages

Adobe Scan Apr 26, 2023

The document is an examination paper for the First Semester B.E./B.Tech. Degree in Problem Solving Through Programming, conducted in Feb./Mar. 2022. It consists of multiple modules with questions covering various programming concepts, including C programming, data structures, functions, and operators. Students are required to answer five full questions, choosing one from each module, with a total of 100 marks available.

Uploaded by

hamza.ironfist
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)
46 views2 pages

Adobe Scan Apr 26, 2023

The document is an examination paper for the First Semester B.E./B.Tech. Degree in Problem Solving Through Programming, conducted in Feb./Mar. 2022. It consists of multiple modules with questions covering various programming concepts, including C programming, data structures, functions, and operators. Students are required to answer five full questions, choosing one from each module, with a total of 100 marks available.

Uploaded by

hamza.ironfist
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

GBGS SGHGME 21PSP13

USN

First Semester B.E./B.Tech. Degree Examination, Feb./Mar. 2022


Problem Solving Through Programming
Time: 3 hrs. Max. Marks: 100
malpractiCe.
Note: Answer any FlVEfull questions,choosing ONE full questlon from eaeh module.
as Module-1
trcatcd a. Explain Components of Conputer with block diagram. (10Marks)
b. Write aC program to find the area of triangle for the given three sides and draw flow chart.
(04 Murks)
pages.
be
will c. Explain various typcs of Computers. (06 Marks)
blank
50,
= OR
remaining
+8
42
a Write basic structure of C program and give brief cxplanation for cach section with
Cxamples. (10 Marks)
cg, (07 Murks)
thewritten
b. Define Operator. Explain any 6 operators with example.
on
C Check the following identifiers are valid or invalid :
i) sum100 i) sum+3 ifi) int iv) abcd v) X Y vi) 2product.
lincs
cquations (03 Marks)
cross
Module-2
/or
diagonal 3 a. Write the syntax of different branching statements and explain with example how they work.
and (10 Murks)
evaluator
draw b. Write a Cprogram to perform ll arithmetic operations for the given two integers Using
switch statement, (06 Murks)
compulsorily
to
C. With the help of example and syntax, explain formatted input / output functions of
Clanguage. (04 Marks)
appcal
OR
identification, a. Distinguish between while and do while statements. Explain with syntax and example.
answers, 4
(10Marks)
b. Write a Cprogramto check whether given number is prime or not. (06 Murks)
your
c. Explain the use ofbreak and continue inside for loop with example. (04 Marks)
revealngot
compleing
Module-3
5 a.
What is Array? How to declare and initialize ID and 2D array? Explain with example.
(10 Marks)
On Any
b Write a C program to sort the array elements using bubble sort. (05 Marks)

C. Write a C program to implement linear search technique.


1. 2. (05 Marks)
Note:
OR
Important
6 a. What is String? Explain any 4 string library functions withsyntax and example. (10 Marks)
b. Write a program to multiply 2 matrices by assuming their multiplication compatibility.
(10 Murks)
21PSP13

Module-4
7 a What is Function? Explain different cate gories of user defined functions. (10 Marks)
b. Write a C program for evaluating the binomial coefficient using afunction Factorial (n).
(06 Marks)
C. Explain Local and Global variables with example. (04 Marks)

OR
a
Differentiate i) User defined and built in function ii) Recursion and Iteration,
(10Marks)
b. Explain Call by value and Call by reference with example. (10 Marks)

Module-5
9 a. What is Structure? Explain Structure declaration and Initialization with example. (10 Marks)
b. What is Union? How to declare Union? List out the differences and similarities between
Structure and Union. (10 Marks)

OR
10 a What is Pointer? How to declare and initialize pointers? Explain with example. (06 Marks)
b. Write a C program to find sum of two squared number using Macro square (n). (06 Marks)
C. Write a C program to find sum, mean,standard deviation of array elements using pointers.
(08 Marks)

2 of2

You might also like