subject

Consider the following code segment, which is intended to set the boolean variable inrange to true if the integer value num is greater than min value and less than max value. otherwise inrange is set to false. assume that inrange, num, min, and max have been properly declared and initialized. boolean is bigger; boolean issmaller; boolean inrange; if (num < max) { issmaller = true; } else { issmaller = false; } if (num > min) { is bigger = true; } else { isbigger = false; } if (isbigger == issmaller) { inrange = true; } else { inrange = false; } which values of num, min, and max can be used to show that the code does not work as intended.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
Singing in the rain: this first part of the film shows the early history of motion picture. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theater productions? explain.
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
You know the right answer?
Consider the following code segment, which is intended to set the boolean variable inrange to true i...
Questions
Questions on the website: 13722363