CP Questions
CP Questions
UNIT-1
1. Hardware components of computer
2. Programming languages-low level and high level languages
3. Procedural languages and object oriented languages
4. Types of software
5. SDLC Life Cycle
6. Programming development steps
7. Structure of C
8. Algorithms and flowcharts with example.
UNIT-2
1. Different data types
2. Different operators
3. Variable declaration and initialization
4. Operator precedence table
5. Type conversion (Implicit, Explicit)
6. Mathematical library functions
7. Formatted I/O
UNIT-3
1. if, if-else, nested if, else-if ladder, switch, while, do-while, for (write with
definition, syntax, algorithm, flowchart, example)
2. break, continue, goto
UNIT-4
1. Types of functions (2 types)
2. Types of functions based parameters (4 types)
3. Local variable, global variables
4. Storage classes
5. Pass by value and pass by reference (or) Call by value and call by
reference
6. Recursion
7. Recursion vs iteration
8. Factorial, Fibonacci, swapping programs
UNIT-5
1. Arrays declaration and initialization
2. One-Dimensional Arrays, with examples
3. Two-Dimensional Arrays, with examples
4. Multi Dimensional Arrays, with examples
5. Matrix programs (Addition, multiplication, Isometric)
6. Strings declaration and initialization
7. String library functions
8. Command line arguments
UNIT-6
1. Address Arithmetic (arithmetic and increment operations on pointers)
2. Pointers as function arguments
3. Passing address to functions
4. Pointers to pointers
5. Pointers to functions
6. Dynamic memory allocation (malloc, calloc, realloc, free,)
7. Structure Declaration and initialization
8. Arrays of structures
9. Arrays within structures
10.Structures within structures (Nested Structures)
11.Self referential Structures (Pointers to structures, pointers in structures)
12.File creation, modes of file
13.Operations on files with functions
Example:
#include<stdio.h>
main()
{
printf(“\\*****************ALL THE BEST****************\\”);
}
Output:
\*****************ALL THE BEST****************\