1. Which two are equal? 32/4 (8 >> 2) << 4 2^5 128 >>> 2 2 >> 5





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 02 Jun 2017 01.26 am
    (2) and (4) are correct. (2) and (4) both evaluate to 32. (2) is shifting bits right then left using the signed bit shifters >> and <<. (4) is shifting bits using the unsigned operator >>>, but since the beginning number is positive the sign is maintained. (1) evaluates to 8, (3) looks like 2 to the 5th power, but ^ is the Exclusive OR operator so (3) evaluates to 7. (5) evaluates to 0 (2 >> 5 is not 2 to the 5th).
Show Similar Question And Answers
QA->What is the number in the place of ? in the sequence 3, 28, 128, 353, 753, ?....
QA->.....is a device by virtue of which two persons at two different places can communicate. It consists of two main parts (i) a microphone and (ii) a receiver.?....
QA->Two statements are given followed by two conclusions I and II. You have to consider the two statements to be true even if they seem to be at variance from commonly known facts. You have to decide which one of the given conclusions is definitely drawn from the given statements. Statement : All virtuous persons are happy. No unhappy person is virtuous. Conclusions : I. Happiness is related to virtue II. Unhappy person is not virtuous.....
QA->The sum of squares of two numbers is 80 and the square of difference between the two numbers is Find the product of two numbers.....
QA->Five equal forces of 10 N each are applied at one point and all are lying in one plane. If angles between them are equal, the resultant of these forces wil be?....
MCQ->Which of the following statements are correct about the program? #include<stdio.h> char fun(unsigned int num, int base); int main() { char s; s=fun(128, 2); s=fun(128, 16); printf("%s\n",s); return 0; } char fun(unsigned int num, int base) { static char buff[33]; char ptr = &buff[sizeof(buff)-1]; ptr = '\0'; do { --ptr = "0123456789abcdef"[num %base]; num /=base; }while(num!=0); return ptr; }....
MCQ->Which statement(s) about IPv4 and IPv6 addresses are true? An IPv6 address is 32 bits long, represented in hexidecimal. An IPv6 address is 128 bits long, represented in decimal. An IPv4 address is 32 bits long, represented in decimal. An IPv6 address is 128 bits long, represented in hexidecimal.....
MCQ->Point out the error in the program (in Turbo-C). #include<stdio.h> #define MAX 128 int main() { const int max=128; char array[max]; char string[MAX]; array[0] = string[0] = 'A'; printf("%c %c\n", array[0], string[0]); return 0; }....
MCQ->A three stage telephone switching structure is to have 128 input and 128 output terminals. It has been found that at peak time the utilization probability is 0.1. The number of intermediate links required for non-blocking configuration is 15. If the actual number of intermediate links is 5, the probability of blocking of call is....
MCQ->A three stage telephone switching structure is to have 128 input and 128 output terminals. There are 16 first stage and 16 third stage matrices. To avoid blocking the number of intermediate paths required is....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution