page-banner
Chapter-2 Algorithm and Flowcharts to solve problems
Q36.
निम्नलिखित स्यूडो कोड का आउटपुट क्या होगा, जहाँ ^ का अर्थ XOR ऑपरेशन है?

What will be the output of the following pseudo code, where ^ represent XOR operation?
Integer a, b, c
Set b = 4, a = 3
c = a ^ b
print c
A. 4
B. 3
C. 5
D. 7
View Answer
Q37.
निम्नलिखित स्यूडो कोड का आउटपुट क्या होगा?

What will be the output of the following pseudocode?
Integer a, b
Set a = 9, b = 5
a = a mod (a - 3)
b = b mod (b - 3)
print a + b
A. 4
B. 5
C. 9
D. 8
View Answer
Q38.
निम्नलिखित स्यूडो कोड का आउटपुट क्या होगा?

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

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

What will be the output of the following pseudo code, where ^ represent XOR operation?
Integer a, b, c
Set b = 3, a = 2
c = a ^ b
Print a + b + c
A. 4
B. 3
C. 5
D. 6
View Answer

Create Account