Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 6

Q)Identify The Output of the given flowchart?

Input:
a)44 b)30
Q2)Identify the output of the following flowchart is
values are 44,30,23,20?

Q3)Identify the output if value given is 6?


Q4)Identify the output of the given flowchart when
value given is 5 and 6?

Q5)Identify the output of the given flowchart?


Q6)Identify the output?

Pseudocode:
Q1)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) a is the smallest number
(B) b is the smallest number
(C) c is the smallest number
(D) stop

Q2)What will be the output of the following


pseudo code ?
Integer a, b
Set a = 10, b = 5
a = a mod (a - 6)
b = b mod (b - 2)
Print a - b
(A) 4 (B) 0
(C) 1 (D) 8

Q3)What will be the output of the following


pseudo code, where & represent ANd
operation ?
Integer a, b, c
Set b = 5, a = 1
c=a&b
Print c
(A) 1 (B) 3
(C) 5 (D) 7
Q4)What will be the output of the following pseudo-
code ?
Integer a
Set a = 5
do
print a - 2
a = a- 1
while (a not equals 0)
end while
(A) 5 3 0 (B) 3 0 (C) infinite loop (D) None of these

Q5)What will be the output of the following pseudo


code, where ʌ represent XOR operation ?
Integer a, b, c
Set b = 5, a = 1
c=a^b
Print c
(A) 4 (B) 3 (C) 5 (D) 7

-----------------------------THE END-------------------

You might also like