C

1.1 ARRAY

1). What is an array?

2). How to declare the array?

3). why array index starts with 0?

4). how to convert array notation to pointer notation?

5). what is advantage of 2’d array?

6). WAP to collect twin primes between 1-100?

7). WAP to hold array address and to print the array elements?

8). WAP to sort the array by using bubble and selection?

9). WAP to reverse the array?

10). WAP to copy contents from one array to another?

1.2 COMPILATION STAGES

1). what is compilation?

2). what are the compilation stages are available in c?

3). what are the modifications will happen in preprocessing stage?

4). what is the diff between object file and exe file?

5). weather .exe file is relocatable or not?

6). WAP to produce the preprocessing stage output?

7). WAP to produce the compilation stage output?

8). WAP to express where syntactical errors will be caught?

9). What will happen if there is no proper header file in code?

10). who will provide the external linkages to code?

1.3 CONDITIONAL STATEMENTS

1). what are the conditional statements are available in c?

2). what is the use of else if ladder?

3). why switch is better the else if?

4). what is use of nested conditional statements?

5). what is syntax of if else?

6). WAP in menu driven way to collect and to print the details of employ?

7). WAP to convert switch into else if?

8). WAP to find the day with the help of year, date, month?

9). WAP to find the greatest number among 2 numbers by using ternary?

10). WAP to solve nested conditions with ternary?

1.4 CONDITIONAL AND CONTROL STATEMENTS

1). What are the control statements are available in c?

2). what are the 3 principal components of control statements?

3). what is advantage and syntax of each control statements?

4). what is the exit and entry-controlled loop in c?

5). what is the concept which can overlap the loops?

6). WAP to implement Diamond pattern?

7). WAP to print 1-100 prime, even, odd numbers?

8). WAP to find the product of digits in each number?

9). WAP to collect multiple inputs and to print those?

10). implement the alpha numerical pattern with do while?

1.5 DATA TYPES

1). What are the different types of data types are available what those are?

2). What is the format Specifies for different types of data types?

3). What are fundamental and derived data types?

4). What are the sign Qualifiers are available in c?

5). What are the Size Qualifiers are available in c?

6). WAP to find the sizes of different data types?

7). WAP to Find the ranges of Different data types?

8). WAP to assign the one type value to another type variable and observe the result?

1.6 DMA

1). What is Dynamic memory allocation?

2). What are the DMA functions are available and syntaxes?

3). What is use of free?

4). what is the location where DMA will allocate?

5). how to free the memory using realloc?

6). WAP to allocate the memory to pointer to access it?

7). WAP to allocate 2’d pointers memory and to hold multiple strings?

8). WAP to allocate memory to structure and access those elements?

9). WAP to allocate memory to multiple 2’d arrays and to hold in 3’d?

10). WAP to allocate memory to different data variables and to access those?

1.7 ENUM

1). What is enum and syntax to declare enum?

2). what are the advantages of enum?

3). What is the size of enum?

4). how to access enum elements?

5). what is the default values of enum?

6). WAP to find the month using enum?

7). WAP to pass enum value and to return the same?

8). WAP to perform arithmetic operations using enum?

9). WAP to copy one enum to another?

10). WAP to increment and decrement the enum variable and observe the result?

1.8 C ENVIRONMENT

1). What are the different types of Compilers in c?

2). What are the different types of ide’s are available do develop c?

3). Who invented c?

4). What is the purpose of invention of C?

5). C is high- or low-level language?

6). C is case sensitive or not?

7). c is procedure oriented or not?

8). what are all the fields c will be used?

9). difference between c and c++?

10). c was developed with which language?

11). how to install c-based compiles and ide’s?

12). what is the use of c in high level language?

13). Difference between c and low-level language?

14). where c libraries will be stored?

15). what is the out form of c program after compilation?

16). What are the folders will be created after installing c compiler?

1.9 FILE HANDLING

1). what is FILE?

2). how to access the file?

3). what are functions available in file handling?

4). what is syntax and use of fseek()?

5). why file is opeq type of structure?

6). WAP to copy one file content to another?

7). WAP to print source code as output?

8). WAP implement grep command?

9). WAP to implement WC command?

10). WAP to implement ftell()?

