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

Answers

Answer 1

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.


Related Questions

what is a paragraph on what i can write on what i learned from watching basic keyboard shortcuts using control functions video

Answers

Answer:

Write the following nonsensical paragraph:

Explanation:

I learned how to navigate the computer efficiently. I learned how to use Ctrl + (key) to quickly do (something). ( Now reword that multiple times with different commands. ) Now I can harness my inner laziness to browse the computer at a faster speed.

Parts of a Computer

Question 3 of 9

Which part looks like a TV screen and lets you see your work and your

3

files?

Computer Case

Printer

Mouse

Monitor

Submit Answer

Please help I’m incredibly confused

Answers

Answer:

Monitor Sorry If I’m wrong!

Explanation:

Answer:

Maybe files I think I'm wrong

what does it mean to present a document online?

Answers

advertising/advertisement

What are the seven phases of design plans and the main features of designer-client communication at each phase?​

Answers

In order to design a project there exists seven phases of design as the client needs to communicate in each phase.  

The first step is to study the client in brief. This can be done by setting goals that will enlighten your project. Step two is to research in order to understand the project so that you can need to understand the history and culture. Example analysis of your audience. The step is to brainstorm, that is to research, the client, industry, and audience. The fourth step is to sketch ideas that help put to visualize elements and save time. The fifth phase is concept development that is a 3-5 design based on the needs of the project. The sixth phase is the revision phase that is to conclude your design that meets the goals and needs of the project. In the last completion that is fully understood look forwards to the client.

Learn more about the seven phases of design plans and the main features of the designer.

brainly.com/question/25151017.

blank uses computer resources from multiple locations to solve a common problem.

Answers

Answer:

Grid computing

Explanation:

What is a Qwerty?
A) It's a Computer
B) It's a keyboard
C) A type of frog

Answers

A qwerty is a keyboard

Answer:

its a keyboard

Explanation:


A table is a useful way to present information that is organized into categories, or fields.
True or False

Answers

Answer:

true

Explanation:

hope this helps!!!

Which device assists with medical imaging? HELPPPP!!!!!!

Answers

Answer:

Medical imaging equipment are manufactured using technology from the semiconductor industry, including CMOS integrated circuit chips, power semiconductor devices, sensors such as image sensors (particularly CMOS sensors) and biosensors

Explanation:

A business letter should always include the address of the sender.
True
False

Answers

Answer:

true

Explanation:it is true because like that they could send that letter were it go's so like that they don't have trouble looking for the person's letter

please mark me as brainlist

True,
It is true because otherwise there
is no way to prove it is not a fake.

why computer caller versatile machine

Answers

Answer:

hii h r u

where u live....................

What is the advantage of saving a document as a PDF file?
It can be used as a document template.
It can be opened by most computers.
You can easily convert the data to other applications.
You can publish it to your blog.

Answers

Answer:It can be opened by most computers.

Explanation: it is a widely used file type that is able to be opend in a web browser if no PDF viewer app is instlled like Adobe.

Write a program that asks the user for three strings.

Then, print out whether or not the first string concatenated to the second string is equal to the third string. Don’t worry about spaces at the beginning or ending of strings unless you want to! The code for the user to input the three strings is already written for you.

Here are a few sample program runs:

Sample Program 1:

First string? pepper

Second string? mint

Third string? peppermint

pepper + mint is equal to peppermint!

Sample Program 2:

First string? go

Second string? fish

Third string? donuts

go + fish is not equal to donuts!

import java.util.Scanner;

public class ThreeStrings

{

public static void main(String[] args)

{

Scanner input = new Scanner(System.in);


System.out.println("First String? ");

String first = input.nextLine();


System.out.println("Second String? ");

String second = input.nextLine();


System.out.println("Third String? ");

String third = input.nextLine();


//Start your code here.


}


}

Answers

Answer:

good luck djfjjdndnfjfjjfjfdsadd

Which of the following tasks is least effective at preventing a computer virus?
a
Anti-virus software is up-to-date.

b
Anti-virus software performs routine scans.

c
Anti-virus software is set to scan your computer weekly.

d
Anti-virus software scans all documents that are downloaded.

Answers

Answer:

all of the above mentioned

