R23-I Sem - IP Question Bank(2024-25)
R23-I Sem - IP Question Bank(2024-25)
***************************************************************************
Academic Year: 2024 – 25, I B. Tech., I Semester
Class & Branch: Common to All Branches of Engineering
Subject Name: INTRODUCTION TO PROGRAMMING (23A05301A)
***************************************************************************
CO COURSE OUTCOMES
CO1 Understand basics of computers, the concept of algorithm and algorithmic
thinking. (K2)
CO2 Analyze a problem and develop an algorithm to solve it. (K4)
CO3 Implement various algorithms using the C programming language. (K3)
CO4 Understand more advanced features of C language. (K2)
CO5 Develop problem-solving skills and the ability to debug and optimize the
code. (K3)
QUESTION BANK
1
Unit – II: Control Structures
2
Unit – V: Functions & File Handling
Unit – I:
1. Define an algorithm and give an example.
2. Write short notes on comments in C?
3. What are the bitwise operators in C?
4. Explain the purpose of logical operators.
5. Define operator precedence and associativity ?
Unit – II:
1. Write syntax of nested if-else statement?
2. Briefly describe the iterative statements.
3. Distinguish pre-test and post-test loops.
4. Write a C program to find reverse of a given value.
5. Illustrate the use of break in loop statements with an example.
Unit – III:
1. Define array. Give an example for declaring and initializing a one dimensional array
of size 5.
2. What are string I/O functions? Mention it syntax.
3. Write a program to print length of a given string without using library functions.
4. Illustrate initialization of a string with an example.
5. Explain the purpose of atoi() function?
Unit – IV:
1. What is pointer? Give its general form.
2. Write a program to show the difference between malloc() and calloc() functions.
3. Explain the purpose of free() function?
4. Differentiate array and structure.
5. Define union? Write the general template for a union?
3
Unit – V:
1. List the advantages that are associated with the use of functions in C language.
2. Explain any two library functions that supports by math.h header file?
3. Define function prototype. Give the general syntax of function prototype.
4. Define scope and life time of a variable? Mention four types of storage classes.
5. What is the importance of ftell( ) library function?