MABS Institution
11th Computer Science Monthly Test -1 ( Flow of Control )-Aug 2020
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Write the syntax of do-while loop.
-
Define iteration.
-
Write a program to display numbers from 1 to 10 except 6 using continue statement.
-
Correct the following code sigment:
if (x=1)
p= 100;
else
p = 10; -
Convert the following if-else to a single conditional statement:
if (x >= 10)
a = m + 5;
else
a = m; -
Differentiate break and continue statement
-
Write a short program to print following series:
(a) 1 4 7 10...... 40 -
Write a C++ program to find sum of any 5 numbers.
-
-
Write the syntax of nested ·switch statement.
-
What is sequence statements?
-
-
Write C++ program to sum the numbers from 1 to 10 using for loop.
-
What is goto statement? Explain
-
Write short notes on Test expression.
-
What is do-while loop? Write it's syntax.
-
Explain about jump statements
-
Write the syntax of if nested inside both if part and else part
-
Write the rules following while using switch-case in C++.
-
What are the part of a loop? Binary explain
-
Explain switch-case with an example.
-
-
What are the key differences between if else and switch statement?
-
What entry control loop? Explain any one of the entry control loop with suitable example.
-
-
Explain for loop with an example.
-
Programs to produce the following design using nested loops
-
Write programs to find the sum of the following series:
(a) \(x-\frac { { x }^{ 2 } }{ 2! } +\frac { { x }^{ 3 } }{ 3! } -\frac { { x }^{ 4 } }{ 4! } +\frac { { x }^{ 5 } }{ 5! } -\frac { { x }^{ 6 } }{ 6! } \)
(b) \(x+\frac { { x }^{ 2 } }{ 2 } +\frac { { x }^{ 3 } }{ 3 } +...+\frac { { x }^{ n } }{ n } \)