page-banner
Chapter-2 Algorithm and Flowcharts to solve problems
Q31.
a=5, b=8, c=6 के लिए निम्नलिखित एल्गोरिदम का आउटपुट क्या होगा?

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 largest number.
            Else
                Display c is the largest number.
        Else
            If b > c
                Display b is the largest number.
            Else
                Display c is the largest number.
Step 5: Stop
A. b सबसे बड़ी संख्या है/b is the largest number
B. a सबसे बड़ी संख्या है/a is the largest number
C. c सबसे बड़ी संख्या है/c is the largest number
D. रुकें/Stop
View Answer
Q32.
a=5, b=8, c=6 के लिए निम्नलिखित एल्गोरिदम का आउटपुट क्या होगा?

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 सबसे छोटी संख्या है/a is the smallest number
B. b सबसे छोटी संख्या है/b is the smallest number
C. c सबसे छोटी संख्या है/c is the smallest number
D. रुकें/Stop
View Answer
Q33.
निम्नलिखित स्यूडो कोड का आउटपुट क्या होगा?

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
View Answer
Q34.
निम्नलिखित स्यूडो कोड का आउटपुट क्या होगा, जहाँ ^ का अर्थ XOR ऑपरेशन है?

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
View Answer
Q35.
निम्नलिखित स्यूडो कोड का आउटपुट क्या होगा?

What will be the output of the following pseudo-code?
Integer a
Set a = 4
do
    print a + 2
    a = a - 1
while (a not equals 0)
end while
A. 6 6 6 6
B. 6 5 4 3
C. 6 7 8 9
D. 6 8 10 12
View Answer

Create Account