0% found this document useful (0 votes)
229 views3 pages

Pps Ques Bank All Units

The document is a question bank for a C programming course at Stanley College of Engineering and Technology for Women, covering various units such as introduction to C, iterative control structures, functions, pointers, and file handling. It includes questions on topics like language features, data types, control structures, functions, pointers, and file operations. Each unit contains multiple questions aimed at assessing understanding and application of C programming concepts.

Uploaded by

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

Pps Ques Bank All Units

The document is a question bank for a C programming course at Stanley College of Engineering and Technology for Women, covering various units such as introduction to C, iterative control structures, functions, pointers, and file handling. It includes questions on topics like language features, data types, control structures, functions, pointers, and file operations. Each unit contains multiple questions aimed at assessing understanding and application of C programming concepts.

Uploaded by

konetisanjana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

STANLEY COLLEGE OF ENGINEERING AND TECHNOLOGY FOR WOMEN

(AUTONOMOUS)
Accredited by NBA and NAAC A Grade
Chapel Roads, Abids, Hyd- 500001
Unit wise PPS Question Bank

UNIT – 1
Introduction to C programming

1. What are the features of the C language?


2. Why is C called a mid-level programming language?
3. What is a token?
4. Define Algorithm and its characteristics. List the steps to solve a problem?
5. What is a constant. Write in detail about Integer constant,Real Constants, String Constants.
6. Define variable. What are global variables and local variables?
7. What are keywords , list them.
8. What is compiler and interpreter?
9. Write about Linker error, syntax error and runtime error, logical error.
10. List and explain all the operators with suitable examples for each.
11. Define Bitwise operators and give example.

12. Describe in detail precedence and Associativity of Operators with suitable examples and also
mention the need for Associatively of Operators.

13. What is the difference between declaration and definition of a Variable


14. Write about increment and decrement operators in C with examples.
15. Write the structure of a c program.
16. Write the sequence of steps to develop and execute a C program?
17. Explain the components of computer systems with block diagram
18. Difference between Compiler and Interpreter
19. Difference between Type Conversion and Type Casting
20. List the rules for an identifier.
21. List the symbols of flowchart and their purpose.
22. List any 5 Data types, respective format specifier with size for 32 bit and 64 bit systems.
23. List advantages and disadvantages of flowchart.
24. List advantages and disadvantages of Algorithm.
25. Explain Conditional Execution statements in C language with suitable example program. (Hint: if
(different syntaxes of if),switch..case))
UNIT 2
ITERATIVE CONTROL STRUCTURES AND ARRAYS
1. Explain Loops or iterations concept with suitable example program. (Hint: pretested loop,
postested loop, syntaxes of each loop :for loop, while, do while).
2. Difference between pre-tested and post-tested loop.
3. Difference between break and continue
4. List types of Decision making statements /condition al statements – with syntaxes
5. List types of Looping statements/Iterations statements – with syntaxes
6. What is an infinite loop?
7. What is an Array? Write syntax for 1D. Describe 1D Array with suitable example program.
8. What is an Array? Write syntax for 2D arrays. Describe 2D Array with suitable example
program.
9. Write a program to add two matrices?
10. Write a program to perform Matrix Multiplication?
11. What is string, list the ways to declare and initialize string, accept values from keyboard.
12. List and Explain in detail string handling functions.
13. Write a program to find the length of a string.
14. Write a program to check if a string is palindrome or not.
15. List and Explain in detail character library functions.
16. Write a program to print the Fibonacci series.
17. Print Even no or odd no
18. Prime no
19. Palindrome
20. Armstrong no
21. Largest of 3 nos
22. Sum of numbers
23. Factorial

UNIT 3
FUNCTIONS, STRUCTURES AND UNIONS

1. Define Functions? Give its syntax for function declaration, definition and function call.
2. What is meant by Actual Parameters and Formal Parameters , explain with an example.
3. What is recursion? Explain using a suitable example program.
4. Write a program to find the Fibonacci series using recursions.
5. Differentiate between call by value and call by reference with suitable example program.
6. List advantages of Functions
7. Write in detail about storage classes.
8. What is the use of a static variable in C?
9. Write in detail about Pre processor directives.
10. Define Structure , Give syntax
11. What are Nested Structures. Explain with a suitable example.
12. Write a program to Create a structure employee to accept id, name, basic salary, calculate hra, da,
pf, net sal and display the salary statement. (hra is 12% of basic,da is 10% of basic, pf is 14% of
basic) .
13. What is Union. Difference between Union and structure with suitable examples
14. Write about bit fields.
15. Write about typedef.
16. Write about enumerations.

Unit 4
POINTERS AND DYNAMIC MEMORY ALLOCATION

1. Define Pointers, explain with an example.


2. What are generic pointers
3. What are dangling pointers
4. What is meant by pointer to pointer
5. Write about pointer arithmetic’s
6. Write a program to implement pointer in a 1D array
7. Write a program to implement pointers in a 2D array
8. What is Dynamic Memory Allocation. Explain with an example for the same.
9. Write about self-referential structures.

Unit 5
FILE HANDLING, SEARCHING AND SORTING
1. Write shorts on the following:
a) File operations
b) File types – Text and binary Files
c) File Operation Modes
d) Functions for I/O Operations on files (or) File Handling functions in C
f) File positioning functions
g) Command line Arguments
2.Write a program to display the contents of a file.
3. Write a program to copy the content of one file to another.
4. Searching
Linear Search
Binary Search
5. Sorting
i. Bubble Sort

You might also like