0% found this document useful (0 votes)
142 views2 pages

PPS Assignments-1

This document contains assignments for a Programming for Problem Solving course at Government Engineering College, Modasa. It includes 4 assignments that cover topics like computer components, software, flowcharts, C language fundamentals, control structures, arrays, functions, pointers, structures, files, and more. Students are asked to draw diagrams, write algorithms, explain concepts, and provide examples for around 50 questions total. The assignments aim to help students learn about problem solving using programming.

Uploaded by

Harsh Patel
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)
142 views2 pages

PPS Assignments-1

This document contains assignments for a Programming for Problem Solving course at Government Engineering College, Modasa. It includes 4 assignments that cover topics like computer components, software, flowcharts, C language fundamentals, control structures, arrays, functions, pointers, structures, files, and more. Students are asked to draw diagrams, write algorithms, explain concepts, and provide examples for around 50 questions total. The assignments aim to help students learn about problem solving using programming.

Uploaded by

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

GOVERNMENT ENGINEERING COLLEGE, MODASA (016)

COMPUTER ENGINEERING / INFORMATION TECHNOLOGY


PROGRAMMING FOR PROBLEM SOLVING (3110003)
SEMESTER: 2

ASSIGNMENTS

Assignment: 1

1. Draw block diagram of computer and describe functions of various computer components.
2. What is software? Explain various types of software.
3. Describe various types of computer languages.
4. What is a flow chart? Explain various symbols used in flow chart.
5. Draw a flowchart to find the maximum number from three numbers.
6. Draw a flowchart to find the factorial of a given number.
7. Write an algorithm to find whether a given number is odd or even?
8. Write an algorithm to reverse a given number.

Assignment: 2

1. Explain various features of ‘C’ language.


2. Explain the structure of ‘C’ program.
3. List and explain the fundamental data types of ‘C’ language.
4. List and explain various types of operators in ‘C’ language.
5. What is type conversion? Explain implicit type conversion and explicit type conversion with
example.
6. Explain operator precedence and associativity.
7. Explain printf() and scanf() functions in detail.
8. Explain the use of getchar() and putchar() functions.
9. What is formatted output? How it can be done using printf() function.

Assignment: 3

1. Explain if…else, nested if and if…else…if ladder in detail.


2. Explain switch statement with example.
3. Explain uses of statements: break, continue, default and goto.
4. What are the different types of looping structures?
5. Write the syntax of ‘while’, ‘do…while’ and ‘for’ loop.
6. How ‘do…while’ loop differs from ‘while’ loop?
7. What is an array? How can we declare, initialize and assign values to a single dimensional
array?
8. List out various advantages of using an array.
9. Explain a two dimensional array with example.
10. Describe various string handling functions.

Faculty: A.D Chaudhari


Assignment: 4

1. What is a function? Explain the function definition, function declaration and function call
with relative example.
2. Explain call by value (pass by value) and call by reference (pass by reference) with examples
in brief.
3. What is a pointer? Explain how pointers are declared and initialized. State its advantages.
4. What is structure? Explain with example how to declare a structure and how to initialize it.
5. Explain nested structure and array of structure with example.
6. Differentiate Structure vs. Union.
7. What is dynamic memory allocation? Show the use of malloc() and calloc() function with
their syntax.
8. Describe file management? List the various file handling operations in c.

Faculty: A.D Chaudhari

You might also like