Lessson4-5 (Codechum)
Lessson4-5 (Codechum)
A. Flowchart
B. Algorithm
C. Order
D. Routine
3.) The following image shows a simple arithmetical algorithm. What is the missing item here?
A. 123
B. 132
C. 213
D. 312
4.) “Zayd has 32 packs of stickers. Each pack has 467 stickers. He wants to know how many stickers there
are in all.” What do you think is the best algorithm to use in this situation?
A. Addition
B. Subtraction
C. Multiplication
D. Division
5.) “Zayd has 32 packs of stickers. Each pack has 467 stickers. He wants to know how many packs he can
give with an equal amount of stickers.” What do you think is the best algorithm to use in this situation?
A. Addition
B. Subtraction
C. Multiplication
D. Division
1.)
2.)
3.)
4.)
A. Dropdiagram
B. Flowchart
C. Waveform
D. Streamshow
1.) This is one step used to show code hierarchy in a pseudocode.
A. Add indentation
B. Add a semicolon
A. 7,432,936
B. 3,027,968
C. 5,014,423
D. 55,060,132
B. 6
C. 7
D. 8
A. Compute
B. Initialize
C. Add
D. Multiply
5.) Examine the following pseudocode.
If we SET the variable i to 9 instead of 0 in the first line, what would be the output of the program?
A.
Hello World!
B.
Hello World!
C.
Hello World!
D.
A. 6
B. 7
C. 8
D. 9
2.) Refer to the previous flowchart in #1. What does “add 1 to i” stand for?
A. Input/Output
B. Action or Process
C. Decision
D. Terminal
A. Input/Output
B. Action or Process
C. Decision
D. Terminal
4.) Refer to the previous flowchart in #3. What does “Print b” stand for?
A. Input/Output
B. Action or Process
C. Decision
D. Terminal
5.) Refer to the previous flowchart in #3. What does “Declare variables a, b, and c” stand for?
A. Input/Output
B. Action or Process
C. Decision
D. Terminal