C Language
or
Fundamentals of Programming
IMP Questions List
1-3 Marks Short Question
- Write difference between algorithm and flowchart.
- · Explain the importance of C language.
- · What is format specifier?
- · What are local and global variable?
- · Define keyword, constant and variable.
- · Write a short note on type casting.
- · What is the difference between strlen() and sizeof() with example?
- · Why do we use header files?
- · Define relational operator.
- · What is an interpreter?
- · What is the purpose of adding comments in a program?
- · Differentiate between comparison and equality operator.
- · What is the syntax of switch statement?
- · Differentiate between expression and statement.
- · Distinguish between unary and binary minus.
- · Write a program in C language to convert the given string in uppercase?
- · What do you mean by formal arguments and the actual arguments?
- · What do you mean by functions?
- · What is parameter passing?
- · Define array and how we can access elements of an array?
- · What is the difference between character and string?
- · Write difference between character and string?
- · What is the purpose of the return statement?
- · What is array overflow?
- · Explain function prototyping.
- · What are pros and cons of goto statement?
- · What is the typedef declaration? Give suitable example.
- · What is the role played by atoi() in string manipulation?
- · Give the syntax and application of extern storage class?
- · Distinguish between run time and logical errors.
- · What is pointer?
- · What are advantages of pointers?
- · Define structure with syntax.
- · Write a C program using pointers to multiply two integers.
- · What are self-referential structures?
- · Differentiate between structure and union.
- · Define text & binary files.
- · What do you mean by data file?
- · What is purpose of library function feof()?
- · What do you mean by enumerated data types?
- · What is the use of fseek() and rewind() function?
- · Define a structure student contain name and marks.
- · Write advantage of union over structure.
- · What do you mean by Dangling pointer?
- · Is the following statement valid? Justify your answer
k= (char*) &m;
m= (float*) &p
5 Marks Question
- · Discuss the structure of a C program. Explain with example.
- · What do you mean by data types? Give examples of data types available in C language.
- · Explain the various control statements used in c language.
- · What is the difference between pre and post increment operator? Explain with the help of an example.
- · What is the difference between break and continue statements? Explain with the help of an example.
- · Write the advantage and disadvantage of for loop over while.
- · Write difference between while and do while with example.
- · What do you mean by ternary operator? Explain with example.
- · What are user define function its advantages and write its different types.
- · What are String functions and write some string function?
- · Explain with example the concept of passing array to function.
- · What is recursion? Write a program to find Fibonacci series till a given number using recursion.
- · Explain with example the relationship of one dimensional array and pointers.
- · Differentiate between pass by Value and pass by reference with the help of example.
- · What is a pointer to an array and an array of pointers?
- · What is the difference between static and dynamic memory allocation?
- · What do you mean by structure? How does a structure differ from an array?
- · Explain with examples the various file handling functions.
- · What different function to handle errors in files?
- · What are command line arguments?
- · Explain by giving suitable example pointers with structures.
- · How can we initialize array and structure?