MABS Institution
11th Computer Science Weekly Test -1 ( Flow of Control )-Aug 2020
-
-
-
-
-
-
-
-
-
-
-
-
-
Convert the following if-else in to conditional operator.
if(a > b)
I= a;
else
I =b; -
What is the significance of using break stateme in c++?
-
What is sequence statements?
-
Write a short program to print following series:
(a) 1 4 7 10...... 40 -
What is goto statement? Explain
-
-
Convert the following if-else to a single conditional statement:
if (x >= 10)
a = m + 5;
else
a = m; -
What do you know about switch statement?
-
-
Draw the flowchart that shows the working procedure of.
(i) if nested inside if part
(ii) if nested inside else part
(iii) if nested inside both if part and else part -
Write a program to find sum of the series
S = 1 + x + x2 +..... + xn -
-
Write the rules following while using switch-case in C++.
-
What are the key differences between if else and switch statement?
-
-
Explain Nested switch with an example.