" /> -->

#### Composition and Decomposition One Mark Questions

11th Standard

Reg.No. :
•
•
•
•
•
•

Computer Science

Time : 00:30:00 Hrs
Total Marks : 10
10 x 1 = 10
1. Which of the following is one of the elementary problem-solving Techniques?

(a)

Decomposition

(b)

Control flow

(c)

Functions

(d)

State

2. How many notations are there for representing algorithms?

(a)

1

(b)

2

(c)

3

(d)

many

3. Which of the following is a diagrammatic notation for representing algorithms?

(a)

Pseudo code

(b)

Programming language

(c)

Flowchart

(d)

Source code

4. Which of the following is not a programming language?

(a)

C

(b)

C++

(c)

Ms-office

(d)

Python

5. Which notation shows the algorithm in a visual manner?

(a)

Flowchart

(b)

Pseudo code

(c)

Programming language

(d)

Natural language

6. In the flowchart, the control flow of the algorithm represented by

(a)

rectangular

(b)

diamond shaped boxes

(c)

arrows

(d)

parallelogram boxes

7. How many outgoing arrows are labeled in flowchart diamond shaped box?

(a)

2

(b)

4

(c)

1

(d)

0

8. Suppose u, v = 10, 5 before the assignment. What are the values of u and v after the sequence of assignments?
1 u :=v
2 v := u

(a)

u, v = 5,5

(b)

u, v = 5 ,10

(c)

u, v = 10,5

(d)

u, v = 10 ,10

9. Which of the following properties is true after the assignment (at line 3)?
1 -- i+j = 0
2 i, j := i1+, j1-
3 -- ?

(a)

i + j > 0

(b)

i+j < 0

(c)

i+j=0

(d)

i = j

10. If C is false just before the loop, the control flows through
1 SI
2 while C
3 S2
4 S3

(a)

S1 ; S3

(b)

S 1 ; S2 ; S3

(c)

S 1 ; S2 ; S2 ; S3

(d)

S 1 ; S2 ; S2 ; S2 ; S3