FPL Questions Bank 2024 Pattern-1
FPL Questions Bank 2024 Pattern-1
WITH SOLUTION
CLICK HERE
CLICK HERE
DOWNLOAD APP
Sinhgad Technical Education Society’s,
Sinhgad Institute of Technology & Science
Narhe Technical Campus, 49/1, Opp. Mumbai Bengaluru Westerly
Bypass, Narhe , Pune - 411041
(ii) y =(a/b*c-a+b)
where a =8, b =9, c =7
Unit III: Control Flow
17 Explain the if and if-else statements in C with example
18 Write a C program to accept marks from students and display grade of student.
Consider the following criteria -:
(i) O -: 80 - 100, Outstanding
(ii) A+ -: 70 – 79.99, Excellent
(iii) A -: 60 - 69.99, Very good
(iv) B+ -: 55 – 59.99, Good
(v) B -: 50 – 54.99, Above average
(vi) C -: 45 – 49.99, Average
(vii) P -: 40 – 44.99, Pass
(viii) F -: 0 – 39.99, Fail
19 Write a C program to accept two numbers from user and also accept choice from user
to perform addition, subtraction, multiplication, division, modulus operations ( Menu
driven program)
20 What is looping statements (iterative statements) in C? Enlist types of loops
21 Differentiate between while loop, do-while loop, for loop on the basis of following
points -:
a) Type of loop (pre-tested or post-tested)
b) Syntax
c) Steps of execution of loop (steps to write loop)
d) Flowchart
22 (i) Write a C program to find factorial of a given number using while loop
(ii) Write a C program to print multiplication table of given number using for loop
23 Write a C program to display following patterns -:
a) 1
12
1234
12345
b)
*****
****
***
**
*
24 Explain break statement and continue statement with example