Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What will be the output of the following pseudo code? 1 . Integer p , q , r 2 . Set p = 5 q

What will be the output of the following pseudo code?
1. Integer p,q,r
2. Set p =5 q =6, r =8
3. for(each r from 4 to 5)
4. p =7+ r
5. q =(q +1)*8q
6. p = p + p
7. End for
8. Print p + q
Note- &: bitwise AND - The bitwise AND operator (&) compares each bit of the first operand to the corresponding bit of the second operand. If both bits are 1, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0.
Ops: A.25
B.30
C.37
D.32

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions