subject

1. Which of the following is not the name of a Java wrapper class from the Java API? A. Byte
B. Int
C. Long
D. Boolean*

2. Which of the following statements will cause a compiler error?

A. Integer i = new integer ( ) ;*
B. Integer j = new integer ("5") ;
C. Integer k = Integer. valueOf ("5");
D. int m = Integer. pareseInt ("5");

3. If variables j and k refer to objects of type Double and j . compareTo (k) returns a value of 1, which of the following is true?

A. The double value held in j is less than the value held inside k.
B. The difference between values held in j and k is 1.*
C. The double values held inside j and k are both positive.
D. The double value held inside j is greater than the value held inside k.

4. What is a radix as used in the method parseInt (String s, int radix) from the integer class?

A. A numeric base 2 such as for binary or 16 for hexadecimal.
B. The number of characters in the string that represent integers.*
C. The Unicode character code to be used when parsing the string.
D. The number of times the string should be repeated before being converted to an int.

5. Which of the following is a static method of the integer class?

A. intValue ( )
B. parseInt ( )
C. toString ( )*
D. compareTo ( )

6. Which of the following statements will cause a compiler error?

A. Double a = new Double (10.6) + 3;
B. Integer b = 0;*
C. Double c = 0;
D. int d = new Integer (7) ;

7. Which of the following is not an example of autoboxing?

A. Boolean a = false
B. Integer b = new integer (9);
C. double x = 3.0;
Double c = x;
D. Character d = ‘2’;*

8. What is the result of the following code fragment?

BigInteger a = new BigInteger (“10”);
BigInteger b = new BigInteger (“25”);
a . multiply (b);
a . add (b);
System. out. println (a);

A. 10
B. 35
C. 250 *
D. 275

9. What is the name of the BigInteger method that will calculate the remainder of division by another BigInteger?

A. modulo ( )
B. modulus ( )*
C. divisor ( )
D. remainder ( )

the ones marked in asterisks are my answers, I'm not totally sure if they're right and would like someone to double check for me

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Read the following scenario, and then answer the question below. you want to send an e-mail to your boss requesting a meeting to discuss a raise. what is the best example of an e-mail to an employer about this meeting? “hey jason. can we chat about getting me more money soon? let me know. peace, meg.” “hello jason. pardon me for sending yet another e-mail today about my need to talk to you about my position and a possible pay increase. i am dying to know when you can talk. sincerely, meg.” “hello jason. i have been with the company for one year and have taken on more responsibilities than outlined in my job description. i would appreciate an opportunity to speak with you about my position. let me know when we can schedule a meeting. you, meg.” “greetings jason! i hope this e-mail finds you well and happy today. i really, really want to talk to you about something important. i am not sure if you have time. i hope you do. get back in touch with me and let me know when we might talk. ever so much for taking the time to read this. sincerely, meg.”
Answers: 3
question
Computers and Technology, 24.06.2019 04:30
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
Is the process of organizing data to reduce redundancy. a. normalization b. primary keying c. specifying relationships d. duplication
Answers: 1
You know the right answer?
1. Which of the following is not the name of a Java wrapper class from the Java API? A. Byte
...
Questions
question
Biology, 13.10.2020 02:01
question
Biology, 13.10.2020 02:01
question
Mathematics, 13.10.2020 02:01
Questions on the website: 13722362