Introduction to Programming Important Revised Questions
Introduction to Programming Important Revised Questions
Important Questions
Unit 1
Unit 2
1 What is variable and how it is differ from identifier?
2 Describe structure of a C program with an example?
Write a C Program to find total of 5 integer values and print in integer and
3 calculate the average and print in float?.
4 Explain the operator precedence in detail with examples?
5 What is an operator? List and explain various types of operators with example?
6 Explain various input and output functions in “C” with examples?
7 Explain implicit and explicit type conversions with examples.
8 Write a program to read any three numbers and print largest number
9 Define Data types? What are different types of Data types?
Write program to read any two numbers and swap the numbers with using and
10 without third variable.
11 Explain the logical operator s with examples?
12 Write any two preprocessor directives in C?
13 What is the variable? Illustrate with an example?
14 What is the importance of #include? Explain
15 Explain the working of Unary Operator with example.
16 What is an error? Describe various types errors with example
17 Define Comments with Examples?
18 What are primitives Datatypes? Non Primitive Datatypes?
19 What is Token? What are the different types of token available in C language
20 Write a program to calculate the area and circumference of a circle with radius 10.
Unit 3
What are functions? How are they useful? What are the different kinds of user
1 defined functions and what is the need of user defined functions?
Write a C Program to find number of characters in a given string without
2 using library function.
3 Explain Call by Value and Call by Reference with example each
What is recursion? Write a program to find the factorial of a given number
4 using recursion.
Explain the following with respect to functions: (i) Function prototype (ii)
5 Function call (iii) Returning from function
Develop a program to find the factorial of a given integer number using
6 recursive function.
7 Explain pointers to functions and array of pointers.
What are the unions? How are they different from structures? Give an
8 example for union.
9 Explain built-in functions for handling strings.
What is the main use of function pointer in C?How do you declare a function
10 pointer? Explain.
What is Recursive Function? What are the constraints for defining a Recursive
11 Function? Explain with an example.
12 Write program for finding the GCD among two numbers using recursion
What is Shift operation? Perform different types of shift operations on
13 101110011
What is an user defined function? When these functions are useful? How a
14 function is declared and what are the rules followed to call a function.
15 Differentiate pointers, variables and arrays.
16 Explain actual and formal arguments
17 What is dangling Pointer
18 Explain any three String Handling Functions
19 What is Generic Pointers
20 Explain Null Pointer
Unit 5
Write difference between structures and unions w.r.t memory allocation and
1 accessing.
2 Develop a C program to append the contents of one file to another file.
Explain the following file handling functions in C programming i) fopen() ii)
3 fseek() iii) fwrite()
Explain various dynamic memory allocation functions in C with an example
4 each.
5 Write a C program to Display contents of a text file on console.
What kind of files and functions for files are used in C language? Explain in
6 Detail
7 What are bit-fields.? Explain their significance.
8 Explain the utility of ‘typedef’ keyword. Write a program to illustrate it.
9 What is self Referential structure explain in Breif
What are various standard library input/output functions used in C language?
10 Explain with simple program.
Write the syntax to define Union? List out the advantages and disadvantages of
11 using Unions.
12 Explain in detail about the types of C preprocessor directives
Using structures write a program to read and display the information of five
13 students in a class.
Explain the following functions in files: (i) fseek( ) (ii) ftell( ) (iii) rewind( ) (iv)
14 fopen( ) (v) fclose( ) (vi) foef( )
Explain the following functions in file operations: (i) getw( ) (ii) putw() (iii)
15 fscanf( ) (iv) fprintf( )
16 Define a structure. Describe how to declare and initialize structure
17 What is Nested Structures
18 Explain Array of structures
19 What are the different file modes in c language ?
20 What is Text File