Gokhale Education Society's
R.H. Sapat College of Engineering, Management Studies & Research, Nasik – 422 005.
Assignment No. 1
Subject: Fundamental Programming Language (ESC-105-COM)
Assignment Date: 25/10/2024 Due Dates: 04/11/2024
Faculty Name : Shweta Borse Div : E
==================================================================================================
=
1. What is if statement & Nested if in C? Explain it in Detail with simple
example.
2. Difference between if & if-else & else-if-else statement. Explain with example.
Simple if If else Else - if -else
1)defination 1)defination 1)defination
2)syntax 2)syntax 2)syntax
3)working 3)working 3)working
4)how it execute 4)how it execute 4)how if execute
5)Example(small code) 5)Example(small code) 5)Example(small code)
3. What is Switch case in detail. Write a program to perform +,-,%,/,* as per
user choice(take choice from user).
4. What is goto statement explain with one suitable example.
5. Write a short note on conditional statement & Iteration Statement.
6. Difference between for loop, while loop, do-while loop
For loop While loop Do while loop
1)defination 1)defination 1)defination
2)syntax 2)syntax 2)syntax
3)working 3)working 3)working
4)how loop execute 4)how loop execute 4)how loop execute
5)Example(small code) 5)Example(small code) 5)Example(small code)
7. Write a program to display the following asking the user for the number of
lines
1
12
123
123 4
12345
.
.
N-th number
8. write a program in C to generate following pattern
1
2 1
1 2 3
4 3 2 1
1 2 3 4 5
9. write a program using do-while loop for menu driven program.
10. write a short note on break & continue.