C is the answer to the question

Why are charts and graphs included in documents rather than just raw data?

Answers

Answer:

It's more organized and easier to look at

Explanation:

If it was just the raw data, it would take more time to analize, rather than it already being in a chart or graph

After a new technology is purchased, what are some additional costs that must be incorporated into an upgrade budget?

Answers

Answer:

Depends

Explanation:

If corprate then education,

if home then premium software,

if school educational software.

HOPE THIS ANWSERS YOUR QUESTION

IF NOT, MESSAGE ME!

In which place does essential computing of computer takes place at?
option
1]microprocessor
2]ram
3]motherboard
4]none

Answers

Answer:i

Explanation: gjjkh

Which option ensures that a page break is automatically inserted ahead of a specific paragraph or heading?

the Page Breaks Before option in the Paragraph dialog box
the Keep With Next option in the Paragraph dialog box
the Keep Lines Together option in the Paragraph dialog box
All of the above options are correct.

Answers

Answer:

All the above options are correct

Answer: d

Explanation:

Which of the following is an advantage of algorithmic thinking? Select all that apply. Easier to understand Easier to understand Increases flexibility Increases flexibility Less complex Less complex Written as a flowchart or natural language


Please help Ill do anyting

Answers

Answer:

gjjsh was also very good morning 8PM and block the money from her husband

In which place does essential computing of computer takes place at?
option
1]microprocessor
2]ram
3]motherboard
4]none

Answers

3.Mother board controls everything

Answer:

123456789-0[tex]\lim_{n \to \infty} a_n fffff[/tex]

Explanation:

Katherine wants to open a bank account that allowed her to perform frequent transactions without being charged a penalty and she does not want to maintain a minimum balance. What type of bank account should she open?

Answers

Answer:

C

Explanation:

Answer:

checking account

Explanation:

A data unit created at the transport layer by UDP is a _____.


A. segment

B. packet

C. datagram

D. frame

Answers

Answer:

A datagram

Explanation:

Protocol data units for the Internet protocol suite are: The transport layer PDU is the TCP segment for TCP, and the datagram for UDP. The Internet layer PDU is the packet.

Answer:

I think it's Datagrame

Explanation:

A formula might be used to add expenses in a spreadsheet. True False

i will mark brainlist

Answers

Answer:

the answer is true

Explanation:

Answer:

True

Explanation:

This answer is for anyone who has this question ⬇️

"A formula might be used to add expenses in a spreadsheet."

False

True

Lei is being cyberbullied by a group of girls. What advice would most help Lei? Share an unflattering photo of the bullies to get them back Immediately delete all evidence of the bullying Don't ignore or block the bullies online Talk to a trusted adult and get his or her perspective

Answers

Answer:

Talk to a trusted adult and get his or her perspective

Explanation:

Spreadsheet numbers and a graph cannot be placed on thesame worksheet.
True orFalse


Answers

Answer:

True

Explanation:

x = 19 y = 5 print (x % y)

Answers

Answer:

hehe

Explanation:

hehe

Answer:

3.8

Explanation:

19 / 5

Bill has several workbooks open, and he would like to see them all side by side on the screen. Which option on the
Arrange All menu should he use?
Tiled
Cascade
Horizontal
Vertical

Answers

Answer:

tiled

Explanation:

Normally, by the time teenagers have finished high school, they have formed their own identities and belief systems and have less
need for
against authority figures.

Answers

Answer:

The answer is rebellion

Explanation:

I took the test.

Answer:

rebellion

Explanation:

what is computer system​

Answers

Answer:

A computer system is a basic, complete and functional hardware and software setup with everything needed to implement computing performance.

Explanation:

Hope this was helpful,Have an amazing, spooky Halloween!!

Does anyone know how to snip or like screenshot the screen?

Answers

Answer:

yes it is on pc shift command 3

Explanation:

thats how i do it

Which tab in the AutoCorrect dialog box enables you to specify that the corrections will automatically take place only when you attempt to change the respective errors in the document?

Answers

Answer:

the options tab

Explanation:

Answer:

options tab

Explanation:

plato

