MABS Institution
11th Computer Science Monthly Test -1 ( Composition and Decomposition )-Aug 2020
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Both conditional statement and iterative statement have a condition and a statement. How do they differ?
-
What is a Flow-chart?
-
What is a Programming Language?
-
Define a Function.
-
When a condition statement will be executed?
-
Wite a note on alternative statement?
-
Draw a flowchart that depicts iterative control flow.
-
Draw a flowchart for -3case analysis using alternative statements.
-
Define a function to double a number in two different ways:
(1) n + n,
(2) 2 x n. -
-
For the given two flowcharts write the pseudo code
-
Construct an iterative algorithm to compute the quotient and remainder after dividing an integer A by another integer B.
-
-
What are the disadvantage of using flowchart?
-
Draw a flowchart for alternative control flow.
-
Write a algorithm compare such that compare
-
Name the three control flow statement.
-
Draw the flowchart for Eat breakfast.
-
Exchange the contents: Given two glasses marked A and B. Glass A is full of apple drink and glass B is full of grape drink. Write the specification for exchanging the contents of glasses A and B, and write a sequence of assignments to satisfy the specification.
-
Trace the step-by-step execution of the algorithm for factorial(4). factorial(n)
--inputs: n is an integer, n > 0
-- outputs: f = n!
f, i := 1 ,1 while i < n
f, i := f X i, i1+ -
Construct an iterative algorithm to find quotient and remainder of two integer division.
-
Explain the three notations for representing algorithms.
-
-
Explain Refinement in detail with example.
-
Write a note on case analysis.
-
-
Explain case analysis in detail with an example.
-
Circulate the contents: Write the specification and construct an algorithm to circulate the contents of the variables A, B and C as shown below: The arrows indicate that B gets the value of A, C gets the value of B and A gets the value of C.
-
Explain various symbols in Flow chart,