Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2
UNIT-I 6. What are various bitwise operators?
Language Fundamentals 7. What is the difference between = and ==?
1. Define algorithm. Give its characteristics. 8. Define Boolean expression? 2. Define flowchart. Give its various symbols. 9. What is the purpose of conditional operator? 3. Define C token. Give examples. 10. What is the purpose of sizeof operator? 4. What is the difference between an identifier 11. What are rules of type conversion? and a keyword? 12. What is implicit conversion? How it is 5. Define a variable. How to declare, initialize achieved? and access a variable? 13. What is explicit conversion? How it is 6. What are different types of constants achieved? available in C? 14. What is operator’s precedence and 7. What is the difference between a variable and associativity? a constant? 15. How an expression is evaluated? 8. What are different data types available in C? 16. How to swap two variables with out using a Give their sizes and ranges. temporary variable? 9. What are different type qualifiers available in 17. Which is better: C? ++i or i=i+1 or i++ or i+=1. 10. How to declare a constant? UNIT-II Data input and output Control-flow statements 1. Explain the syntax of printf() with example? 1. Define: simple statement, compound 2. Explain the syntax of scanf() with example? statement and null statement. 3. What are different format specifiers in 2. What is conditional control-flow statement? printf()? 3. What are the differences between an if 4. what are different conversion specifiers in statement and a switch statement? scanf()? 4. What is the operator that performs the same 5. What are different escape sequences? behavior as if…else statement? 6. Explain the syntax of gets() with example? 5. What are the different data types can be used 7. what are the differences between gets() and as case values in a switch statement? scanf() while inputting a string? 6. Write syntaxes of: simple if, if…else, nested if 8. Explain the syntax of puts() with example? else, else if ladder and switch? 9. what are the differences between puts() and 7. Define: loop, nested loop, infinite loop? printf() while outputting strings. 8. Write syntaxes of: while, for and do-while? 10. Explain the syntax of getchar() with example? 9. What are the differences between while and 11. What is the difference between getch() and do-while? getche()? 10. What is the difference between sentinel- 12. What do printf() and scanf() functions return? controlled loop and counter-controlled loop? Writing a program in C 11. What is the difference between break and 1. Define: editor, preprocessor, compiler, linker, continue statements? loader and interpreter. 12. What is the difference between break and 2. What is the purpose of comment lines? exit() function? 3. What is preprocessor directive? 13. What is the purpose of goto statement? 4. What is the purpose of # include? Functions 5. What is the difference between 1. “C is a procedure-oriented programming #include<…..> and #include ”….”? language” – justify? 6. What is the purpose of #define (or macro)? 2. Define function? Give advantages? 7. What is the difference between # define and 3. Define built-in function and user-defined const? function? 8. How many types of files are created when a c 4. What is the use of built-in functions? program is created? 5. What are various types of user-defined Operators and expressions functions available in C? 1. Define: operator, operand and expression. 6. What is the purpose of function prototype? 2. What are simple assignment, multi- 7. How to define a function? assignment and compound assignment? 8. How to call a function? 3. What are different unary operators available 9. What is the difference between actual in C? argument and formal parameter? 4. What is the difference between pre-increment 10. What are the difference between call by value and post-increment? and call by reference? 5. What are various comparison operators (or 11. What is the purpose of “void”? Give example? Boolean operators)? 12. What is the purpose of “return” statement? 13. What does the error mean “Segmenatation Give example? fault”? 13. Define scope? Give various types of scope? 14. Compare array with a pointer? 14. Define lifetime of a variable? 15. How can multiple values be returned to a 15. What are the differences between local and calling function? global variables? 16. What are the differences between static 16. Define recursion? memory allocation and dynamic memory 17. What are the differences between recursion allocation? and iteration? 17. What does malloc(-20) and malloc(0) return? 18. What is the purpose of storage class? 18. what is the difference between malloc() and 19. Give the purpose of: auto, static, register and calloc()? extern storage classes? 19. Declare the following: UNIT-III A pointer-to-int Numeric and Non-numeric arrays (strings) A pointer-to-void 1. In what way an array is different from a A pointer-to-function that takes two variable? integer arguments and no return value. 2. What is an array? A pointer-to-1-D array. 3. How to declare, initialize and print a one- A Pointer-to-2-D array of 15 columns. dimensional array? Give an example? An Array of pointers of 10 rows. 4. How to declare, initialize and print two- A pointer-to-pointer that holds address of dimensional array? Give an example? a pointer-to-int 5. What is a string? What is the header file that An array of pointers to a function contains all string-handling functions? returning float 6. How to declare, initialize and print a string? 20. What is the difference between char const* Give an example? and const char*? 7. How to declare, initialize and print multiple 21. What is the difference between strings? Give an example? char college[]=”RVR&JC” and 8. Write code snippets for the following char *college=”RVR&JC”. operations without using string-handling 22. What are LValue and RValue? functions: UNIT-IV Length of a string. Structures, unions Reversing a string. 1. What is a structure? Copying a string to another. 2. How to declare, initialize and access members Concatenation of one string with of a structure? another. 3. What are the differences between a structure Comparison of two strings and an array? Pointers 4. Why size of structure is not always the sum of 1. What is a pointer? sizes of individual members in it? 2. Give the situations where pointer is most 5. What is a union? needed. 6. How to declare, initialize and access members 3. In what way a pointer is different from a of a union? variable? 7. What are the differences between a structure 4. What are the purposes of & and * operators? and a union? 5. What are the differences between bitwise and 8. what is the difference among these: referencing operators? #define I 20 , 6. What are the differences between const int I=20; and multiplicative and de-referencing operators? enum e={I=20}; 7. How to declare, initialize and access a 9. What is the purpose of typedef? pointer? 10. What is a self-referential structure? 8. Define: generic pointer, NULL pointer and 11. Can a union be self-referenced? pointer-to-pointer? Files 9. What are various operations possible on 1. What is a file? pointers? 2. What are different modes of opening a file? 10. What is the difference between ++*p and *+ 3. What are the differences between sequential- +p? access and random-access files? 11. What is the use of passing pointer as an 4. What is the purpose of: fopen(), fclose(), argument? fprintf(), fscanf(), feof(),fseek(), ftell() 12. How can we pass an entire function as an 5. What are command line arguments? argument to a function? 6. List out file error handling functions?