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
Marina86 [1]
3 years ago
6

Assume that input file references a Scanner object that was used to open a file. Which of the following while loops shows the co

rrect way to read data from the file until the end of the file is reached?
a. while (inputFile != null)
b. while (!inputFile.EOF)
c. while (inputFile.hasnextInt())
d. while (inputFile.nextLine == " ")
e. while (inputFile.hasnextInt())
Computers and Technology
1 answer:
Firlakuza [10]3 years ago
7 0

Answer:

The answer is letter C

Explanation:

The correct way to read data from the file until the end of the file is reached is while (inputFile.hasnextInt())

You might be interested in
Net has a class that can generate parallel threads without the programmer needing to be overly burdened with thread maintenance.
zheka24 [161]

Answer:

The correct answer is option C "Parallel.For"

Explanation:

Parallel.For for the most part work best on external loop as opposed to inward circles. This is on the grounds that with the previous, you're offering bigger lumps of work to parallelize, weakening the administration overhead. Parallelizing both inward and external loops is typically superfluous. In the accompanying model, we'd commonly need in excess of 100 cores to profit by the inward parallelization.

Designers use the Parallel class for a situation alluded to as information parallelism. This is where a similar activity is acted in equal on various things. The most widely recognized illustration of this is in an array which should be followed up on. Using the Parallel class, you can use this procedure/operation on any sort of iteration, in Parallel.

8 0
3 years ago
Is a location on your computer screen where you type text entries to communicate with the computer’s operating system?
goldfiish [28.3K]
Command line. hope this helps
4 0
3 years ago
Explain why a CPU’s speed is affected by the number of buses.
Irina-Kira [14]

The Effect of the Motherboard's Bus Speed on CPU Speed:

 

 

A computer motherboard's bus speed has no effect on the installed CPU's speed. In a computer, the motherboard and the CPU are two separate components and do not alter how well the other one performs. However, the user experience is measured in how well the two perform together.

 

 

CPU

The CPU, or the computer's main processor, has a factory-determined operating speed. The processor's speed can be altered through the motherboard's BIOS settings on some computers. Hardware compatibility errors aside, the CPU's speed is not altered by any other part of the computer. However, the CPU is the fastest part of the computer and often gets held up by other hardware that can't keep up. CPUs handle all the computer's computational work outside of major graphical work performed by the GPU.

 

 

 

 

 

 

 

 

Bus

The motherboard's bus is the part of the device that transfers data between parts. The term "bus speed" refers to how quickly the system bus can move data from one computer component to the other. The faster the bus, the more data it can move within a given amount of time. The system's "Front Side Bus" connects the CPU to the computer's "Northbridge," which handles communication between the computer's RAM and the processor. This is the fastest part of the bus and handles the computer's most vital workload.

 

 

 

Bus Feeds the CPU

The CPU itself is pointless unless it has data to process; the bus’s job is to get that data to the CPU. The bus does not increase or decrease the CPU's speed but handles that data that flows in and out of the device, which plays a key role in how well the CPU performs. This is the point where the Bus can affect the CPU's performance output -- the CPU works in a cyclical process, with data going in and out of the device on a timed interval. If the CPU doesn't have any data to work with in a cycle, it wastes a cycle and doesn't process any data.

 

Insufficient Bus

An insufficient bus speed could leave a computer's CPU hanging as it waits for more information to process. This creates a "bottleneck," or the point at which one part of the computer slows down performance for another part of the system. If the bus is too slow, the CPU will waste a substantial amount of cycles and the computer user would perceive this as slower performance.

 

 

Sufficient Bus

A motherboard that has a sufficient or excessive bus speed for the CPU will offer the optimal performance speed. If the bus is fast enough, the CPU will consistently have new data to process ready to go when it completes a cycle. While the process isn't perfect and there always being unused cycles, a sufficient bus speed helps maximize how many of those cycles are used.

<span>Source: http://smallbusiness.chron.com/effect-motherboards-bus-speed-cpu-speed-70907.html</span>

8 0
3 years ago
What is the purpose of using SmartArt Graphics and what is one way you can use SmartArt Graphics in your presentation(s)?
Sladkaya [172]
The purpose of smart art graphic is to show is basically for show for people to see and it helps your presentation by giving it a pop to it
7 0
3 years ago
You receive a file named Project4.xlsx as an attachment to an email message. What do you expect the file to contain?
MaRussiya [10]
Any file with the extension .xlsx is a Microsoft Excel Open XML Format Spreadsheet file. You would expect a spreadsheet when you open it.
8 0
3 years ago
Read 2 more answers
Other questions:
  • What is the main purpose of broadcasting via satellite? A. To enable signal reception at night B. To convert analog signals to d
    5·1 answer
  • The disk drive is a secondary storage device that stores data by _____ encoding it onto a spinning circular disk.
    14·1 answer
  • Run a presentation from the beginning by clicking the Start From Beginning button located?
    13·1 answer
  • Sue needs to add a header and a footer to a presentation. Which process should she use to do this?
    10·2 answers
  • What is key to remember when handling linked lists?
    12·1 answer
  • Which of these is not the correct method for moving text in a document in Word 2016?
    14·2 answers
  • What are the most common types of cables in a network?
    6·1 answer
  • Example of negative body language include all but
    8·1 answer
  • Hannah wants to write a book about how scientists and society interact, and she has generated ideas for chapters. Which chapter
    13·1 answer
  • I recorded a video on my windows PC, but when i tried to play it i got this message:
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!