• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do Ques like these appear on the exam?

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the value of -7%-2?
1
-1
0
What is the value of 8.7% 2.3 ?
1.6
1.8
1.1
6.4

I got these questions from geocities !!
If they do appear in the exam...how do we go abt answering thm?
 
Ranch Hand
Posts: 1865
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Murtuza,

The exam won't contain any questions that might cause you to wish that you had a calculator. The Java programmer certification exam is not a math test. It is unlikely to contain questions that require you to evaluate arithmetic expressions involving large numbers or decimal points. For that reason, the second question is unlikely to appear on the real exam.

The first question requires you to know how Java handles negative operands with the remainder operator, %. The exam is likely to have questions involving the remainder operator, but the operands are most likely to be positive integral values. The correct result is likely to be something that can easily be calculated in your head.
[ August 09, 2004: Message edited by: Dan Chisholm ]
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
These questions are both pretty easy and straightforward, since it is only
looking for the remainder.



The answer to the first question is -1. -7 % -2 leaves a remainder of -1. Just think of as 7 - 6, where the sign is negative.

The answer to the second question is 1.8. To find the remainder from
8.7 % 2.3, just rewrite it as (8.7 - (2.3 x 3)). Where 3 is the largest multiple of 2.3, which is still below 8.7

I can even do math like this in a bar during a drunken stupor, while playing billiards, so it really isn't too hard to appear in an exam.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic