[go: up one dir, main page]

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

PROGRAMMING-FOR-PROBLEM-SOLVINGCSE-IT-CSM-CSD-CSO

This document is a question paper for the I B. Tech- I Semester Supplementary Examination in Programming for Problem Solving at ACE Engineering College. It consists of two parts: Part A, which is compulsory and contains 10 questions, and Part B, where students must answer one question from each of the 5 units. The total marks for the examination are 60, with a duration of 3 hours.
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)
27 views2 pages

PROGRAMMING-FOR-PROBLEM-SOLVINGCSE-IT-CSM-CSD-CSO

This document is a question paper for the I B. Tech- I Semester Supplementary Examination in Programming for Problem Solving at ACE Engineering College. It consists of two parts: Part A, which is compulsory and contains 10 questions, and Part B, where students must answer one question from each of the 5 units. The total marks for the examination are 60, with a duration of 3 hours.
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

Page |1

ACE
Engineering College
(An Autonomous Institution)

ACE-R22
Question Paper Code: 22CS104ES

I B. Tech- I Semester Supplementary Examination- Sep -2023


PROGRAMMING FOR PROBLEM SOLVING
(Common to CSE, IT, CSM, CSD & CSO)
Time: 3 Hours Max. Marks: 60
H. T. No
Note: This question paper contains two parts A and B.
1. Part A is compulsory which carries 10 marks. Answer all questions in Part A.
2. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries
10 marks and may have a, b as sub questions.

PART- A MARKS: 10*1=10

Q.No: 1 Question Marks

a) Define algorithm. 1

b) List out the storage classes in C. 1

c) Label the syntax of enum in C. 1

d) Why do we require structures? 1

e) Name the various modes for opening a file. 1

f) Distinguish compiler and preprocessor. 1

g) What is recursion? 1

h) What is syntax of function in C? 1

i) What is the time complexity of Binary search. 1

j) Which is the best sorting algorithm? 1


Page |2

PART- B MARKS: 5*10=50

Q.No Question Description Marks

2.a List out the operators available in C language and describe each operator. 5

2.b Design an algorithm for finding if a number is prime number or not. 5

(OR)
3.a Demonstrate various forms of if statement with syntax and example. 5
3.b Write a C program to calculate the sum of digits in the given number. 5

4.a Illustrate the procedure for declaring, initialising and accessing of pointers. 5

4.b Show the differences in the usage of a structure and union with an example. 5
(OR)
5.a Create a C program to display the string in reverse order without using string 5
handling functions.
5.b Why are arrays required? Categorize and discuss various types of arrays in C. 5

6 Classify and explain the usage of the preprocessor directives with examples. 10
(OR)
7.a Design a C program to copy the contents of one file to another file. 5
7.b List out and describe various modes of file operations with syntax and examples. 5

8.a Examine the functions used to implement dynamic memory allocation. 5


8.b Develop a C program to display the Factorial of a number using recursion. 5
(OR)
9.a Differentiate call by value and call by reference with suitable example. 5

9.b Define recursion. Summarize the limitations of recursive functions. 5

10 Sort the following elements by using selection sort: 35, 19, 66 ,14, 8,10 ,57, 100. 10
(OR)
11 Construct a C program for Linear search technique, to search for given key element 10
stored in an array.

You might also like