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

2024 Previous Question Papers

Uploaded by

ffmaxim591
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)
2 views

2024 Previous Question Papers

Uploaded by

ffmaxim591
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/ 4

Code No:23CS1T01

R23

I B. TECH I SEMESTER SUPPLEMENTARY EXAMINATIONS, JUNE-2024


INTRODUCTION TO PROGRAMMING
(COMMON TO ALL BRANCHES)
Time: 3 Hours Max. Marks: 70
____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

Note : 1. Question paper consists of two parts (Part-A and Part-B)


2. All the questions in Part-A is Compulsory
3. Answer ONE Question from Each Unit in Part-B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PART – A (20 Marks)

1. a) Discuss about Primary memory [2M]


b) Distinguish between a Compiler and Interpreter? [2M]
c) Why should we use Switch statement for selection in programming [2M]
d) Compare While and Do-while loops [2M]
e) Define two Dimensional array [2M]
f) Explain String Compare function [2M]
g) Explain void pointer? [2M]
h) Compare structure and union? [2M]
i) Explain Binary Files? [2M]
j) List out different storage classes available in C? [2M]

PART – B (50 Marks)


UNIT-I
2. a) Explain about bitwise operators in C. [5M]
b) Explain about Computer Languages. [5M]
(OR)
3. a) Explain about characteristics of algorithm. [5M]
b) Compare Type Conversion, and Casting. [5M]
UNIT-II
4. Briefly Explain about control statements in C with examples. [10M]
(OR)
5. a) Explain about unconditional branching. [5M]
b) Develop a c Program using unconditional branching (Using break [5M]
and continue).
UNIT-III
6. a) Explain any five String functions. [5M]
b) Implement C Program to Concatenate two strings(without using [5M]
String functions).
08-06-2024 Page1 of 2
Code No:23CS1T01
R23

(OR)
7. a) Explain about advantages and disadvantages of arrays. [5M]
b) Develop a C Program to find the given element in the given array. [5M]
UNIT-IV
8. Explain about nested structures with program. [10M]
(OR)
9. a) Explain about pointers to pointers. [5M]
b) Explain about dynamic memory functions. [5M]
UNIT-V
10. a) Develop a C program to find GCD using recursion function. [5M]
b) Explain about parameter passing in functions. [5M]
(OR)
11. a) Describe briefly about random access of files. [5M]
b) Implement a C program to read name and marks of n number of [5M]
students from and store them in a file.

*****

08-06-2024 Page2 of 2
Code No:23CS1T01
R23

I B. TECH I SEMESTER REGULAR EXAMINATIONS, FEBRUARY-2024


INTRODUCTION TO PROGRAMMING
(COMMON TO ALL BRANCHES)
Time: 3 Hours Max. Marks: 70
_______________________________________________________________________________________
Note:1. Question paper consists of two parts (Part-A and Part-B)
2. All the questions in Part-A is Compulsory
3. Answer ONE Question from Each Unit in Part-B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PART – A (20 Marks)

1. a) Describe the characteristics of a good algorithm. [2M]


b) Draw flowchart to find the largest among three numbers. [2M]
c) Compare break and continue statements. [2M]
d) Explain about goto Statement. [2M]
e) Define array in programming. [2M]
f) Explain String Concatenation function. [2M]
g) Define null pointer? [2M]
h) Explain about the significance of a bit field? [2M]
i) How many basic modes for opening a file in C? [2M]
j) Define recursion function? [2M]

PART – B (50 Marks)

UNIT-I
2. a) Differentiate Flowchart vs Algorithm, state the limitations of the [5M]
Algorithm, how it is addressed in Flowchart.
b) Briefly Explain about Primary datatypes in C [5M]
(OR)
3. a) Draw the basic structure of a C program. [5M]
b) Briefly Explain about History of Computers. [5M]
UNIT-II
4. a) Write a C program to print grades of students using switch. [5M]
b) Differentiate switch vs Else-if Ladder with an example. [5M]
(OR)
5. a) Compare While and Do-while loops. [5M]

b) Implement C Program to check whether the given number is prime or [5M]


not.

08-02-2024 Page 1 of 2
Code No:23CS1T01
R23

UNIT-III
6. a) Explain 2-d arrays with example. [5M]
b) Implement a C program to sort the given elements. [5M]
(OR)
7. a) What is string? How the memory is allocated for a string. [5M]
b) Write C Program to Compare two strings (without using String [5M]
functions).
UNIT-IV
8. a) Define pointer. Illustrate with an example. [5M]
b) Differentiate call by value vs call by reference with an example. [5M]
(OR)
9. Explain arrays of structures with an example program. [10M]
UNIT-V
10. a) List out various file operations. Illustrate with an example. [5M]
b) Implement a C program to read and print the content of the file. [5M]
(OR)
11. Explain about storage classes in C with programs. [10M]

*****

08-02-2024 Page 2 of 2

You might also like