Pps Assignment
Pps Assignment
CE/IT/CSE Department
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
Subject: Programming for Problem Solving (BE01000121), Sem. 2ND
-----------------------------------------------------------------------------------------------------------
Q-1. Explain what is Algorithm and flowchart? Explain both with some suitable example.
Q-2. Categorize the major components of computer system and give their function.
Q-3. Explain the structure of ‘C’ program.
Q-4. Draw all symbols used in flowchart and draw flowchart to find factorial number.
Q-5 Write a program to calculate the sum of the series 1+1/2+...+1/n.
Q-6 Explain the statement: “‘C’ is a middle level language”.
Q-7 What do you mean by constants in C language? Explain types of constants in detail.
Q-8 What is the difference between compiler and interpreter?
Q-9 Explain #define and #include directive with example.
Q-10 What is type conversion? Explain giving example.
Q-11 What is sizeof operator? How it is useful?
Q-12 What is conditional operator? Explain with example.
Page 1
Shree Swaminarayan Institute of Technology
CE/IT/CSE Department
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
Subject: Programming for Problem Solving (BE01000121), Sem. 2ND
-----------------------------------------------------------------------------------------------------------
Q-11 What do you mean by local and global variables? Compare them.(or Explain scope, visibility
and life time of variables.)
Page 2
Shree Swaminarayan Institute of Technology
CE/IT/CSE Department
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
Subject: Programming for Problem Solving (BE01000121), Sem. 2ND
-----------------------------------------------------------------------------------------------------------
What is an array? Explain one dimensional and two dimensional array declarations and
Q-1.
initialization with suitable example.
Q-2. What is a string? Explain at least 4 built-in string functions with example
Q-3. What is pointer? Explain how pointers are declared and initialized.
Q-4. In pointer arithmetic which operations are not valid?
Q-5. Explain array of pointer with example.
Q-6. Write a program in ‘c’ to add two numbers using pointers.
Q-7. Write a program using pointer to read in an array of integers and print its elements in reverse
order.
Q-8. What is structure? How to access the elements of structure? How the size of a structure can be
determined in ‘C’ program?
Q-9. What is union? How it differs from structures?
Q-10. Explain with suitable example, pointer to structure and use of arrow -> operator.
Q-11. Explain null pointer with example.
Q-12. What is rvalue and lvalue?
Page 3
Shree Swaminarayan Institute of Technology
CE/IT/CSE Department
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
Subject: Programming for Problem Solving (BE01000121), Sem. 2ND
-----------------------------------------------------------------------------------------------------------
Syllabus Content :( File handling, Dynamic Memory Allocation, Debugging and Testing)
Q-4. What is difference between static memory allocation and dynamic memory allocation? Give
example.
Q-6. What is test data, and why is it important to use diverse test data?
Q-7. What is unit testing, and why is it important?
Q-8. What is the 'divide and conquer' debugging method?
Q-9. What is the difference between unit testing and integration testing?
Q-10. Explain various file handling operations in ‘C’ giving example.
Page 4