0% found this document useful (0 votes)
20 views

CP Questions

This document outlines important questions to study for a CP course divided into 6 units. Unit 1 covers hardware components, programming languages, software development lifecycles, and C programming basics. Unit 2 focuses on data types, operators, and input/output. Unit 3 discusses control structures like if/else statements and loops. Unit 4 presents functions, parameters, and recursion. Unit 5 is about arrays and strings. Unit 6 addresses pointers, structures, and file operations in C. An example program is provided to print a message using printf.

Uploaded by

namruthak922
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

CP Questions

This document outlines important questions to study for a CP course divided into 6 units. Unit 1 covers hardware components, programming languages, software development lifecycles, and C programming basics. Unit 2 focuses on data types, operators, and input/output. Unit 3 discusses control structures like if/else statements and loops. Unit 4 presents functions, parameters, and recursion. Unit 5 is about arrays and strings. Unit 6 addresses pointers, structures, and file operations in C. An example program is provided to print a message using printf.

Uploaded by

namruthak922
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CP IMPORTANT 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****************\

You might also like