1.10 FUNCTIONS

1). what is function?

2). what are the advantages of function?

3). what is the syntax of function?

4). what are the different types of functions what are those?

5). where pre-defined function definitions are available?

6). WAP to find sum, sub, mul, div, mod which will be called in menu driven way?

7). WAP to find given num is Armstrong or not?

8). WAP to find Fibonacci series of given number?

9). WAP to find the multiples of given number?

10). WAP to find given number is perfect number of not?

1.11 OPERATORS

1). What is operator?

2). What are the different types of operators are available and what are those?

3). What is the significance of bitwise operators?

4). what is the output of logical operators?

5). what are miscellaneous operators are available in c?

6). WAP to add 2 numbers without using + operator?

7). WAP to multiply 2 numbers without using * operator?

8). WAP to Evaluate 2 expressions?

9). WAP to perform arithmetic operation on 2 operands by using shorthand operators?

10). WAP to print the binary equivalent of int number?

1.12 POINTERS

1). What is pointer, syntax?

2). What are the advantages of pointer?

3). what is wild pointer?

4). what is NULL pointer?

5). what is generic pointer?

6). what is Dangling pointer?

7). WAP to swap 2 numbers by using call by reference?

8). WAP to implement call back function with function pointer?

9). WAP which will accept 2’d pointer and will return the same?

10). WAP to hold the address of function and to return the function address?

1.13 PREPROCESSOR_DERICTIVES

1). What is the use of preprocessor Directives?

2). what are the different preprocessor directives?

3). In compilation which stage preprocessor directives will be processed?

4). What is the difference between if and #if?

5). What is the real time applications of preprocessor directives?

6). WAP to allocate memory by using #pragma?

7). WAP to Discard piece of code from source file?

8). WAP to explain about #if #elif #endif?

9). What is the command for preprocessing stage?

10). what are the modification will happen in preprocessing stage?

11). what is the difference between macro and inline and function?

1.14 STORAGE CLASSES

1). what is storage class?

2). what are the different types of storage classes are available?

3). what are the advantages of storage classes?

4). what will happen if Static storage class is not working to static variable?

5). if CPU core registers are full where register variables will store?

6). WAP to print the default values of all storage variables?

7). WAP to print the memory locations of each storage class?

8). WAP to access the Global variable in multiple files?

9). WAP to access the Static variable in different file?

10). WAP to demonstrate the Scope rules?

11). what is the memory layout of C?

12). what is scope of local static and global static?

13). what is the visibility of extern variables?

14). what is the default storage class of local variables?

15). what is the default storage class of global variables?

1.15 STRINGS

1). what is string?

2). what are functions available in strings?

3). what is syntax of memmove,memcpy,memset?

4). what is advantage of 2’d strings?

5). what is the header file to be included when using strings?

6). implement strstr?

7). implement strrchr?

8). implement strcmp?

9). implement strncpy?

10). implement strdup?

1.16 STRUCTURE

1). What is structure and syntax to declare the structure?

2). how to find the size of structure?

3). what is structure padding?

4). what is structure packing?

5). what is bitfield concept in structure?

6). WAP to collect the details of students by using structure?

7). WAP to call function by passing structure address and to print those elements?

8). WAP to copy one structure to another?

9). WAP to sort array of structures by using roll number?

10). WAP to implement 2’d structure?

1.17 UNION

1). what is union and syntax of union?

2). What is the difference of Structure and union?

3). how to find the size of union?

4). implement size of function?

5). What are the real time scenarios where union will be used?

6). WAP to collect employee details using union?

7). WAP to initialize the union and to access those elements?

8). WAP to find the address of union elements?

9). WAP to copy the union to structure?

10). WAP to pass union to function and to access those elements?

1.18 VARIABLES

1). What is variable?

2). What is the Syntax of Variable?

3). what is the Advantage of Variable Concept in c?

4). what are the rules to declare and to not declare the variable?

5). what are the different types of variable are available?

6). WAP to declare the variable and to pass the variable to function?

7). WAP to print the address of variable?

8). WAP to Swap 2 variables without temp and with temp variable?

9). WAP to collect values to multiple different types of variables at run time?

10). what is the dis-advantage of variable concept and advantage?

