20 Simple T/F Java questions. $5 reward.

Deadtrees

Platinum Member
Dec 31, 2002
2,351
0
0
EDIT:UPDATE: CASE CLOSED.
I got all the answers from an another source.
Thanks for your input anyways~


Below are sample T/F questions for my final exam. The only problem is that answers are not given. I wish I had time to go through books looking for answers but I'm pretty much out of time. I know $5 for these questions are lame but I thought it'd be better than nothing.


---------------------------------------------------------------------------------------------------
31. In order to use a predefined method, you simply need to know the name of the method.

32. The class JOptionPane is part of the package java.io.

33. The class DecimalFormat is part of the java.text package.

34. The statement System.exit(0); is found at the end of every working Java program.

35. Delimiters must be whitespace characters

36. The class JOptionPane allows a programmer to use graphical interface components to obtain input from a user.

37. Given Integer num; the value of num is directly stored in its memory space.

38. The default output of decimal numbers of the type float is 9 decimal places.

39. Given a decimal number, the method format of the class DecimalFormat returns the string containing the digits of the formatted number.

40. When writing output to a file, if the file is not closed at the end of the program, you will not be able to view your output properly.

41. If the output file does not exist you will get a FileNotFound exception.

42. If the specified output file does not exist, the computer prepares an empty file for output.

43. In the class String, the substring method extracts a string from within another string.

44. Java provides automatic garbage collection

45. The + operator is used to instantiate a class.

46. Primitive type variables directly store data into their memory space.

47. Primitive type variables directly store data into their memory space.

48. The class Math is contained in the java.text package.

49. Contents of the java.lang package do not need to be imported into a program in order to be used.

50. The . (dot) operator is also called the member access operator.
 

arcenite

Lifer
Dec 9, 2001
10,660
7
81
The answer you are probably going to get from people even in the know is "you should have allocated your time better" and I agree... Do the freakin' work. I mean if you can't figure out t/f questions, that's kind sad :/
 

apac

Diamond Member
Apr 12, 2003
6,212
0
71
How exactly will being told the answes to sample questions help you to study?

edit: I'm not criticizing your post just saying you're probably wasting your money..
 

Deadtrees

Platinum Member
Dec 31, 2002
2,351
0
0
Originally posted by: arcenite
The answer you are probably going to get from people even in the know is "you should have allocated your time better" and I agree... Do the freakin' work. I mean if you can't figure out t/f questions, that's kind sad :/


I agree with what you're saying as I had been one of those who said "Do the work own your own."
However, this time, I'm the one who has to say "If you can't help, keep it quiet."
 

Deadtrees

Platinum Member
Dec 31, 2002
2,351
0
0
Originally posted by: Deadtrees
Below are sample T/F questions for my final exam. The only problem is that answers are not given. I wish I had time to go through books looking for answers but I'm pretty much out of time. I know $5 for these questions are lame but I thought it'd be better than nothing.

UPDATE: CASE CLOSED.
I got all the answers from an another source.

---------------------------------------------------------------------------------------------------
31. In order to use a predefined method, you simply need to know the name of the method.

32. The class JOptionPane is part of the package java.io.

33. The class DecimalFormat is part of the java.text package.

34. The statement System.exit(0); is found at the end of every working Java program.

35. Delimiters must be whitespace characters

36. The class JOptionPane allows a programmer to use graphical interface components to obtain input from a user.

37. Given Integer num; the value of num is directly stored in its memory space.

38. The default output of decimal numbers of the type float is 9 decimal places.

39. Given a decimal number, the method format of the class DecimalFormat returns the string containing the digits of the formatted number.

40. When writing output to a file, if the file is not closed at the end of the program, you will not be able to view your output properly.

41. If the output file does not exist you will get a FileNotFound exception.

42. If the specified output file does not exist, the computer prepares an empty file for output.

43. In the class String, the substring method extracts a string from within another string.

44. Java provides automatic garbage collection

45. The + operator is used to instantiate a class.

46. Primitive type variables directly store data into their memory space.

47. Primitive type variables directly store data into their memory space.

48. The class Math is contained in the java.text package.

49. Contents of the java.lang package do not need to be imported into a program in order to be used.

50. The . (dot) operator is also called the member access operator.

 

Glavinsolo

Platinum Member
Sep 2, 2004
2,946
0
0
If I had your text book I would be done in 10mins, How long have you been refreshing this thread?
 

EyeMWing

Banned
Jun 13, 2003
15,670
1
0
31. False
32. Look it up (False, I think)
33. Look it up (False, I think)
34. False (Should be, but it isn't neccessary)
35. False
36. Look it up (True, I think)
37. False
38. True, I think, write a frickin' 1 line app to try it.
39. Look it up (True, I think)
40. Mostly true - this depends on the libraries you're using to write to file, or if you're doing it directly.
41. False.
42. True
43. True
44. True
45. UHHHHHHHHHH. Hellishly false, unless you meant =
46. True
47. True because it's the same as $46
48. Look it up (This is another repeat)
49. True, IIRC.
50. Never heard it anything but "dot", but that sounds logical.