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

17080825904introduction To Programming

Byv hy r fun tfbtb yr tu tf th

Uploaded by

nagarajuc448
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)
86 views2 pages

17080825904introduction To Programming

Byv hy r fun tfbtb yr tu tf th

Uploaded by

nagarajuc448
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

H.T.

No: Course Code: 231ES1T04

ADITYA COLLEGE OF ENGINEERING &TECHNOLOGY(A)


B.Tech – I Semester End Examinations Regular (ACETR23) – JAN 2024
INTRODUCTION TO PROGRAMMING
(Common to CSE, IT, CSE(AI&ML) & CSE( DS))
Time: 3 hours Max. Marks: 70
1. Answer all 10 questions from Section-A. Each question carries 2 marks.
2. Answer one question from each unit in Section-B. Each question carries 10 marks.

SECTION –A 10 X 2 =20
1 a Draw a flow chart to print first n natural numbers. L2 CO1 [2M]
b Explain typecast in c programming. L2 CO1 [2M]
c Write syntax of switch-case statement. L2 CO2 [2M]
d Differences between while and do-while loop. L2 CO2 [2M]
e Write about extern storage class in C. L2 CO3 [2M]
f Write about modularization in programming. L2 CO3 [2M]
g Difference between malloc() and calloc(). L2 CO4 [2M]
h Define a string and how to declare a string in C. L2 CO4 [2M]
i Difference between structure and Union. L2 CO5 [2M]
j Write the syntax of fopen() function. L2 CO5 [2M]

SECTION –B 5 X 10 =50

UNIT-I
2 a Differentiate among high level, low level and middle level L2 CO1 [5M]
language?
b Explain problem solving strategies with suitable example. L2 CO1 [5M]
OR
3 a Explain time and space complexity of an algorithm with an example. L2 CO1 [5M]
b What do you mean by data types? Explain data types of C language. L2 CO1 [5M]

UNIT-II
4 a Explain the various conditional branching statements with suitable L2 CO2 [5M]
example.
b Write a program to print Fibonacci sequence up to n terms. L3 CO2 [5M]
OR
5 a Explain break, continue statements with example and their use? L2 CO2 [5M]
b Write a program to find factorial of a number using for loop? L3 CO2 [5M]

UNIT-III
6 a Explain Call by value and call by reference with example. L2 CO3 [5M]
b Explain about recursion using suitable example. L2 CO3 [5M]
OR
7 a Write short notes on: i) Null pointer ii) Dangling pointer L2 CO3 [5M]
b Write a C program to check given number is Armstrong or not using L3 CO3 [5M]
functions.

Page 1 of 2
UNIT-IV
8 a Explain about dynamic memory allocation in C programming. L2 CO4 [5M]
b Write a C program to calculate the matrix multiplication. L2 CO4 [5M]
OR
9 a Write a C program to concatenate two strings without using string L2 CO4 [5M]
handling function.
b Write a c program to print the diagonal elements of a matrix. L3 CO4 [5M]

UNIT-V
10 a Illustrate the concept of nested structures with an example L2 CO5 [5M]
b Define file and explain various file opening modes with an example. L2 CO5 [5M]
OR
11 a What do you mean by array of structure? Explain with example? L2 CO5 [5M]
b Write a C program to read and display a text from the file L2 CO5 [5M]

Page 2 of 2

You might also like