1.19 COMPILATION STAGES

1). what is compilation?

2). what are the compilation stages are available in c?

3). what are the modifications will happen in preprocessing stage?

4). what is the diff between object file and exe file?

5). weather .exe file is relocatable or not?

6). WAP to produce the preprocessing stage output?

7). WAP to produce the compilation stage output?

8). WAP to express where syntactical errors will be caught?

9). What will happen if there is no proper header file in code?

10). who will provide the external linkages to code?

1.20 C ENVIRONMENT

1). What are the different types of Compilers in c?

2). What are the different types of ide’s are available do develop c?

3). Who invented c?

4). What is the purpose of invention of C?

5). C is high- or low-level language?

6). C is case sensitive or not?

7). c is procedure oriented or not?

8). what are all the fields c will be used?

9). difference between c and c++?

10). c was developed with which language?

11). how to install c-based compiles and ide’s?

12). what is the use of c in high level language?

13). Difference between c and low-level language?

14). where c libraries will be stored?

15). what is the out form of c program after compilation?

16). What are the folders will be created after installing c compiler?

1.21 DATA TYPES

1). What are the different types of data types are available what those are?

2). What is the format Specifies for different types of data types?

3). What are fundamental and derived data types?

4). What are the sign Qualifiers are available in c?

5). What are the Size Qualifiers are available in c?

6). WAP to find the sizes of different data types?

7). WAP to Find the ranges of Different data types?

8). WAP to assign the one type value to another type variable and observe the result?

1.22 OPERATORS

1). What is operator?

2). What are the different types of operators are available and what are those?

3). What is the significance of bitwise operators?

4). what is the output of logical operators?

5). what are miscellaneous operators are available in c?

6). WAP to add 2 numbers without using + operator?

7). WAP to multiply 2 numbers without using * operator?

8). WAP to Evaluate 2 expressions?

9). WAP to perform arithmetic operation on 2 operands by using shorthand operators?

10). WAP to print the binary equivalent of int number?

1.23 STORAGE CLASSES

1). what is storage class?

2). what are the different types of storage classes are available?

3). what are the advantages of storage classes?

4). what will happen if Static storage class is not working to static variable?

5). if CPU core registers are full where register variables will store?

6). WAP to print the default values of all storage variables?

7). WAP to print the memory locations of each storage class?

8). WAP to access the Global variable in multiple files?

9). WAP to access the Static variable in different file?

10). WAP to demonstrate the Scope rules?

11). what is the memory layout of C?

12). what is scope of local static and global static?

13). what is the visibility of extern variables?

14). what is the default storage class of local variables?

15). what is the default storage class of global variables?

1.24 FUNCTIONS

1). what is function?

2). what are the advantages of function?

3). what is the syntax of function?

4). what are the different types of functions what are those?

5). where pre-defined function definitions are available?

6). WAP to find sum, sub, mul, div, mod which will be called in menu driven way?

7). WAP to find given num is Armstrong or not?

8). WAP to find Fibonacci series of given number?

9). WAP to find the multiples of given number?

10). WAP to find given number is perfect number of not?

1.25 VARIABLES

1). What is variable?

2). What is the Syntax of Variable?

3). what is the Advantage of Variable Concept in c?

4). what are the rules to declare and to not declare the variable?

5). what are the different types of variable are available?

6). WAP to declare the variable and to pass the variable to function?

7). WAP to print the address of variable?

8). WAP to Swap 2 variables without temp and with temp variable?

9). WAP to collect values to multiple different types of variables at run time?

10). what is the dis-advantage of variable concept and advantage?

1.26 CONDITIONAL STATEMENTS

1). what are the conditional statements are available in c?

2). what is the use of else if ladder?

3). why switch is better the else if?

4). what is use of nested conditional statements?

5). what is syntax of if else?

6). WAP in menu driven way to collect and to print the details of employ?

7). WAP to convert switch into else if?

8). WAP to find the day with the help of year, date, month?

9). WAP to find the greatest number among 2 numbers by using ternary?

10). WAP to solve nested conditions with ternary?

1.27 CONDITIONAL AND CONTROL STATEMENTS

1). What are the control statements are available in c?

2). what are the 3 principal components of control statements?

