Updated - R23 - 2M - QB - Introduction To Programming - 19 - 01 - 2024
Updated - R23 - 2M - QB - Introduction To Programming - 19 - 01 - 2024
ENGINEERING
(AUTONOMOUS)
Karakambadi Road, TIRUPATI – 517507
Question bank - 2M
Name of the
CSE , CE, ME, EEE, ECE, IT, AI&ML, DS, CS
Branch/Course
Subject INTRODUCTION TO PROGRAMMING
Unit – 1
UNIT - 2
1 Specify the syntax used for ‘for’ statement.
2 Difference between ‘break’ and ‘continue’ statements.
3 Give the syntax of if-else statement.
4 What is entry controlled loop and exit controlled loop?
5 What is a looping?
6 Difference between while and do-while loop in C?
7 Difference between simple if and if-else ?
8 What is nested loop?
9 What is iterative statement and types in C?
10 What is else if ladder?
11 What is go to statement?
12 What is the purpose of exit(0) statement?
13 What is switch() statement.
14 Write a program to display whether a given number is even or odd.
15 Write a program to display whether a given year is leap year or not.
UNIT - 3
1 What is an array?
2 Differentiate between actual parameters and formal parameters.
3 What is the significance of return statement?
4 Why is it necessary to give the size of an array in an array declaration.
5 What are multidimensional arrays?
6 Define user defined function
7 Define recursive function and write one example.
8 Write storage classes in C
9 What is function?
10 Differentiate user defined and library functions
11 What is function prototype?
12 Write difference between a variable and an array
UNIT - 4
1 What is a Pointer and explain with an example?
2 What is function pointer?
3 Define string with example?
4 What is the difference between scanf() & gets()?
5 Write any five string handling functions
6 What is the use of preprocessor directives?
7 What is pointer to pointer?
UNIT - 5
1 What is enumerated data type? Give an example.
2 What command line arguments?
3 Define Structure and Union?
4 Write the Advantages of Structures
5 Define a file?
6 What is dynamic memory allocation?
7 Define bit field
8 What is the purpose of ftell()
9 What is the purpose of fseek()
10 What are the modes used in fopen()
11 What is the purpose of fread() and fwrite()
12 Write the differences between text file and binary files
13 What is the purpose of fcloseall()