0% found this document useful (0 votes)
10 views4 pages

Pps Assignment

The document outlines assignments for a Programming for Problem Solving course at Shree Swaminarayan Institute of Technology, covering topics from basic C programming to advanced concepts like file handling and dynamic memory allocation. Each assignment includes multiple questions that require explanations, examples, and programming tasks related to algorithms, control structures, functions, arrays, pointers, structures, and debugging. The assignments are structured into four units, each focusing on different aspects of programming in C.

Uploaded by

vidhipatel96541
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)
10 views4 pages

Pps Assignment

The document outlines assignments for a Programming for Problem Solving course at Shree Swaminarayan Institute of Technology, covering topics from basic C programming to advanced concepts like file handling and dynamic memory allocation. Each assignment includes multiple questions that require explanations, examples, and programming tasks related to algorithms, control structures, functions, arrays, pointers, structures, and debugging. The assignments are structured into four units, each focusing on different aspects of programming in C.

Uploaded by

vidhipatel96541
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/ 4

Shree Swaminarayan Institute of Technology

CE/IT/CSE Department
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
Subject: Programming for Problem Solving (BE01000121), Sem. 2ND
-----------------------------------------------------------------------------------------------------------

Assignment: 1 (Unit 1and 2)

Syllabus Content :( Introduction to programming, Basics of C Programming)

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
-----------------------------------------------------------------------------------------------------------

Assignment: 2 (Unit 3 & 4)

Syllabus Content :( Control Structures, Functions & Modular Programming)

Q-1. Explain switch statement with example.


Q-2. Explain multiple if…else with example.
Q-3. What is loop? Why the looping structures are needed?
Q-4. Write the syntax of for loop. How it differs from while loop?
Q-5 Give differences between while and do…while loop.
Q-6 Compare break statement with continue statement.
Q-7 What is function? What is user-defined function?
Q-8 What is function prototype?
Q-9 Explain the difference between call by value and call by reference with example
Q-10 What do you mean by recursive function? Explain with example.

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
-----------------------------------------------------------------------------------------------------------

Assignment: 3 (Unit 5, 6 & 7)

Syllabus Content :( Array & Strings, Pointers, Structures and Unions)

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
-----------------------------------------------------------------------------------------------------------

Assignment: 4 (Unit 8, 9 & 10)

Syllabus Content :( File handling, Dynamic Memory Allocation, Debugging and Testing)

Q-1. What do you mean by File Management?


Q-2. What are the different modes in which a file can be opened?

Q-3. Compare standard I/O functions with File I/O functions.

Q-4. Show the usage of malloc( ) and calloc( ) with syntax.

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

You might also like