1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
valkas [14]
3 years ago
11

1. Which of the following is not the name of a Java wrapper class from the Java API?

Computers and Technology
1 answer:
katovenus [111]3 years ago
5 0

Answer:

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

Int is not a wrapper class  

Byte is the wrapper class of byte, Int is not a wrapper class and is a primitive data type, Long is a wrapper class of long, Boolean is a wrapper class for boolean. Hence Int is the correct answer and its wrapper class is Integer.

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");

“I” in integer in A and B must be in capital.

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.

Compareto return 1 if first value is greater than with what it is compared.

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.

The radix value is 10 for decimal, 2 for binary and 16 for hexadecimal. Radix is the base or number of unique digits.

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

A. intValue ( )

B. parseInt ( )

C. toString ( )

D. compareTo ( )

ParseInt() is a static method of the integer class, and rest are non static methods.

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) ;

In A and C data type does not matches like Double c=0 means Double c=new int(0) which is never true.

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’;

Autoboxing brings out reference type from the value type, and this is not true for A  

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

a.multiply(b) = 250

a.add(b)= 250+25=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 ( )

Remainder is the correct answer.

Explanation:

Please check answer.

You might be interested in
When researching Information about technology for use in a project, it is NOT important to consider the date that the informatio
REY [17]

Answer:

B. False

Explanation:

Hope this helps!

4 0
2 years ago
A technician is configuring a new SOHO multifunction wireless router at a customer's location to provide network access to sever
Leno4ka [110]

Answer:

B. Change the router's default administrative password

Explanation:

The best way to prevent any unauthorized use is to change the password to something more secure using 12 minimum characters and including number, symbols, upper and lower case.

4 0
4 years ago
Write a program take will take someone's income and compute the amount of income tax they owe.
Diano4ka-milaya [45]

Answer:

x = income

F(x) = tax_rate * x

Explanation:

Use preffered programming lanugage to implement the pseudocode above.

3 0
3 years ago
I just wanted to know what are some of the challenges that could arise from setting up a file management system on a computer
ArbitrLikvidat [17]
There is always a risk of you losing files and then you may have to pay for it depending on what services you use.

7 0
4 years ago
Read 2 more answers
Which option can Jesse use to customize her company’s logo, name, address, and similar details in all her business documents?
AVprozaik [17]
Jesse should use the customize prompt under appearance menu to customize the necessary details she want to emphasize. The customize prompt allows the users to personally edit certain information to their personal tastes, in such a way that, the customized information will easily grab the attention of the target group.
7 0
3 years ago
Read 2 more answers
Other questions:
  • What would happen if computers only had input peripherals and a CPU?
    13·1 answer
  • Most people prefer to pay health insurance premiums rather than pay out of pocket for medical expenses because
    15·2 answers
  • A spreadsheet program is a computerized version of
    8·2 answers
  • Where would the information needed to start a computer be stored
    10·1 answer
  • ​When preparing a representative sample from a list of 200 customers who complained about errors in their statements, a _____ co
    7·1 answer
  • Good business ethics is a good marketing strategy. Discuss
    13·1 answer
  • Which should be addressed by stakeholders when reviewing the problem statement? Select all that apply. All possible outcomes hav
    12·1 answer
  • Which menu would most likely allow you to choose a font A.file B.Edit C.format D.insert​
    5·1 answer
  • An opening inside the system unit in which you can install additional equipment can be known as
    13·1 answer
  • Rather than entering an IP address into our browser, we use a text-based address known as a(n
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!