Professional Documents
Culture Documents
Q1. Explain the structure of “FOR – LOOP”, “WHILE –LOOP”, “SWITCH-CASE” with similarities
and difference between all. Write the code for printing “FIBONOCCT SERIES” 0 1 1 2 3 5 8
............. using Switch case . 5
Q2. Write the program in C++ to check wheather the given string is palindrom or not 5
Or
Write the program in C++ to reverse the given digit. For example if user Enters 123,
output should be 321
Q3. What are the difference between IF block, If – else block and Nested If block. Which one is
best?
Write code for functioning of a calculator using If – block 5