Other Questions
Whats greater - 2/6 or - 3/8 or is it equal I will give the BRAINIEST!!!Which of these statements best describes the relation shown? How do u find the theme of a story? To which of the following environmental changes are populations most able to adapt? Answer these two questions correctly and Ill give brainlist .Carmen spent 88$ at the mall. The money she spent was 25% of the total amount she had in her wallet. How much money did Carmen have in her wallet?Kendrick caught 22 rainbow trout and 18 tiger trout while fishing last month. What percent of the trout were the tiger trout?I will be giving out brainlist if the answer you submitted was correct.Please answer correctly and dont waste my points these were hard to earn :(((( Geography is a very important part of History True FalseEurope's climate is poor for growing crops and it is why Europe colonized other areas of the world True FalseEurope does not have a lot of access to water True FalseWhich of the following is one area that geography plays a roll in the history of EuropeNorth AmericaMiddle EastAustraliaThere are 50 fully recognized sovereign states in Europe True FalseParis is a country in europe True False Crunch Rocks Cereal Advertisement Hey kids! I want to tell you about a new cereal straight from the rock piles of Georgia called Crunch Rocks. This cereal is crushed by the greasy care of sweaty, sledge-hammering Georgia miners. Each solid stone is carefully selected by the best-behaving criminals in the state and then pulverized into tiny kernels of gravel-like goodness to fill your cereal bowl. With Crunch Rocks, you dont have to worry about cavities because you wont have any teeth! The rock pebbles of Crunch of Rocks will destroy them so you have nothing left in your mouth but bleeding gums. You wont have to waste your time morning and night brushing and flossing, or ever smile for the camera again. Crunch of Rocks is filled with tasty, hard center of delicious fiber and iron. Its multi-mineral composition will rough up your esophagus and then tear through your intestines. While Georgia isnt the Sunshine State, the rocks in Crunch Rocks have spent centuries baking in the sunlight and are a great source of Vitamin D. Be sure to place Crunch Rocks at the bottom of your grocery bad so it doesnt smash your eggs and bread. Crunch Rocks can also be sued to line your fishbowl or fill potholes in your driveway. The purpose of this passage is to: a. Entertain the reader with a silly cereal ad b. To tell people that eating rocks is bad for you c. To sell rocks as a new cereal product d. To persuade readers that taking care of your teeth isnt important Two construction contracts are to be randomly assigned to one or more of three firms: I, II, and III. Any firm may receive both contracts. Each contract will yield a profit of $90,000. Assume that firms I and II are actually owned by the same individual. Find the probability distribution of X, the owner's total profit. 4400 x 400=???????????? Brynne withdrew all the money from her savings account in a series of 4 withdrawals and now has a balance of - $20. What is the average change on her account per withdrawal 6+74+34=56 are they equal El subjuntivo con deseosComplete each partial statement.1. El profesor insiste en que nosotros2. Todos los amigos de los novios esperan que3. Nadie teme que Anita4. La verdad es que mis padres prefieren que yo5. Tienes miedo de que ___? Provide customers with a mobile app that lets them click to send a message that they are en route to pick up their dog, as well as see their invoice and click to pay it with the credit card on file. I kinda need help. Math isn't my best subject. A newly formed natural lake most likely receives water from glaciers or mountainstreams and may not have a large supply of nutrients from plants. This type oflake isbitrophiceutrophicpolytrophicoligotrophic Which term is used in the sociological literature to describe a loss of direction felt in a society when social control of individual behavior has become ineffective due to social institutions not working together? The diagram shows changes of state between solid, liquid, and gas. The atoms of a substance lose energy during a change of state. Before the change, the atoms are close together but are able to slide past one another.A diagram has a triangle at center with gas on top, liquid on bottom right, solid on bottom left. An arrow from gas to liquid is labeled O, and an arrow from liquid to gas is labeled N. An arrow from solid to liquid is labeled P, and an arrow from liquid to solid is labeled Q. An arrow from solid to gas is labeled L, and an arrow from gas to solid is labeled M.Which arrow represents the change of state described above?MNPQ Please help ! Ill mark brainliest Read this excerpt from the US Constitution. Which portion of the text reflects the Enlightenment idea of popular sovereignty? Before sending a rsum, you should always checked with the employer to see what operating system they use.TF