Control flow
Terminal
Processing
Decision
Execution
Statement
All of the above
Processor and memory
Complexity and capacity
Time and space
Data and space
pseudo codes
syntax
flowcharts
programs
Finiteness
Effectiveness
Definiteness
Generality
What will be the output of the following pseudo code?
integer a,bset a=9,b=5a=a mod(a-3)b=b mod(b-3)print a+b
4
5
9
8
stack
macro
micro
union
Integer a,bset a=10,b=5a=a mod(a-6)b=b mod(b-2)print a-b
0
1
Arrow
Oval
Rectangle
Diamond
Square
Circle
Parallelogram
Triangle
Looping
Selective
Sequence
None
Counter
Factorial value
Input number
Loop limit
Input/Output
Arithmetic instruction
Start/Stop
Uses minimum symbols
Has only one loop
Produces correct output for all valid inputs
Uses standard variable names
1 and itself
1 and 2
All numbers
2 and itself
Sub Function
Recursion
Reverse Polish Notation
Traversal Algorithm
Input/Output operation
Processing step
Decision making
Loop termination
2
N
Branch
Loop
Condition
Adjacent indices
First and last, second and second-last, etc.
Random indices
Even indices only
program
Flowchart
statement
Algorithm
Decision-based processing
Sequential processing
Iterative processing with variable update
Randomized processing
Design
Palnning
arrow
circle
box
parallelogram
What will be the output of the following algorithm for a=5, b-8, c=6 ?
Step 1: Start Step 2: Declare variables a, b and c. Step 3 Read variables a, b and c. Step 4: If a < b If a <c Display a is the smallest number. Else Display c is the smallest number. Else If b <c Display b is the smallest number. Else Display c is the smallest number Step 5:Stop
a is the smallest number
b is the smallest number
c is the smallest number
stop
Prime numbers
Fibonacci sequence
Even numbers
Odd numbers
A is preferable because it terminates
B is preferable because correctness is fundamental
Both satisfy algorithm correctness
Both violate essential properties of algorithms
A Circle
A Diamond
Process
None of these
Micro
Union
Macro
Stack
i > j
i < j
i ≤ j
i = j
square
Both A and B
All the above
Input/Output, Decision, Repeat
Input, Output, Process
Loop, Input/Output, Process
Sequence, Selection, Repeat
Use of multiple terminators
Absence of comments
Use of rectangles instead of parallelograms
A decision block with paths that do not reconverge logically
1 to n
2 to n-1
1 to √n
2 to √n
Parallel processing
Decision processing
Iterative processing
A flowchart
Step by step instructions used to solve a problem
A flowchart or pseudo code
A decision
Iteration and sequential arithmetic
Decision-only processing
Sorting
Performance
Algorithmic Representation
Evaluation
Flowcharting
Better programming
easy testing and debugging
Efficient Coding
All
Syntax error
Logical error
Compilation error
Infinite loop
Correctness and finiteness only
Finiteness and efficiency only
Correctness, finiteness, and clarity
Correctness and hardware dependency
Program
Flow chart