# Are calculators allowed on the exam?

Jay Dilla
Ranch Hand
Posts: 201
I was just working thru some practice problems that involved shifters and some binary operators (|,~,^,&) on some pretty large numbers ie: 0x80000000
Are you expected to be able to perform those calculations by hand or will most of the questions have small enough numbers?
And if calculators are allowed, just it matter what kind?

Faisal Ahmad
Ranch Hand
Posts: 355
I think, NO.

Jay Dilla
Ranch Hand
Posts: 201
wow so if there is a problem such as

int x = 0x80000000;
x = x >>> 2;
system.out.println(x);

i'm expected to know the base 2 numbers that high?

Atul Sawant
Ranch Hand
Posts: 304
If you would know how to crack those the concepts you learn will be more stronger however it is NOT required if you aim to pass the exam. I dont think they expect something like thsi from you. This is my personal opinion.

Keith Lynn
Ranch Hand
Posts: 2409
It is extremely simple to convert a hex number to binary. That only requires you remembering what 0 - F mean.

Bert Bates
author
Sheriff
Posts: 8900
5
On the 5.0 exam you don't need to worry about this stuff at all.

On the 1.4 exam understanding bit repesentations is a minor topic, and mostly you need to understand two-s complement and binary representaions in general, so that you know a big number, or a small number, or a negative number, when you see one. You don't have to be able to calculate 2^N where N is say bigger than maybe 4

Jay Dilla
Ranch Hand
Posts: 201
Thanks bert bates.
Keith my problem is not with conversion, but the scale on which I will be converting, lol.
The converting from one number type to the other is easy, but I'm worried about having to figure out the binary of 7654325634654 on paper. It will be too time consuming imo.

Keith Lynn
Ranch Hand
Posts: 2409
I don't think you would ever get a number like that. What I was referring to was a number like 0x80000000, where its easy to get the bit representation.

saied ims
Ranch Hand
Posts: 109
No at all