3). what is advantage and syntax of each control statements?

4). what is the exit and entry-controlled loop in c?

5). what is the concept which can overlap the loops?

6). WAP to implement Diamond pattern?

7). WAP to print 1-100 prime, even, odd numbers?

8). WAP to find the product of digits in each number?

9). WAP to collect multiple inputs and to print those?

10). implement the alpha numerical pattern with do while?

1.28 ARRAY

1). What is an array?

2). How to declare the array?

3). why array index starts with 0?

4). how to convert array notation to pointer notation?

5). what is advantage of 2’d array?

6). WAP to collect twin primes between 1-100?

7). WAP to hold array address and to print the array elements?

8). WAP to sort the array by using bubble and selection?

9). WAP to reverse the array?

10). WAP to copy contents from one array to another?

1.29 STRINGS

1). what is string?

2). what are functions available in strings?

3). what is syntax of memmove,memcpy,memset?

4). what is advantage of 2’d strings?

5). what is the header file to be included when using strings?

6). implement strstr?

7). implement strrchr?

8). implement strcmp?

9). implement strncpy?

10). implement strdup?

1.30 POINTERS

1). What is pointer, syntax?

2). What are the advantages of pointer?

3). what is wild pointer?

4). what is NULL pointer?

5). what is generic pointer?

6). what is Dangling pointer?

7). WAP to swap 2 numbers by using call by reference?

8). WAP to implement call back function with function pointer?

9). WAP which will accept 2’d pointer and will return the same?

10). WAP to hold the address of function and to return the function address?

1.31 DMA

1). What is Dynamic memory allocation?

2). What are the DMA functions are available and syntaxes?

3). What is use of free?

4). what is the location where DMA will allocate?

5). how to free the memory using realloc?

6). WAP to allocate the memory to pointer to access it?

7). WAP to allocate 2’d pointers memory and to hold multiple strings?

8). WAP to allocate memory to structure and access those elements?

9). WAP to allocate memory to multiple 2’d arrays and to hold in 3’d?

10). WAP to allocate memory to different data variables and to access those?

1.32 STRUCTURE

1). What is structure and syntax to declare the structure?

2). how to find the size of structure?

3). what is structure padding?

4). what is structure packing?

5). what is bitfield concept in structure?

6). WAP to collect the details of students by using structure?

7). WAP to call function by passing structure address and to print those elements?

8). WAP to copy one structure to another?

9). WAP to sort array of structures by using roll number?

10). WAP to implement 2’d structure?

1.33 UNION

1). what is union and syntax of union?

2). What is the difference of Structure and union?

3). how to find the size of union?

4). implement size of function?

5). What are the real time scenarios where union will be used?

6). WAP to collect employee details using union?

7). WAP to initialize the union and to access those elements?

8). WAP to find the address of union elements?

9). WAP to copy the union to structure?

10). WAP to pass union to function and to access those elements?

1.34 PREPROCESSOR_DERICTIVES

1). What is the use of preprocessor Directives?

2). what are the different preprocessor directives?

3). In compilation which stage preprocessor directives will be processed?

4). What is the difference between if and #if?

5). What is the real time applications of preprocessor directives?

6). WAP to allocate memory by using #pragma?

7). WAP to Discard piece of code from source file?

8). WAP to explain about #if #elif #endif?

9). What is the command for preprocessing stage?

10). what are the modification will happen in preprocessing stage?

11). what is the difference between macro and inline and function?

1.35 FILE HANDLING

1). what is FILE?

2). how to access the file?

3). what are functions available in file handling?

4). what is syntax and use of fseek()?

5). why file is opeq type of structure?

6). WAP to copy one file content to another?

7). WAP to print source code as output?

8). WAP implement grep command?

9). WAP to implement WC command?

10). WAP to implement ftell()?

1.36 ENUM

1). What is enum and syntax to declare enum?

2). what are the advantages of enum?

3). What is the size of enum?

4). how to access enum elements?

5). what is the default values of enum?

6). WAP to find the month using enum?

7). WAP to pass enum value and to return the same?

8). WAP to perform arithmetic operations using enum?

9). WAP to copy one enum to another?

10). WAP to increment and decrement the enum variable and observe the result?